Files
lettersoup-online/002_source/cms/src/constants.ts
louiscklaw da08798b10 update,
2025-04-24 01:08:44 +08:00

54 lines
1.2 KiB
TypeScript

// RULES:
// COL_<COLLECTION_NAME> = "<table name in dbml file>"
// e.g. COL_APPLE = "Apple" table in dbml
const COL_LESSON_TYPES = 'LessonsTypes';
const COL_LESSON_CATEGORIES = 'LessonsCategories';
const COL_USERS = 'users';
const COL_USER_METAS = 'UserMetas';
// RULES:
// do not use LP_CATEGORIES anymore
// LP, listening practice
const COL_QUIZ_LP_CATEGORIES = 'QuizLPCategories';
const COL_QUIZ_LP_QUESTIONS = 'QuizLPQuestions';
// MF, matching frenzy
const COL_QUIZ_MF_CATEGORIES = 'QuizMFCategories';
const COL_QUIZ_MF_QUESTIONS = 'QuizMFQuestions';
// CR, connective revision
const COL_QUIZ_CR_CATEGORIES = 'QuizCRCategories';
const COL_QUIZ_CR_QUESTIONS = 'QuizCRQuestions';
// ROLES:
const COL_CUSTOMERS = 'Customers';
const COL_TEACHERS = 'Teachers';
const COL_STUDENTS = 'Students';
// FOR page display
const NO_VALUE = 'NO_VALUE';
const NO_NUM = -Infinity;
const NS_LESSON_CATEGORY = 'lesson_category';
export {
COL_LESSON_TYPES,
NO_VALUE,
NO_NUM,
COL_LESSON_CATEGORIES,
NS_LESSON_CATEGORY,
COL_USERS,
COL_USER_METAS,
//
COL_QUIZ_LP_CATEGORIES,
COL_QUIZ_LP_QUESTIONS,
//
COL_QUIZ_MF_CATEGORIES,
COL_QUIZ_MF_QUESTIONS,
//
COL_QUIZ_CR_CATEGORIES,
COL_QUIZ_CR_QUESTIONS,
//
COL_CUSTOMERS,
COL_TEACHERS,
COL_STUDENTS,
//
};