周沫沫历险记
2 years ago
6 changed files with 221 additions and 64 deletions
@ -0,0 +1,61 @@ |
|||
/* eslint-disable*/ |
|||
|
|||
'use strict'; |
|||
|
|||
module.exports = dc => { |
|||
const DataTypes = dc.ORM; |
|||
const sequelize = dc.orm; |
|||
const TrainingInformationLevel = sequelize.define("trainingInformationLevel", { |
|||
id: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: true, |
|||
field: "id", |
|||
autoIncrement: true |
|||
}, |
|||
type: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "type", |
|||
autoIncrement: false |
|||
}, |
|||
departmentname: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "departmentname", |
|||
autoIncrement: false |
|||
}, |
|||
traindate: { |
|||
type: DataTypes.DATE, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "traindate", |
|||
autoIncrement: false |
|||
}, |
|||
origin: { |
|||
type: DataTypes.STRING, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "origin", |
|||
autoIncrement: false |
|||
} |
|||
}, { |
|||
tableName: "training_information_level", |
|||
comment: "", |
|||
indexes: [] |
|||
}); |
|||
dc.models.TrainingInformationLevel = TrainingInformationLevel; |
|||
return TrainingInformationLevel; |
|||
}; |
@ -0,0 +1,115 @@ |
|||
/* eslint-disable*/ |
|||
|
|||
'use strict'; |
|||
|
|||
module.exports = dc => { |
|||
const DataTypes = dc.ORM; |
|||
const sequelize = dc.orm; |
|||
const TrainingInformationRecord = sequelize.define("trainingInformationRecord", { |
|||
id: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: true, |
|||
field: "id", |
|||
autoIncrement: true |
|||
}, |
|||
type: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "type", |
|||
autoIncrement: false |
|||
}, |
|||
departmentname: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "departmentname", |
|||
autoIncrement: false |
|||
}, |
|||
traindate: { |
|||
type: DataTypes.DATE, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "traindate", |
|||
autoIncrement: false |
|||
}, |
|||
filetype: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "filetype", |
|||
autoIncrement: false |
|||
}, |
|||
filename: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "filename", |
|||
autoIncrement: false |
|||
}, |
|||
filesize: { |
|||
type: DataTypes.STRING, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "filesize", |
|||
autoIncrement: false |
|||
}, |
|||
updatedate: { |
|||
type: DataTypes.DATE, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "updatedate", |
|||
autoIncrement: false |
|||
}, |
|||
attachpath: { |
|||
type: DataTypes.STRING, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "attachpath", |
|||
autoIncrement: false |
|||
}, |
|||
origin: { |
|||
type: DataTypes.STRING, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "origin", |
|||
autoIncrement: false |
|||
}, |
|||
traininginformationlevelid: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "traininginformationlevelid", |
|||
autoIncrement: false |
|||
} |
|||
}, { |
|||
tableName: "training_information_record", |
|||
comment: "", |
|||
indexes: [] |
|||
}); |
|||
dc.models.TrainingInformationRecord = TrainingInformationRecord; |
|||
return TrainingInformationRecord; |
|||
}; |
Loading…
Reference in new issue