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.
84 lines
1.5 KiB
84 lines
1.5 KiB
4 years ago
|
import _sequelize from 'sequelize';
|
||
|
const { Model, Sequelize } = _sequelize;
|
||
|
|
||
|
export default class positionrelations extends Model {
|
||
|
static init(sequelize, DataTypes) {
|
||
|
super.init({
|
||
|
Id: {
|
||
|
autoIncrement: true,
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true
|
||
|
},
|
||
|
UserID: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
PositionId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L1Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L2Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L3Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L4Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L5Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L6Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L7Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L8Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
L9Id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
ParentId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
},
|
||
|
ParentPositionId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true
|
||
|
}
|
||
|
}, {
|
||
|
sequelize,
|
||
|
tableName: 'positionrelations',
|
||
|
hasTrigger: true,
|
||
|
timestamps: false,
|
||
|
indexes: [
|
||
|
{
|
||
|
name: "PRIMARY",
|
||
|
unique: true,
|
||
|
using: "BTREE",
|
||
|
fields: [
|
||
|
{ name: "Id" },
|
||
|
]
|
||
|
},
|
||
|
]
|
||
|
});
|
||
|
return positionrelations;
|
||
|
}
|
||
|
}
|