update cate
All checks were successful
Deploy to Production / deploy (push) Successful in 20s

This commit is contained in:
Ken
2026-02-26 08:59:32 +07:00
parent 47ab75f264
commit 68308743ff
10 changed files with 429 additions and 128 deletions

View File

@@ -3,6 +3,7 @@ const { sequelize } = require('../config/database');
const Subject = sequelize.define('subjects', {
id: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, primaryKey: true },
category_id: { type: DataTypes.UUID, allowNull: false, comment: 'Danh mục chủ đề' },
subject_code: { type: DataTypes.STRING(20), unique: true, allowNull: false },
subject_name: { type: DataTypes.STRING(100), allowNull: false },
subject_name_en: { type: DataTypes.STRING(100) },