人力资源
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

2 years ago
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const VacateDay = sequelize.define("vacateDay", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "vacate_day_id_uindex"
},
day: {
type: DataTypes.DATEONLY,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "day",
autoIncrement: false
},
duration: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "duration",
autoIncrement: false
},
vacateId: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "vacate_id",
autoIncrement: false
}
}, {
tableName: "vacate_day",
comment: "",
indexes: []
});
dc.models.VacateDay = VacateDay;
return VacateDay;
};