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.
55 lines
1.2 KiB
55 lines
1.2 KiB
6 months ago
|
const Sequelize = require('sequelize');
|
||
|
module.exports = function(sequelize, DataTypes) {
|
||
|
return sequelize.define('lauchuserstructorganization', {
|
||
|
organizationStructId: {
|
||
|
autoIncrement: true,
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true
|
||
|
},
|
||
|
organizationType: {
|
||
|
type: DataTypes.STRING(255),
|
||
|
allowNull: false
|
||
|
},
|
||
|
organizationName: {
|
||
|
type: DataTypes.STRING(255),
|
||
|
allowNull: false
|
||
|
},
|
||
|
organizationDescribe: {
|
||
|
type: DataTypes.STRING(255),
|
||
|
allowNull: false
|
||
|
},
|
||
|
father: {
|
||
|
type: DataTypes.INTEGER.UNSIGNED.ZEROFILL,
|
||
|
allowNull: false
|
||
|
},
|
||
|
isDefault: {
|
||
|
type: DataTypes.STRING(255),
|
||
|
allowNull: false
|
||
|
},
|
||
|
createTime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false
|
||
|
},
|
||
|
isDelete: {
|
||
|
type: DataTypes.STRING(64),
|
||
|
allowNull: false,
|
||
|
defaultValue: ""
|
||
|
}
|
||
|
}, {
|
||
|
sequelize,
|
||
|
tableName: 'lauchuserstructorganization',
|
||
|
timestamps: false,
|
||
|
indexes: [
|
||
|
{
|
||
|
name: "PRIMARY",
|
||
|
unique: true,
|
||
|
using: "BTREE",
|
||
|
fields: [
|
||
|
{ name: "organizationStructId" },
|
||
|
]
|
||
|
},
|
||
|
]
|
||
|
});
|
||
|
};
|