mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
ready to test
Testing Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -22,18 +22,6 @@ const Course = sequelize.define("Course", {
|
||||
|
||||
// ── Junction Tables ───────────────────────────────────────────────────────────
|
||||
|
||||
const CourseProduct = sequelize.define("CourseProduct", {
|
||||
id: { type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true },
|
||||
course_id: { type: DataTypes.BIGINT, allowNull: false },
|
||||
product_id: { type: DataTypes.BIGINT, allowNull: false },
|
||||
}, { tableName: "course_products", timestamps: true });
|
||||
|
||||
const CourseRole = sequelize.define("CourseRole", {
|
||||
id: { type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true },
|
||||
course_id: { type: DataTypes.BIGINT, allowNull: false },
|
||||
role_id: { type: DataTypes.BIGINT, allowNull: false },
|
||||
}, { tableName: "course_roles", timestamps: true });
|
||||
|
||||
const CourseProductCategory = sequelize.define("CourseProductCategory", {
|
||||
id: { type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true },
|
||||
course_id: { type: DataTypes.BIGINT, allowNull: false },
|
||||
@@ -42,7 +30,5 @@ const CourseProductCategory = sequelize.define("CourseProductCategory", {
|
||||
|
||||
module.exports = {
|
||||
Course,
|
||||
CourseProduct,
|
||||
CourseRole,
|
||||
CourseProductCategory,
|
||||
};
|
||||
Reference in New Issue
Block a user