Background introduction
Recently, many friends have consulted on the database collection design of my online answering mini program, and now I have specially written an article to organize it. The mini program currently contains the following ten collections
Database Design
-
admin
This collection is mainly used to specify the administrator openid. For some openid, it is open to create test papers and import and export data reports. -
category
This collection is mainly used to set the category of questions, which is the so-called question bank information, such as language, mathematics, English -
depts
This collection is mainly for enterprise users and maintains a dictionary of enterprise department information -
favor
This collection is used to set title favorite record information -
history
This collection is mainly used to record test time, test scores, and candidate information -
mediatype
This collection is defined as a material dictionary, such as text, pictures -
The notes
collection is mainly used to record wrong title records -
profiles
This collection is mainly used to record user information, such as openid, nickname, avatar, and personal related information -
question
This collection is mainly used for question information, the structure of the question is not introduced in this article -
questype
This collection is used to maintain a dictionary of question types, such as single choice, multiple choice, judgment, fill in the blank, and short answer
The topic of the mini program is organized into a primary structure, which is the so-called primary classification. The topic information is directly below the category, and there is no secondary classification.
Follow-up plan
Two articles will be written later. One article introduces the online answering applet for secondary classification, and the other is the database design of the online answering applet for member invitation system.
Scan code experience