fruit_table

Tables (4)

boards

  • id — BIGINT
  • user_id — BIGINT — Foreign key → users.id — NOT NULL
  • title — VARCHAR(255) — NOT NULL
  • content — TEXT — NOT NULL
  • created_at — DATETIME

carts

  • id — BIGINT
  • user_id — BIGINT — Foreign key → users.id — NOT NULL
  • product_id — BIGINT — Foreign key → products.id — NOT NULL
  • quantity — INT — NOT NULL

products

  • id — BIGINT
  • title — VARCHAR(255) — NOT NULL
  • price — INT — NOT NULL
  • description — TEXT
  • image_url — VARCHAR(500)
  • category — VARCHAR(100)

users

  • id — BIGINT
  • email — VARCHAR(255) — NOT NULL
  • password — VARCHAR(255) — NOT NULL
  • name — VARCHAR(100) — NOT NULL
  • role — VARCHAR(20)