CoCoNut-was
Tables (8)
Project (공모전)
- 공모전 고유 id (id) — int — Primary key
- 공모전 제목 (title) — varchar(100) — NOT NULL
- 가게명 (업체명) (merchant_name) — varchar(100) — NOT NULL
- 공모전 카테고리 (category) — ENUM — NOT NULL
- 공모전 업종 (business_type) — ENUM — NOT NULL
- 공모전 상세 설명 (description) — text — NOT NULL
- 공모전 상금 (reward_amount) — int — NOT NULL
- 공모전 한 줄 소개 (summary) — varchar(100) — NOT NULL
- 공모전 생성일 (created_at) — datetime — NOT NULL
- 공모전 마감일 (deadline) — datetime — NOT NULL
- 공모전 상태 (status) — ENUM('in_progress', 'voting', 'closed') — NOT NULL
- 유저 고유 id (user_id) — bigint — Foreign key → User.유저 고유 id — NOT NULL
ProjectColor (공모전 색)
- 공모전 색 고유 id (projectColor_id) — int — Primary key — NOT NULL
- 색상 (color) — varchar(10)
- 공모전 고유 id (project_id) — int — Foreign key → Project.공모전 고유 id — NOT NULL
ProjectStyle (공모전 스타일)
- 공모전 스타일 고유 id (projectStyle_id) — int — Primary key — NOT NULL
- 스타일 (style) — varchar(10)
- 공모전 고유 id (project_id) — int — Foreign key → Project.공모전 고유 id — NOT NULL
ProjectTarget (공모전 타겟)
- 공모전 타겟 고유 id (projectTarget_id) — int — Primary key — NOT NULL
- 타켓 (target) — varchar(10)
- 공모전 고유 id (project_id) — int — Foreign key → Project.공모전 고유 id — NOT NULL
Reward (보상)
- 보상 고유 id (reward_id) — int — Primary key — NOT NULL
- 금액 (reward_amount) — int — NOT NULL
- 지급 날짜 (reward_at) — datetime — NOT NULL
- 유저 고유 id (user_id) — int — Foreign key → User.유저 고유 id — NOT NULL
- 작품 제출 고유 id (submission_id) — int — Foreign key → Submission.작품 제출 고유 id — NOT NULL
- 공모전 고유 id (project_id) — int — Foreign key → Project.공모전 고유 id — NOT NULL
Submission (제출)
- 작품 제출 고유 id (submission_id) — int — Primary key — NOT NULL
- 제출물 제목 (title) — varchar(10) — NOT NULL
- 제출물 설명 (description) — text — NOT NULL
- 관련 경로 (related_url) — text
- 대표 이미지 경로 (image_url) — text
- 작품 제출일 (submitted_at) — datetime — NOT NULL
- 공모전 고유 id (project_id) — int — Foreign key → Project.공모전 고유 id — NOT NULL
- 유저 고유 id (user_id) — int — Foreign key → User.유저 고유 id — NOT NULL
User (사용자)
- 유저 고유 id (user_id) — int — Primary key — NOT NULL
- 유저 이메일 (email) — varchar(255) — NOT NULL
- 유저 이름 (name) — varchar(10) — NOT NULL
- 유저 닉네임 (nickname) — varchar(10) — NOT NULL
- 유저 비밀번호 (password) — varchar(255) — NOT NULL
- 유저 역할 (role) — ENUM('ROLE_USER', 'ROLE_BUSINESS') — NOT NULL
Vote (투표)
- 투표 고유 id (vote_id) — int — Primary key — NOT NULL
- 작품 제출 고유 id (submission_id) — int — Foreign key → Submission.작품 제출 고유 id — NOT NULL
- 유저 고유 id (user_id) — int — Foreign key → User.유저 고유 id — NOT NULL
- 공모전 고유 id (project_id) — int — Foreign key → Project.공모전 고유 id — NOT NULL