Relationships

Posted 11 months ago by meteguerlek

Hi, my tables:

users

  • id

orders

  • id
  • user_id

steps

  • id

items

  • id
  • step_id

user_step_items

  • id
  • user_id
  • order_id
  • step_id
  • item_id

I wanted the steps which user has. Maybe i need other table? Like:

order_step

  • order_id
  • step_id

Please sign in or create an account to participate in this conversation.