프룻프룻

테이블 (4)

event (이벤트)

  • 이벤트 id (eventId) — int — 기본 키
  • 이벤트 이름 (eventName) — string — NOT NULL

eventDate (이벤트에서 선택된 날짜)

  • 이벤트 날짜 id (eventDateId) — int — 기본 키 — NOT NULL
  • 이벤트 id (eventId) — int — 외래 키 → event.이벤트 id — PK
  • 이벤트 날짜 (eventDatedate) — dateonly

user (사용자)

  • 사용자 id (userId) — int — 기본 키 — NOT NULL
  • 이벤트 id (eventId) — int — 외래 키 → event.이벤트 id — CK
  • 사용자 이름 (userName) — string — CK
  • 비밀번호 (password) — string

userTime (사용자가 선택한 시간)

  • 이벤트 날짜 id (eventDateId) — int — 외래 키 → eventDate.이벤트 날짜 id — NOT NULL — CK
  • 사용자 이름 (userName) — int — 외래 키 → user.사용자 id — NOT NULL — CK
  • 날짜 (date) — dateonly
  • 시간 (time) — int