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
1.1 KiB
52 lines
1.1 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const OvertimeDay = sequelize.define("overtimeDay", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "overtime_day_id_uindex"
|
|
},
|
|
day: {
|
|
type: DataTypes.DATEONLY,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "day",
|
|
autoIncrement: false
|
|
},
|
|
duration: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "duration",
|
|
autoIncrement: false
|
|
},
|
|
overtimeId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "overtime_id",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "overtime_day",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.OvertimeDay = OvertimeDay;
|
|
return OvertimeDay;
|
|
};
|