【发布时间】:2022-03-06 01:09:03
【问题描述】:
我正在尝试设计我的第一个数据库,我发现我想在数据库中保留很多不同的“标志”:
Active # Shows whether the item submission has been completed
Indexed # Shows whether the item has been indexed
Reminded # Shows whether the “expiring email” has been sent to the user
Error # Shows whether there is an error with the submission
Confirmation # Shows whether the confirmation email has been sent
除了为这些设置一个布尔字段之外,还有没有一种聪明的方法来存储这些详细信息?我想知道我是否在数据库中的状态组下有这些,每个内涵都有一个 ID (32),然后链接到那个。
【问题讨论】:
标签: sql database linux postgresql debian