Pinata
테이블 (4)
사용자 (tb_members)
- 사용자 ID (id) — BIGINT — 기본 키 — NOT NULL
- 이메일 (email) — VARCHAR(100)
- ProviderId (provider_id) — BIGINT
- 프로필 이미지 URL (profile_image_url) — VARCHAR(100)
- 탈퇴여부 (use_flag) — Boolean
- 생성일자 (created_date) — DATETIME
- 수정일자 (updated_date) — DATETIME
이벤트 (tb_events)
- 이벤트 ID (id) — BIGINT — 기본 키 — NOT NULL
- 이벤트 코드 (code) — BINARY(16)
- 이벤트명 (title) — VARCHAR(500)
- 시작날짜 (open_at) — DATETIME
- 종료날짜 (close_at) — DATETIME
- 이벤트 유형 (type) — VARCHAR(20)
- 당첨제한인원 (limit_count) — Integer
- 당첨자수 (hit_count) — Integer
- 참여자수 (participant_count) — Integer
- 당첨 이미지 파일명 (hit_image_file_name) — VARCHAR(100)
- 당첨 메시지 (hit_message) — VARCHAR(1000)
- 탈락 이미지 파일명 (miss_image_file_name) — VARCHAR(100)
- 탈락 메시지 (miss_message) — VARCHAR(1000)
- 생성일자 (created_date) — DATETIME
- 수정일자 (updated_date) — DATETIME
- 사용여부 (use_flag) — Boolean
이벤트 기록 (tb_event_histories)
- 이벤트 기록 ID (id) — BIGINT — 기본 키 — NOT NULL
- 이벤트 ID (event_id) — BIGINT
- 이벤트명 (event_title) — VARCHAR(500)
- 참여자 ID (participant_id) — BIGINT
- 참여자명 (participant_name) — VARCHAR(50)
- 참여자 이메일 (participant_email) — VARCHAR(100)
- 상품 ID (event_item_id) — BIGINT
- 당첨여부 (is_hit) — Boolean
- 생성일자 (created_date) — DATETIME
- 수정일자 (updated_date) — DATETIME
- 사용여부 (use_flag) — Boolean
이벤트 상품 (tb_event_items)
- 이벤트 상품 ID (id) — BIGINT — 기본 키 — NOT NULL
- 이벤트 ID (event_id) — BIGINT — 외래 키 → 이벤트.이벤트 ID — NOT NULL
- 상품 제목 (title) — VARCHAR(500)
- 상품 이미지 파일명 (image_file_name) — VARCHAR(100)
- 순번 (ranking) — Integer
- 수령여부 (is_accepted) — Boolean
- 수령날짜 (accepted_date) — DATETIME
- 생성일자 (created_date) — DATETIME
- 수정일자 (updated_date) — DATETIME
- 사용여부 (use_flag) — Boolean