CodingNoob1224
專題 資料模型
Try
HackMD
CodingNoob1224
·
Follow
Last edited by
CodingNoob1224
on
Oct 13, 2024
Linked with GitHub
Contributed by
0
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
There is no comment
Select some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Discard
Send
專題 資料模型
活動
活動名稱 (CharField)
活動簡介 (TextField)
活動時間 (DateTimeField)
活動地點 (CharField)
名額限制 (PositiveIntegerField)
報名時段開始 (DateTimeField)
報名時段結束 (DateTimeField)
活動類型 (CharField, choices: 講座/研討會
…
)
狀態 (CharField, choices: 報名中/報名截止/尚未開放報名)
發布時間 (DateTimeField)
更新時間 (DateTimeField)
海報 (ImageField, 可選) # 用於上傳活動海報
語言 (CharField, 可選) # 用於多語言支援
使用者
帳號 (email) (EmailField, unique=True)
姓名 (CharField)
電話 (CharField)
生日 (DateField)
科系 (CharField)
註冊時間 (DateTimeField, auto_now_add=True) # 記錄使用者註冊時間
報名
使用者 (user) (ForeignKey to User, on_delete=models.CASCADE)
活動 (event) (ForeignKey to Event, on_delete=models.CASCADE)
報名時間 (DateTimeField)
狀態 (CharField, choices: 已報名/取消報名) # 報名狀態
出缺席 (簽到簽退)
簽到狀態 (BooleanField)
簽到時間 (DateTimeField, null=True, blank=True)
簽退狀態 (BooleanField)
簽退時間 (DateTimeField, null=True, blank=True)
是否參加 (BooleanField, default=False) # 標記是否實際參加活動
表單 (form)
標題 (title) (CharField)
活動名稱 (CharField)
題目 (CharField)
題目
問題類型 (CharField) # 例如:選擇題、填空題等
問題內容 (TextField)
選項 (TextField, 可選) # 用於選擇題的選項列表
回饋內容 (response)
問題 (question) (ForeignKey to Question, on_delete=models.CASCADE)
報名 (registration) (ForeignKey to Registration, on_delete=models.CASCADE)
回答內容 (answer text) (TextField)
專題 資料模型
活動
使用者
報名
出缺席 (簽到簽退)
表單 (form)
題目
回饋內容 (response)
Expand all
Back to top
Go to bottom
專題 資料模型
活動
使用者
報名
出缺席 (簽到簽退)
表單 (form)
題目
回饋內容 (response)
Expand all
Back to top
Go to bottom
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment