Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主外键问题 #18

Open
LeoWangEcho opened this issue Jun 18, 2024 · 3 comments
Open

主外键问题 #18

LeoWangEcho opened this issue Jun 18, 2024 · 3 comments

Comments

@LeoWangEcho
Copy link

在这个系统中数据库外键关联表啥的怎么定义呢

@LeoWangEcho
Copy link
Author

为啥要把所有外键都去掉

@aehyok
Copy link
Owner

aehyok commented Sep 14, 2024

可以加外键的,不过基本上没必要的。而且算是外键的字段会自动加上索引的
image

@aehyok
Copy link
Owner

aehyok commented Sep 14, 2024

添加关系可以参考
image

@LeoWangEcho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants