1、命令生成 model
sails generate model Test
2、model支持的基本数据类型
3、model 字段添加正则验证
/*
验证参考:http://sailsjs.com/documentation/concepts/models-and-orm/validations
*/
id: {
type:'string',
required: true,
primaryKey: true,
regex: /(^[0-9a-zA-Z]+$){1,16}$/
},