-
Notifications
You must be signed in to change notification settings - Fork 414
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
Comments
订单表 最好不要做这种关联字段
…------------------ 原始邮件 ------------------
发件人: "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.
|
我觉得这主要看业务需求,我一般多对多关系才有中间表(就是第一种),一对一,一对多时就用一张表关联(第二种)。 |
期待订单中心更新呀,因为我们现在接触的业务都是虚拟商品,后续可能有周边实体商品,要考量下订单表和订单明细的设计。 |
我会帮你催相关的大佬。不过目前七月是没有希望了 |
都快过年了,更新吧~ |
哈哈哈 |
@xmaxing 今天我们更新了 |
欧力给 |
想是不是可以有个用户套餐关联的表,
还是直接在订单表关联呢
大家这种关联关系倾向于那种呢?
The text was updated successfully, but these errors were encountered: