studyroom

Tables (4)

room (룸)

  • 룸_아이디 (room_id) — Primary key — NOT NULL

seat (좌석)

  • 좌석_아이디 (seat_id) — Primary key — NOT NULL
  • 룸_아이디 (room_id) — Foreign key → room.룸_아이디 — NOT NULL

user (유저)

  • 유저_아이디 (user_id) — Primary key — NOT NULL
  • 아이디 (id)
  • 비밀번호 (password)

user_seat (유저_좌석)

  • 유저_좌석_아이디 (user_seat_id) — Primary key — NOT NULL
  • 유저_아이디 (user_id) — Foreign key → user.유저_아이디 — NOT NULL
  • 좌석_아이디 (seat_id) — Foreign key → seat.좌석_아이디 — NOT NULL
  • 시작시간 (start_time)
  • 종료시간 (end_time)
  • 날짜 (date)