오늘의마켓

테이블 (7)

Category (카테고리)

  • category_id (카테고리아이디) — 기본 키 — NOT NULL
  • name (카테고리명)
  • description (설명)

Order (주문)

  • order_id (주문아이디) — 기본 키 — NOT NULL
  • user_id (유저아이디)
  • order_date (주문날짜)
  • total_amount (총금액)
  • status (상태)

Permission (권한)

  • permission_id (권한아이디) — 기본 키 — NOT NULL
  • permission_name (권한 이름)
  • description (설명)

Product (제품)

  • product_id (제품아이디) — 기본 키 — NOT NULL
  • category_id (카테고리아이디) — 외래 키 → Category.category_id — NOT NULL
  • product_name (제품명)
  • description (설명)
  • price (가격)
  • image_url (이미지주소)
  • register_date (생성일)
  • register (수정일)
  • update_date (생성자)
  • updater (수정자)

Role (역할)

  • role_id (역할아이디) — 기본 키 — NOT NULL
  • role_name (역할명)
  • description (설명)

Role-permission (역할-권한)

  • user_role_id (유저권한아이디) — 기본 키 — NOT NULL
  • role_id (역할아이디) — 외래 키 → Role.role_id — NOT NULL
  • permission_id (권한아이디) — 외래 키 → Permission.permission_id — NOT NULL

User (고객)

  • user_id (아이디) — 기본 키 — NOT NULL — PK
  • email (이메일) — NOT NULL
  • password_hash (비밀번호) — NOT NULL
  • name (이름) — NOT NULL
  • birth (생년월일)
  • is_active (활성상태) — NOT NULL
  • register_date (생성일)
  • register (수정날짜)
  • update_date (생성자)
  • updater (수정자)