'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Room Schema
 */
var RoomSchema = new Schema({
	ID: {
    type:String,
    default:'0A00',
    required: 'ID cannot be null',
    trim: true
  },
  name: {
		type: Number,
		default: '',
		required: 'Please fill Room name',
		trim: true
	},
  seats: {
    type:int,
    default:0,
    required: 'There must be seats',
    trim: true
  },
	created: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});

mongoose.model('Room', RoomSchema);

'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Room Schema
 */
var RoomSchema = new Schema({
	ID: {
    type:String,
    default:'0A00',
    required: 'ID cannot be null',
    trim: true
  },
  name: {
		type: String,
		default: '',
		required: 'Please fill Room name',
		trim: true
	},
  seats: {
    type:int,
    default:0,
    required: 'There must be seats',
    trim: true
  },
	created: {
		type: Date,
		default: Date.now
	},
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});

mongoose.model('Room', RoomSchema);
--- 
+++ 
@@ -17,7 +17,7 @@
     trim: true
   },
   name: {
-		type: String,
+		type: Number,
 		default: '',
 		required: 'Please fill Room name',
 		trim: true
Modify Int to Number type