/* 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; };