【发布时间】:2012-04-19 15:29:14
【问题描述】:
我有两个具有以下属性(字段)的表:
联系方式
- IDContact
- 姓氏
- 名字
- 父亲的名字
- IDGender
- 致意
- 出生日期
- ...
合法性
- IDLegalEntity
- 姓名
- 法定名称
- IDLegalForm
- ...
我想在我的数据库中存储关于客户的信息。
客户
- ID客户
- 税号
- IDTaxAuthority
- ...
客户可以是自然人(联系人)或公司(法律实体)。 Customer 表应如何与 Contact 表和 Legal Entity 表相关联,以便在其他表中使用唯一的 CustomerID(主键)?
【问题讨论】:
标签: database-design