import { DataTypes } from "sequelize";

export default (sequelize) => {
  const KycStageService = sequelize.define("KycStageService", {
    id: {
      type: DataTypes.UUID,
      defaultValue: DataTypes.UUIDV4,
      primaryKey: true,
    },
    stageId: {
      type: DataTypes.UUID,
      allowNull: false,
    },
    serviceId: {
      type: DataTypes.UUID,
      allowNull: false,
    },
    isActive: {
      type: DataTypes.BOOLEAN,
      defaultValue: true,
      allowNull: false,
    },
  }, {
    tableName: "KycStageServices",
    timestamps: true,
  });

  return KycStageService;
};
