我正在为工业公司设计管理信息系统,该系统拥有不同类型的用户(员工,客户,供应商)。当我使用(MS-Access)设计数据库时,它们的每种类型都是单个实体(表)。 我必须给每一个人一个独特的用户名,我该怎么做?
答案 0 :(得分:0)
使用表继承 - 即具有存储核心信息(如用户ID,用户名,密码等)的实体表,然后使用实体类型表(供应商,客户等)将外键存储到实体表中的其他信息
答案 1 :(得分:-1)
这是一个选项......我猜测Access可以处理FK。
user
----
id
username
password
employeeid fk references employee.id
customerid fk references customer.id
supplierid fk references supplier.id
employee
--------
id
<other employee specific columns>
customer
--------
id
<other customer specific columns>
supplier
--------
id
<other supplier specific columns>