// models/ScheduleDays.js
const { DataTypes } = require("sequelize");
const db = require("../config/db.config");

const ScheduleDays = db.define(
  "schedule_days",
  {
    schedule_id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
    },
    day_id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
    },
    created_at: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    updated_at: {
      type: DataTypes.STRING,
      allowNull: true,
    },
  },
  {
    tableName: "schedule_days",
    timestamps: false, // 🔥 THIS IS THE FIX
  }
);

module.exports = ScheduleDays;