data modeling - Two tables: order and order_status. Relationship or enum type? What kind of relationshi -
i have 2 tables: order
, order_status
.
in first 1 store orders of shop , in second 1 different possible statuses order can have (in progress, paid, ...).
should there relationship (1:1??) between these 2 tables or should create enum type status values?
go ahead , create table. need more statuses on time (trust me, work on 20,000 online stores every day, , orderstatus not simple sounds). let add flags statuses: answers may count form of "shipped", if descriptions vary.
Comments
Post a Comment