【发布时间】:2015-11-15 05:15:00
【问题描述】:
我有一个实体:Participants。 participants 的属性之一是 Interest。有 4 个有效值(db、ia、hit、other)。如果选择了“other”,我需要能够捕获该描述,但我似乎无法弄清楚最好的方法是什么?
我将有一个Participant Interest 的验证规则,它将具有上述 4 个值。尽管我知道大多数响应将是前三个响应之一,但我是否可以在实体中放置描述(见下文),还是应该创建一个单独的实体来捕获其他实体并与Participant 具有识别关系?
Participant
Participant ID
Participant First Name
Participant Last Name
Participant Interest {db, ia, hit, other}
Participant Other Interest Description
Other
Other Description
我正在寻找什么是允许的以及什么是最佳实践,因为我有几个具有相似格式的实体。
【问题讨论】:
标签: database-design