export default (sequelize, DataTypes) => {
  const Setting = sequelize.define("Setting", {
    key: {
      type: DataTypes.STRING,
      allowNull: false,
      unique: true,
    },
    value: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    description: {
      type: DataTypes.TEXT,
      allowNull: true,
    },
  }, {
    tableName: "Settings",
    timestamps: true,
  });

  return Setting;
};
