공연
테이블 (6)
Comment (Untitled3)
- _id — ObjectId — 기본 키 — NOT NULL
- 게시글 id (post_id) — ObjectId — 외래 키 → 자유게시글._id — NOT NULL
- 작성자 id (user_id2) — ObjectId — 외래 키 → 자유게시글.작성자 id — NOT NULL — User ref
- _id (_id2) — ObjectId — 외래 키 → 홍보게시글._id — NOT NULL
- 작성자 id (user_id) — ObjectId — 외래 키 → 홍보게시글.작성자 id — NOT NULL — User ref
- 내용 (content) — String
- 작성시간 (created_datetime) — TimeStamp — NOT NULL
Show (API에서 추출) (Untitled4)
- _id — ObjectId — 기본 키 — NOT NULL
- 공연 번호 (show_number) — number — NOT NULL — unique
- 공연 일시 (show_date) — String — NOT NULL
- 예매 기간 (due_ticketing) — String — NOT NULL
- 지역 정보 (location) — String — NOT NULL
- 공연 상태 (0: 공연 전, 1: 만료) (state) — number — NOT NULL
- 줄거리 (summary) — String
- 출연진 (casting) — String
- 포스터 이미지 (poster_url) — String — NOT NULL
- 소개 이미지 (content_url) — String
- 공연 규모 code (좌석 수) (size_number) — number — NOT NULL
- 가격 (price) — number — NOT NULL
- 제작진 (producer) — String
- 제작사 (company) — String
- 연령 (rating) — number — NOT NULL — (나이니까 number)
- 런타임 (runtime) — String
- 예매 url (ticketing_url) — String
- 리뷰 제목 (review_title) — String — Review ref
- 리뷰 내용 (review_content) — String — Review ref
- 별점 (score) — number — Review ref
리뷰 (Review)
- _id — ObjectId — 기본 키 — NOT NULL
- 작성자 id (user_id) — ObjectId — 외래 키 → 사용자._id — NOT NULL
- 공연 id (show_id) — ObjectId — 외래 키 → Show (API에서 추출)._id — NOT NULL
- 제목 (title) — String — NOT NULL
- 내용 (content) — String — NOT NULL
- 별점 (score) — number
- 작성시간 (created_datetime) — TimeStamp — NOT NULL
사용자 (User)
- _id — ObjectId — 기본 키 — NOT NULL
- user_id (by. oAuth) (user_id) — String — NOT NULL — unique
- 닉네임 (alias) — String — NOT NULL — unique
- 프로필 사진 (profile_url) — String — NOT NULL
- 관심 지역 (interested_area) — String — NOT NULL
- 공연 찜 (dibs) — ObjectId
자유게시글 (Post)
- _id — ObjectId — 기본 키 — NOT NULL
- 작성자 id (user_id) — ObjectId — 외래 키 → 사용자._id — NOT NULL — User ref
- 게시글 번호 (post_number) — number — NOT NULL — 자동생성/ unique
- 내용 (content) — Stirng
- 댓글 작성자 (comment_id) — ObjectId — Comment ref
- 댓글 내용 (comment_content) — String — Comment ref
- 작성시간 (created_datetime) — TimeStamp — NOT NULL
홍보게시글 (Promotion)
- _id — ObjectId — 기본 키 — NOT NULL
- 작성자 id (user_id) — ObjectId — 외래 키 → 사용자._id — NOT NULL — User ref
- 태그 (tags) — array[String]
- 게시글 번호 (promotion_number) — number — NOT NULL — 자동생성/ unique
- 포스터 사진 (poster_url) — String — NOT NULL
- 내용 (content) — Stirng
- 댓글 작성자 (comment_id) — ObjectId — Comment ref
- 댓글 내용 (comment_content) — String — Comment ref
- 작성시간 (created_datetime) — TimeStamp — NOT NULL