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.
51 lines
1023 B
51 lines
1023 B
import _sequelize from 'sequelize'; |
|
const { Model, Sequelize } = _sequelize; |
|
|
|
export default class ancillarygroup extends Model { |
|
static init(sequelize, DataTypes) { |
|
super.init({ |
|
ID: { |
|
type: DataTypes.SMALLINT, |
|
allowNull: false, |
|
primaryKey: true |
|
}, |
|
Code: { |
|
type: DataTypes.STRING(10), |
|
allowNull: false |
|
}, |
|
Value: { |
|
type: DataTypes.STRING(200), |
|
allowNull: false |
|
}, |
|
MainGroupCode: { |
|
type: DataTypes.STRING(10), |
|
allowNull: false |
|
}, |
|
MainGroupID: { |
|
type: DataTypes.SMALLINT, |
|
allowNull: false |
|
}, |
|
Version: { |
|
type: DataTypes.DOUBLE, |
|
allowNull: false |
|
}, |
|
Deleted: { |
|
type: DataTypes.TINYINT, |
|
allowNull: false |
|
}, |
|
MappedCode: { |
|
type: DataTypes.STRING(50), |
|
allowNull: true |
|
}, |
|
IsDedicated: { |
|
type: DataTypes.TINYINT, |
|
allowNull: true |
|
} |
|
}, { |
|
sequelize, |
|
tableName: 'ancillarygroup', |
|
timestamps: false |
|
}); |
|
return ancillarygroup; |
|
} |
|
}
|
|
|