const { DataTypes } = require("sequelize");

module.exports = (sequelize) => {
  const UcSetting = sequelize.define(
    "ucsetting",
    {
      id: {
        type: DataTypes.INTEGER,
        autoIncrement: true,
        primaryKey: true,
      },

      min_distance: { type: DataTypes.INTEGER, allowNull: true },
      min_clockout: { type: DataTypes.TIME, allowNull: true },
      email: { type: DataTypes.STRING, allowNull: true },
      additional_email: { type: DataTypes.STRING, allowNull: true },
    },
    {
      tableName: "ucsettings",
      freezeTableName: true,
    }
  );

  UcSetting.associate = (models) => {};

  return UcSetting;
};
