项企-报表中心
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.
 
 
 
 

43 lines
959 B

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const Holiday = sequelize.define("holiday", {
day: {
type: DataTypes.DATEONLY,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "day",
autoIncrement: false,
unique: "holiday_day_uindex"
},
holiday: {
type: DataTypes.JSONB,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "holiday",
autoIncrement: false
},
type: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "workday 工作日 / dayoff 休息日 / festivals 节假日",
primaryKey: false,
field: "type",
autoIncrement: false
}
}, {
tableName: "holiday",
comment: "",
indexes: []
});
dc.models.Holiday = Holiday;
return Holiday;
};