자리nullnull

테이블 (5)

Place (공부공간)

  • id (공간id) — not null — 기본 키 — NOT NULL
  • name (공간이름) — not null
  • created_at (생성일자) — not null
  • updated_at (수정일자)

authentication (인증)

  • id (인증id) — not null — 기본 키 — NOT NULL
  • member_id (회원id) — not null — 외래 키 → member.id — NOT NULL
  • auth_code (인증번호) — not null
  • expired_at (인증만료시간) — not null
  • created_at (생성일자) — not null
  • updated_at (수정일자)

member (회원)

  • id (회원id) — not null — 기본 키 — NOT NULL
  • phone_number (휴대폰번호) — not null
  • created_at (생성일자) — not null
  • updated_at (수정일자)

seat (좌석)

  • id (좌석id) — not null — 기본 키 — NOT NULL
  • place_id (공간id) — not null — 외래 키 → Place.id — NOT NULL
  • x1 (좌상단 x좌표) — not null
  • y1 (좌상단 y좌표) — not null
  • x2 (우하단 x좌표) — not null
  • y2 (우하단 y좌표) — not null
  • status (점유 여부) — not null
  • created_at (생성일자) — not null
  • updated_at (수정일자)

seat_usage (사용중인 좌석)

  • id — not null — 기본 키 — NOT NULL
  • member_id (회원id) — not null — 외래 키 → member.id — NOT NULL
  • seat_id (좌석id) — not null — 외래 키 → seat.id — NOT NULL
  • empty_time (자리비움시간) — not null
  • created_at (생성일자) — not null
  • updated_at (수정일자)