update requirements,
This commit is contained in:
@@ -1,266 +1,465 @@
|
||||
// Users table with auth fields
|
||||
Table Users {
|
||||
// system field
|
||||
id text [pk]
|
||||
tokenKey text [not null]
|
||||
created datetime [default: `now()`]
|
||||
updated datetime
|
||||
password text [not null]
|
||||
// Generated at: 2025-05-08T05:00:49.862Z
|
||||
|
||||
// value field
|
||||
|
||||
//
|
||||
// collection id: pbc_3142635823
|
||||
// collection name: _superusers
|
||||
// collection type: auth
|
||||
Table _superusers {
|
||||
id text [pk, not null]
|
||||
password varchar [not null]
|
||||
tokenKey text [not null]
|
||||
email text [not null]
|
||||
emailVisibility boolean
|
||||
verified boolean
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: _pb_users_auth_
|
||||
// collection name: users
|
||||
// collection type: auth
|
||||
Table users {
|
||||
id text [pk, not null]
|
||||
password varchar [not null]
|
||||
tokenKey text [not null]
|
||||
email text [not null]
|
||||
emailVisibility boolean
|
||||
verified boolean
|
||||
name text
|
||||
avatar file
|
||||
created datetime
|
||||
updated datetime
|
||||
visible text
|
||||
}
|
||||
|
||||
// LessonTypes stores different types of lessons
|
||||
// lesson_types, lesson_type
|
||||
Table LessonTypes {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // timestamp when the lesson type was created
|
||||
updated datetime // timestamp when the lesson type was last updated
|
||||
// value field
|
||||
name text // changed from varchar to text
|
||||
type text // changed from varchar to text
|
||||
//
|
||||
// collection id: pbc_1430376151
|
||||
// collection name: Categories
|
||||
// collection type: base
|
||||
Table Categories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image_url text
|
||||
cat_image file
|
||||
pos integer
|
||||
lesson_id integer [ref: > LessonsTypes.id] // relation3455582614
|
||||
remarks text
|
||||
visible text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_108570809
|
||||
// collection name: Customers
|
||||
// collection type: base
|
||||
Table Customers {
|
||||
id text [pk, not null]
|
||||
name text
|
||||
email text
|
||||
phone text
|
||||
quota integer
|
||||
status text
|
||||
avatar_file file
|
||||
user_id integer [ref: > users.id] // relation2809058197
|
||||
billingAddress text
|
||||
timezone text
|
||||
language text
|
||||
currency text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_1196309394
|
||||
// collection name: LessonsCategories
|
||||
// collection type: base
|
||||
Table LessonsCategories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image_url text
|
||||
cat_image file
|
||||
pos integer
|
||||
lesson_id integer [ref: > LessonsTypes.id] // relation3455582614
|
||||
description text
|
||||
remarks text
|
||||
visible text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_2328411368
|
||||
// collection name: LessonsTypes
|
||||
// collection type: base
|
||||
Table LessonsTypes {
|
||||
id text [pk, not null]
|
||||
name text
|
||||
type text
|
||||
pos integer
|
||||
visible text
|
||||
field date
|
||||
}
|
||||
|
||||
|
||||
// LessonCategories stores categories of lessons
|
||||
// lesson_categories, lesson_category
|
||||
Table LessonCategories {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // timestamp when the category was created
|
||||
updated datetime // timestamp when the category was last updated
|
||||
// value field
|
||||
cat_name text // changed from varchar to text
|
||||
cat_image_url text // new field
|
||||
cat_image file // changed from varchar to file
|
||||
pos integer
|
||||
lesson_id integer [ref: > LessonTypes.id] // foreign key referencing LessonTypes.id
|
||||
description text // new field
|
||||
remarks text // changed from varchar to text
|
||||
visible text // new field
|
||||
}
|
||||
|
||||
Table Helloworlds {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // record create time
|
||||
updated datetime // record update time
|
||||
hello text // new field
|
||||
}
|
||||
|
||||
Table UserMetas {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
created datetime
|
||||
updated datetime
|
||||
|
||||
// value field
|
||||
helloworld text // changed from varchar to text
|
||||
meta json // new field
|
||||
user_id text [ref: > Users.id] // changed type and reference
|
||||
state text // new field
|
||||
avatar file // changed from blob to file
|
||||
role text // new field
|
||||
field datetime
|
||||
}
|
||||
|
||||
Table QuizCategories {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
//
|
||||
// collection id: pbc_977978967
|
||||
// collection name: Notifications
|
||||
// collection type: base
|
||||
Table Notifications {
|
||||
id text [pk, not null]
|
||||
read boolean
|
||||
type text
|
||||
author text
|
||||
job text
|
||||
description text
|
||||
NOTI_ID text
|
||||
created datetime
|
||||
updated datetime
|
||||
|
||||
// value field
|
||||
cat_name text // changed from varchar to text
|
||||
cat_image text // changed from varchar to text
|
||||
init_answer json // new field
|
||||
}
|
||||
|
||||
|
||||
// stores all questions of matching frenzy
|
||||
Table QuizMatchings {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // record create time
|
||||
updated datetime // record update time
|
||||
|
||||
// value field
|
||||
word text // changed from varchar to text
|
||||
word_c text // changed from varchar to text
|
||||
cat_id text [ref: > QuizCategories.id] // changed type and reference
|
||||
}
|
||||
|
||||
// QuizListening stores all listening quiz data
|
||||
Table QuizListenings {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // record create time
|
||||
updated datetime // record update time
|
||||
|
||||
// value field
|
||||
sound file // changed from varchar to file
|
||||
word text // changed from varchar to text
|
||||
cat_id text [ref: > QuizCategories.id] // changed type and reference
|
||||
}
|
||||
|
||||
|
||||
// stores all categories of connectives revision quiz
|
||||
Table QuizConnectivesCategories {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // record create time
|
||||
updated datetime // record update time
|
||||
|
||||
// value field
|
||||
cat_name text // changed from varchar to text
|
||||
cat_image file // changed from varchar to file
|
||||
}
|
||||
|
||||
// stores all questions of connectives revision quiz
|
||||
Table QuizConnectives {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // record create time
|
||||
updated datetime // record update time
|
||||
|
||||
// value field
|
||||
question_fh text // changed from varchar to text
|
||||
question_sh text // changed from varchar to text
|
||||
modal_ans text // changed from varchar to text
|
||||
cat_id text [ref: > QuizConnectivesCategories.id] // changed type and reference
|
||||
}
|
||||
|
||||
// Lessons stores all lessons in the database
|
||||
Table Vocabularies {
|
||||
// system field
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`] // timestamp when the lesson was created
|
||||
updated datetime // timestamp when the lesson was last updated
|
||||
|
||||
// value field
|
||||
image file // changed from varchar to file
|
||||
sound file // changed from varchar to file
|
||||
word text // changed from varchar to text
|
||||
word_c text // changed from varchar to text
|
||||
sample_e text // changed from varchar to text
|
||||
sample_c text // changed from varchar to text
|
||||
cat_id text [ref: > LessonCategories.id] // changed type and reference
|
||||
category text // changed from varchar to text
|
||||
lesson_type_id text [ref: > LessonTypes.id] // changed type and reference
|
||||
}
|
||||
|
||||
// Listening Practice Quiz Categories
|
||||
// store listening practice category, (LpCategories, LpCategory)
|
||||
Table QuizLPCategories {
|
||||
// system fields
|
||||
id text [pk]
|
||||
created datetime [default: `now()`]
|
||||
updated datetime
|
||||
|
||||
// value fields
|
||||
//
|
||||
// collection id: pbc_4061499106
|
||||
// collection name: QuizCRCategories
|
||||
// collection type: base
|
||||
Table QuizCRCategories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image file
|
||||
pos number
|
||||
init_answer json
|
||||
pos integer
|
||||
init_answer text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_3141885671
|
||||
// collection name: QuizCRQuestions
|
||||
// collection type: base
|
||||
Table QuizCRQuestions {
|
||||
id text [pk, not null]
|
||||
question_fh text
|
||||
question_sh text
|
||||
modal_ans text
|
||||
cat_id integer [ref: > QuizCRCategories.id] // relation1827623476
|
||||
options text
|
||||
created datetime
|
||||
updated datetime
|
||||
init_answer text
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_3571292172
|
||||
// collection name: QuizCategories
|
||||
// collection type: base
|
||||
Table QuizCategories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image text
|
||||
init_answer text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_96745150
|
||||
// collection name: QuizConnectives
|
||||
// collection type: base
|
||||
Table QuizConnectives {
|
||||
id text [pk, not null]
|
||||
question_fh text
|
||||
question_sh text
|
||||
modal_ans text
|
||||
cat_id integer [ref: > QuizConnectivesCategories.id] // relation3870140739
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_342761728
|
||||
// collection name: QuizConnectivesCategories
|
||||
// collection type: base
|
||||
Table QuizConnectivesCategories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image file
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_3639453778
|
||||
// collection name: QuizLPCategories
|
||||
// collection type: base
|
||||
Table QuizLPCategories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image file
|
||||
pos integer
|
||||
init_answer text
|
||||
created datetime
|
||||
updated datetime
|
||||
visible text
|
||||
slug text
|
||||
remarks text
|
||||
description text
|
||||
}
|
||||
|
||||
// Listening Practice Quiz Questions
|
||||
//
|
||||
// collection id: pbc_742947356
|
||||
// collection name: QuizLPQuestions
|
||||
// collection type: base
|
||||
Table QuizLPQuestions {
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
id text [pk, not null]
|
||||
word text
|
||||
sound file
|
||||
cat_id integer [ref: > QuizLPCategories.id] // relation3870140739
|
||||
created datetime
|
||||
updated datetime
|
||||
word text // changed from varchar to text
|
||||
sound file // changed from blob to file
|
||||
cat_id text [ref: > QuizLPCategories.id] // changed type and reference
|
||||
cat_name text // new field
|
||||
cat_image file // new field
|
||||
pos number // new field
|
||||
init_answer json // new field
|
||||
visible text // new field
|
||||
slug text // new field
|
||||
remarks text // new field
|
||||
description text // new field
|
||||
}
|
||||
|
||||
// Matching Frenzy Quiz Categories
|
||||
Table QuizMFCategories {
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
updated datetime
|
||||
cat_name text // changed from varchar to text
|
||||
cat_image file // changed from blob to file
|
||||
pos number // changed from integer to number
|
||||
init_answer json
|
||||
visible text // new field
|
||||
}
|
||||
|
||||
// Matching Frenzy Quiz Questions
|
||||
Table QuizMFQuestions {
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
updated datetime
|
||||
word text // changed from varchar to text
|
||||
word_c text // changed from varchar to text
|
||||
cat_id text [ref: > QuizMFCategories.id] // changed type and reference
|
||||
visible text // new field
|
||||
sound file // new field
|
||||
cat_image file // new field
|
||||
}
|
||||
|
||||
// Connectives Revision Quiz Categories
|
||||
Table QuizCRCategories {
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
updated datetime
|
||||
cat_name text // changed from varchar to text
|
||||
cat_image file // changed from blob to file
|
||||
cat_name text
|
||||
cat_image file
|
||||
pos integer
|
||||
init_answer json
|
||||
init_answer text
|
||||
visible text
|
||||
slug text
|
||||
remarks text
|
||||
description text
|
||||
}
|
||||
|
||||
// Connectives Revision Quiz Questions
|
||||
Table QuizCRQuestions {
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
//
|
||||
// collection id: pbc_2511066072
|
||||
// collection name: QuizListenings
|
||||
// collection type: base
|
||||
Table QuizListenings {
|
||||
id text [pk, not null]
|
||||
sound file
|
||||
word text
|
||||
cat_id integer [ref: > QuizCategories.id] // relation3870140739
|
||||
created datetime
|
||||
updated datetime
|
||||
question_fh text // changed from varchar to text
|
||||
question_sh text // changed from varchar to text
|
||||
modal_ans text // changed from varchar to text
|
||||
cat_id text [ref: > QuizCRCategories.id] // changed type and reference
|
||||
options json // new field
|
||||
}
|
||||
|
||||
// Test table
|
||||
Table t1 {
|
||||
id text [pk] // changed from int to text
|
||||
created datetime [default: `now()`]
|
||||
//
|
||||
// collection id: pbc_84667061
|
||||
// collection name: QuizMFCategories
|
||||
// collection type: base
|
||||
Table QuizMFCategories {
|
||||
id text [pk, not null]
|
||||
cat_name text
|
||||
cat_image file
|
||||
pos integer
|
||||
init_answer text
|
||||
created datetime
|
||||
updated datetime
|
||||
hello text // changed from name to hello
|
||||
test_file file // new field
|
||||
visible text
|
||||
}
|
||||
|
||||
// Customers table
|
||||
Table Customers {
|
||||
id text [pk] // new table
|
||||
created datetime [default: `now()`]
|
||||
//
|
||||
// collection id: pbc_3346420851
|
||||
// collection name: QuizMFQuestions
|
||||
// collection type: base
|
||||
Table QuizMFQuestions {
|
||||
id text [pk, not null]
|
||||
word text
|
||||
word_c text
|
||||
cat_id integer [ref: > QuizMFCategories.id] // relation3870140739
|
||||
created datetime
|
||||
updated datetime
|
||||
visible text
|
||||
sound file
|
||||
cat_image file
|
||||
init_answer text
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_2936646783
|
||||
// collection name: QuizMatchings
|
||||
// collection type: base
|
||||
Table QuizMatchings {
|
||||
id text [pk, not null]
|
||||
word text
|
||||
word_c text
|
||||
cat_id integer [ref: > QuizCategories.id] // relation3870140739
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_491894781
|
||||
// collection name: Students
|
||||
// collection type: base
|
||||
Table Students {
|
||||
id text [pk, not null]
|
||||
name text
|
||||
email text
|
||||
phone text
|
||||
quota number
|
||||
quota integer
|
||||
status text
|
||||
avatar_file file
|
||||
cat_id text [ref: > QuizMFCategories.id] // refer to a single user in `Users` table
|
||||
user_id integer [ref: > users.id] // relation2809058197
|
||||
billingAddress text
|
||||
timezone text
|
||||
language text
|
||||
currency text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_1413424569
|
||||
// collection name: Teachers
|
||||
// collection type: base
|
||||
Table Teachers {
|
||||
id text [pk, not null]
|
||||
name text
|
||||
email text
|
||||
phone text
|
||||
quota integer
|
||||
status text
|
||||
avatar_file file
|
||||
user_id integer [ref: > users.id] // relation2809058197
|
||||
billingAddress text
|
||||
timezone text
|
||||
language text
|
||||
currency text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_1305841361
|
||||
// collection name: UserMetas
|
||||
// collection type: base
|
||||
Table UserMetas {
|
||||
id text [pk, not null]
|
||||
helloworld text
|
||||
meta text
|
||||
user_id integer [ref: > users.id] // relation2809058197
|
||||
created datetime
|
||||
updated datetime
|
||||
status text
|
||||
avatar file
|
||||
role text
|
||||
name text
|
||||
email text
|
||||
phone text
|
||||
avatar_file file
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_1638686383
|
||||
// collection name: Vocabularies
|
||||
// collection type: base
|
||||
Table Vocabularies {
|
||||
id text [pk, not null]
|
||||
image file
|
||||
sound file
|
||||
word text
|
||||
word_c text
|
||||
sample_e text
|
||||
sample_c text
|
||||
cat_id integer [ref: > Categories.id] // relation3870140739
|
||||
category text
|
||||
lesson_type_id integer [ref: > LessonsTypes.id] // relation808508980
|
||||
created datetime
|
||||
updated datetime
|
||||
visible text
|
||||
type text
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_4275539003
|
||||
// collection name: _authOrigins
|
||||
// collection type: base
|
||||
Table _authOrigins {
|
||||
id text [pk, not null]
|
||||
collectionRef text [not null]
|
||||
recordRef text [not null]
|
||||
fingerprint text [not null]
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_2281828961
|
||||
// collection name: _externalAuths
|
||||
// collection type: base
|
||||
Table _externalAuths {
|
||||
id text [pk, not null]
|
||||
collectionRef text [not null]
|
||||
recordRef text [not null]
|
||||
provider text [not null]
|
||||
providerId text [not null]
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_2279338944
|
||||
// collection name: _mfas
|
||||
// collection type: base
|
||||
Table _mfas {
|
||||
id text [pk, not null]
|
||||
collectionRef text [not null]
|
||||
recordRef text [not null]
|
||||
method text [not null]
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_1638494021
|
||||
// collection name: _otps
|
||||
// collection type: base
|
||||
Table _otps {
|
||||
id text [pk, not null]
|
||||
collectionRef text [not null]
|
||||
recordRef text [not null]
|
||||
password varchar [not null]
|
||||
sentTo text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_1509025625
|
||||
// collection name: billingAddress
|
||||
// collection type: base
|
||||
Table billingAddress {
|
||||
id text [pk, not null]
|
||||
country text
|
||||
state text
|
||||
city text
|
||||
zipCode text
|
||||
line1 text
|
||||
line2 text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_123408445
|
||||
// collection name: helloworlds
|
||||
// collection type: base
|
||||
Table helloworlds {
|
||||
id text [pk, not null]
|
||||
hello text
|
||||
created datetime
|
||||
updated datetime
|
||||
}
|
||||
|
||||
//
|
||||
// collection id: pbc_2109205374
|
||||
// collection name: t1
|
||||
// collection type: base
|
||||
Table t1 {
|
||||
id text [pk, not null]
|
||||
hello text
|
||||
created datetime
|
||||
updated datetime
|
||||
test_file file
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user