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

This commit is contained in:
silverpro89
2026-02-18 18:01:45 +07:00
parent 09e72e37e7
commit b7ba1d02b3
10 changed files with 1207 additions and 1248 deletions

View File

@@ -24,16 +24,9 @@ const Vocab = sequelize.define('Vocab', {
allowNull: false,
index: true
},
// Đã xuất hiện trong khối nào, bài học nào, lesson nào
// Ví dụ 111 là grade 1, unit 1, lesson 1
grade: {
type: DataTypes.INTEGER,
defaultValue: 0,
comment: 'It is number of gradeX100 + unitX10 + lesson (e.g., Grade 1 Unit 2 Lesson 3 = 123)'
},
// Loại biến thể (V1, V2, V3, V_ing, Noun_Form...)
form_key: {
type: DataTypes.JSON,
type: DataTypes.TEXT,
defaultValue: 'base',
comment: 'Form key indicating the type of word form (e.g., base, V1, V2, V3, V_ing, Noun_Form)'
},
@@ -47,10 +40,6 @@ const Vocab = sequelize.define('Vocab', {
type: DataTypes.STRING(100),
comment: 'Category of the word (e.g., Action Verbs, Nouns)'
},
etc : {
type: DataTypes.TEXT,
comment: 'Book or additional reference'
},
topic: {
type: DataTypes.STRING(100),
comment: 'Topic of the word (e.g., Food, Travel, Education)'
@@ -121,10 +110,6 @@ const Vocab = sequelize.define('Vocab', {
{
name: 'idx_category',
fields: ['category']
},
{
name: 'idx_grade',
fields: ['grade']
}
]
});