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.
82 lines
1.8 KiB
82 lines
1.8 KiB
const Sequelize = require('sequelize');
|
|
module.exports = function(sequelize, DataTypes) {
|
|
return sequelize.define('lauchuserexpandfield', {
|
|
expandFieldId: {
|
|
autoIncrement: true,
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
primaryKey: true,
|
|
comment: "拓展字段ID"
|
|
},
|
|
fieldIdentify: {
|
|
type: DataTypes.STRING(255),
|
|
allowNull: false,
|
|
comment: "字段标识"
|
|
},
|
|
displayName: {
|
|
type: DataTypes.STRING(255),
|
|
allowNull: false,
|
|
comment: "字段名"
|
|
},
|
|
fieldDescribe: {
|
|
type: DataTypes.STRING(255),
|
|
allowNull: false,
|
|
comment: "字段描述"
|
|
},
|
|
defaultValue: {
|
|
type: DataTypes.STRING(255),
|
|
allowNull: true,
|
|
comment: "默认值"
|
|
},
|
|
storageType: {
|
|
type: DataTypes.STRING(255),
|
|
allowNull: false,
|
|
comment: "存储类型"
|
|
},
|
|
storageLength: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
comment: "存储长度"
|
|
},
|
|
isRequired: {
|
|
type: DataTypes.BOOLEAN,
|
|
allowNull: true,
|
|
comment: "是否必填"
|
|
},
|
|
isRepeat: {
|
|
type: DataTypes.BOOLEAN,
|
|
allowNull: true,
|
|
comment: "是否可以重复"
|
|
},
|
|
isEnable: {
|
|
type: DataTypes.BOOLEAN,
|
|
allowNull: true,
|
|
comment: "是否启用"
|
|
},
|
|
createTime: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
comment: "创建时间"
|
|
},
|
|
isDelete: {
|
|
type: DataTypes.STRING(64),
|
|
allowNull: false,
|
|
defaultValue: "",
|
|
comment: "删除时间"
|
|
}
|
|
}, {
|
|
sequelize,
|
|
tableName: 'lauchuserexpandfield',
|
|
timestamps: false,
|
|
indexes: [
|
|
{
|
|
name: "PRIMARY",
|
|
unique: true,
|
|
using: "BTREE",
|
|
fields: [
|
|
{ name: "expandFieldId" },
|
|
]
|
|
},
|
|
]
|
|
});
|
|
};
|
|
|