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.
44 lines
860 B
44 lines
860 B
4 years ago
|
import _sequelize from 'sequelize';
|
||
|
const { Model, Sequelize } = _sequelize;
|
||
|
|
||
|
export default class guildactivitytypes extends Model {
|
||
|
static init(sequelize, DataTypes) {
|
||
|
super.init({
|
||
|
ID: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true
|
||
|
},
|
||
|
Code: {
|
||
|
type: DataTypes.STRING(10),
|
||
|
allowNull: false
|
||
|
},
|
||
|
Value: {
|
||
|
type: DataTypes.TEXT,
|
||
|
allowNull: false
|
||
|
},
|
||
|
CreationDate: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false
|
||
|
},
|
||
|
ModificationDate: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: true
|
||
|
},
|
||
|
Version: {
|
||
|
type: DataTypes.DOUBLE,
|
||
|
allowNull: false
|
||
|
},
|
||
|
Deleted: {
|
||
|
type: DataTypes.TINYINT,
|
||
|
allowNull: false
|
||
|
}
|
||
|
}, {
|
||
|
sequelize,
|
||
|
tableName: 'guildactivitytypes',
|
||
|
timestamps: false
|
||
|
});
|
||
|
return guildactivitytypes;
|
||
|
}
|
||
|
}
|