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.
85 lines
2.2 KiB
85 lines
2.2 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const PersonalTraining = sequelize.define("personalTraining", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
},
|
||
|
personalName: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "personalname",
|
||
|
},
|
||
|
departmentName: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "departmentname",
|
||
|
},
|
||
|
trainingType: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "trainingtype",
|
||
|
},
|
||
|
topic: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "topic",
|
||
|
},
|
||
|
trainer: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "trainer",
|
||
|
},
|
||
|
trainDate: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
field: "traindate",
|
||
|
},
|
||
|
trainTime: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "traintime",
|
||
|
},
|
||
|
trainMethod: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "trainmethod",
|
||
|
},
|
||
|
attendanceScore: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "attendancescore",
|
||
|
},
|
||
|
appraisalMethod: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "appraisalmethod",
|
||
|
},
|
||
|
appraisalScore: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "appraisalscore",
|
||
|
},
|
||
|
totalScore: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "totalscore",
|
||
|
},
|
||
|
origin: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "origin",
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "personal_training",
|
||
|
});
|
||
|
dc.models.PersonalTraining = PersonalTraining;
|
||
|
return PersonalTraining;
|
||
|
};
|