import _sequelize from 'sequelize'; const { Model, Sequelize } = _sequelize; export default class functiontypes extends Model { static init(sequelize, DataTypes) { super.init({ ID: { autoIncrement: true, type: DataTypes.SMALLINT, allowNull: false, primaryKey: true }, Value: { type: DataTypes.STRING(100), allowNull: false }, Name: { type: DataTypes.STRING(100), allowNull: false } }, { sequelize, tableName: 'functiontypes', hasTrigger: true, timestamps: false, indexes: [ { name: "PRIMARY", unique: true, using: "BTREE", fields: [ { name: "ID" }, ] }, ] }); return functiontypes; } }