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.
52 lines
1011 B
52 lines
1011 B
4 years ago
|
import _sequelize from 'sequelize';
|
||
|
const { Model, Sequelize } = _sequelize;
|
||
|
|
||
|
export default class isco-2008-fa extends Model {
|
||
|
static init(sequelize, DataTypes) {
|
||
|
super.init({
|
||
|
ID: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true
|
||
|
},
|
||
|
Code: {
|
||
|
type: DataTypes.STRING(10),
|
||
|
allowNull: false
|
||
|
},
|
||
|
'ISCO-2008Code': {
|
||
|
type: DataTypes.STRING(10),
|
||
|
allowNull: false
|
||
|
},
|
||
|
Value: {
|
||
|
type: DataTypes.STRING(120),
|
||
|
allowNull: false
|
||
|
},
|
||
|
IsMain: {
|
||
|
type: DataTypes.TINYINT,
|
||
|
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: 'isco-2008-fa',
|
||
|
timestamps: false
|
||
|
});
|
||
|
return isco-2008-fa;
|
||
|
}
|
||
|
}
|