const Sequelize = require("sequelize");
const sequelizeConnect = require("../connection/db");

const SellerControlFeatureFlags = sequelizeConnect.define(
  "seller_control_feature_flags",
  {
    id: {
      type: Sequelize.BIGINT,
      primaryKey: true,
      allowNull: false,
      autoIncrement: true,
    },
    feature_flag_id: {
      type: Sequelize.BIGINT,
      allowNull: false,
    },
    seller_company_id: {
      type: Sequelize.BIGINT,
      allowNull: false,
    },
    enabled: {
      type: Sequelize.BOOLEAN,
      allowNull: false,
      defaultValue: true,
    },
    status: {
      type: Sequelize.BOOLEAN,
      allowNull: false,
      defaultValue: true,
    },
  },
  {
    tableName: "seller_control_feature_flags",
    timestamps: true,
  }
);

module.exports = SellerControlFeatureFlags;
