【发布时间】:2021-06-29 05:14:33
【问题描述】:
我正在为一个数据库做逻辑模型,其中有实体 Customer。 每个客户都会有一些“固定”属性(姓名、姓氏、地址、电话号码……)和其他一些有时必须更新的属性(用户名、密码、年龄、体重……)
现在我的问题是:你建议我创建两个不同的表吗,像这样:
Customer ( CustomerID, Name, Surname, Address, telephone number )
Customer_Spe ( CustomerID, age, Username, Password, weight )
或者,一个具有所有这些属性的单个?
Customer ( CustomerID, Name, Surname, Address, telephone number, age, Username, Password, weight)
你能证明你的答案吗?
【问题讨论】:
-
基于意见。这两种选择各有利弊。
-
你会选择哪一个? @Akina
标签: mysql sql database entity-framework entity-framework-core