123123

Tables (7)

Order

  • id — BIGINT
  • user_id — VARCHAR(255) — NOT NULL

OrderDetail

  • id — BIGINT
  • order_id — BIGINT — NOT NULL
  • product_id — BIGINT — NOT NULL
  • quantity — INT — NOT NULL
  • total_price — INT — NOT NULL

Payment

  • id — BIGINT
  • order_id — BIGINT — NOT NULL

Product

  • id — BIGINT
  • product_id — VARCHAR(255) — NOT NULL
  • product_name — VARCHAR(255) — NOT NULL
  • product_price — INT — NOT NULL
  • product_quantity — INT — NOT NULL
  • category_id — BIGINT

ProductCategory

  • id — BIGINT
  • category_name — VARCHAR(255) — NOT NULL

ProductImage

  • id — BIGINT
  • product_id — BIGINT — NOT NULL
  • image_link — VARCHAR(255)

User

  • id — BIGINT
  • user_id — VARCHAR(255) — NOT NULL
  • user_name — VARCHAR(255) — NOT NULL
  • user_password — VARCHAR(255) — NOT NULL
  • user_birth — VARCHAR(255) — NOT NULL
  • user_auth — ENUM('ROLE_ADMIN', 'ROLE_USER') — NOT NULL
  • user_point — INT — NOT NULL
  • created_at — DATETIME — NOT NULL
  • latest_login_at — DATETIME