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