const { DataTypes } = require("sequelize"); const sequelize = require("../../config/db.config"); const CourseObjective = sequelize.define("CourseObjective", { objective_id: { type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true }, course_id: { type: DataTypes.BIGINT, allowNull: false }, text: { type: DataTypes.TEXT, allowNull: false }, order_index: { type: DataTypes.INTEGER, defaultValue: 0 }, }, { tableName: "course_objectives", timestamps: true, paranoid: true, }); module.exports = CourseObjective