You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
445 B
15 lines
445 B
module.exports = function(db,callback){
|
|
// 用户模型
|
|
db.define("AttributeModel",{
|
|
attr_id : {type: 'serial', key: true},
|
|
attr_name : String,
|
|
cat_id : Number,
|
|
attr_sel : ["only", "many"], // only:输入框(唯一) many:后台下拉列表/前台单选框
|
|
attr_write: ["manual","list"], // manual:手工录入 list:从列表选择
|
|
attr_vals: String,
|
|
delete_time : Number
|
|
},{
|
|
table : "sp_attribute"
|
|
});
|
|
return callback();
|
|
} |