항플 2주차
테이블 (5)
account (회원)
- 회원 고유번호 (id) — bigint — 기본 키 — NOT NULL
- 회원명 (name) — varchar
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
lectures (특강)
- 특강 고유 번호 (id) — bigint — 기본 키 — NOT NULL
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
- 특강비디오url (lecturesVideoUrl) — varchar
lectures_schedule (특강 스케쥴)
- 특강 스케줄 고유 번호 (id) — bigint — 기본 키 — NOT NULL
- 특강 고유 번호 (lectures_id) — bigint — 외래 키 → lectures.특강 고유 번호 — NOT NULL
- 정원 (limit) — integer
- 특강 오픈일 (open_at) — timestamp
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
- 특강제목 (title) — varchar
lectures_schedule_account (특강 수강생 목록)
- 수강 고유 번호 (id) — bigint — 기본 키 — NOT NULL
- 회원 고유번호 (account_id) — bigint — 외래 키 → account.회원 고유번호 — NOT NULL
- 특강 고유 번호 (lectures_schedule_id) — bigint — 외래 키 → lectures_schedule.특강 고유 번호 — NOT NULL
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
lectures_schedule_account_history (수강신청 히스토리)
- 히스토리 고유번호 (id) — bigint — 기본 키 — NOT NULL
- 회원 고유번호 (account_id) — bigint — 외래 키 → account.회원 고유번호 — NOT NULL
- 특강 스케줄 고유 번호 (lectures_schedule_id) — bigint — 외래 키 → lectures_schedule.특강 스케줄 고유 번호 — NOT NULL
- 상태 (state) — varchar
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp