Files
lettersoup-online/002_source/cms/src/constants.ts
louiscklaw 7105bc85e3 update,
2025-05-08 14:38:34 +08:00

60 lines
1.5 KiB
TypeScript

// RULES:
// COL_<COLLECTION_NAME> = "<table name in dbml file>"
// e.g. COL_APPLE = collection "Apple" in pocketbase = "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_NOTIFICATIONS = 'Notifications';
const COL_TEACHERS = 'Teachers';
const COL_STUDENTS = 'Students';
const COL_VOCABULARIES = 'Vocabularies';
// FOR page display
const NO_VALUE = 'NO_VALUE';
const NO_NUM = -Infinity;
const NS_LESSON_CATEGORY = 'lesson_category';
const NS_VOCABULARY = 'vocabulary';
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_NOTIFICATIONS,
COL_TEACHERS,
COL_STUDENTS,
COL_VOCABULARIES,
NS_VOCABULARY,
//
};