Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
拥有这样的数据库结构是个好主意吗?在经理表中,id_item 就像来自学校或公司的外键,基于配置文件的类型(id_item 是 school.id 或 company.id 基于类型字段)就像编程语言中没有类型的动态变量。
那么为什么不创建一个组织表并将其引用给经理。您是否需要这种级别的细节,拥有两个独立的实体?