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

用户、订单、套餐商品该如何关联呢? #19

Open
itcuihao opened this issue Jul 2, 2019 · 8 comments
Open

用户、订单、套餐商品该如何关联呢? #19

itcuihao opened this issue Jul 2, 2019 · 8 comments

Comments

@itcuihao
Copy link

itcuihao commented Jul 2, 2019

想是不是可以有个用户套餐关联的表,

table user_meal
column: user_id,order_id,meal_id

还是直接在订单表关联呢

table order
column: order_id, user_id, meal_id

大家这种关联关系倾向于那种呢?

@cullenx
Copy link

cullenx commented Jul 2, 2019 via email

@almas1992
Copy link

我觉得这主要看业务需求,我一般多对多关系才有中间表(就是第一种),一对一,一对多时就用一张表关联(第二种)。

@itcuihao
Copy link
Author

itcuihao commented Jul 4, 2019

订单表 最好不要做这种关联字段

------------------ 原始邮件 ------------------ 发件人: "haoc7"notifications@github.com; 发送时间: 2019年7月2日(星期二) 上午10:25 收件人: "skr-shop/manuals"manuals@noreply.github.com; 抄送: "Subscribed"subscribed@noreply.github.com; 主题: [skr-shop/manuals] 用户、订单、套餐商品该如何关联呢? (#19) 想是不是可以有个用户套餐关联的表, table user_meal column: user_id,order_id,meal_id 还是直接在订单表关联呢 table order column: order_id, user_id, meal_id 大家这种关联关系倾向于那种呢? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

期待订单中心更新呀,因为我们现在接触的业务都是虚拟商品,后续可能有周边实体商品,要考量下订单表和订单明细的设计。

@helei112g
Copy link
Member

我会帮你催相关的大佬。不过目前七月是没有希望了

@xmaxing
Copy link

xmaxing commented Nov 20, 2019

都快过年了,更新吧~

@TIGERB
Copy link
Member

TIGERB commented Nov 20, 2019

哈哈哈

@helei112g
Copy link
Member

@xmaxing 今天我们更新了

@chunpat
Copy link

chunpat commented Jan 10, 2020

欧力给

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

7 participants