song
테이블 (10)
게시판 (boards)
- id (게시판 아이디) — unsignedBigInt — 기본 키 — NOT NULL
- user_id (유저 아이디) — unsignedBigInt — 외래 키 → 일반 유저.user_id — NOT NULL
- company_id (기업 유저 아이디) — unsignedBigInt — 외래 키 → 기업 유저.company_id — NOT NULL
- board_category_id (게시판 카테고리 아이디) — unsignedBigInt — 외래 키 → 게시판 카테고리.board_category_id — NOT NULL
- title (제목) — string
- content (내용) — string
- created_at (생성 시간) — timestamp
- deleted_at (삭제 시간) — timestamp
- count (조회수) — int
- save (찜) — int
- likes (좋아요) — int
- is_public (공개여부) — boolean
게시판 카테고리 (board_categories)
- board_category_id (아이디) — unsignedBigInt — 기본 키 — NOT NULL
- name (장르) — string
공지 (notices)
- id (아이디) — unsignedBigInt — 기본 키 — NOT NULL
- title (제목) — string
- content (내용) — string
- created_at (생성시간) — timestamp
- count (조회수) — int
기업 유저 (company)
- company_id (기업 유저 아이디) — unsignedBigInt — 기본 키 — NOT NULL
- company_email (이메일) — string
- company_password (패스워드) — string
- company_name (이름) — string
- is_admin (관리자 여부) — boolean
- created_at (생성날짜) — timestamp
노래 (songs)
- song_id (노래 아이디) — unsingedBigInt — 기본 키 — NOT NULL
- user_id (유저 아이디) — unsignedBigInt — 외래 키 → 일반 유저.user_id — NOT NULL
- file_name (파일 이름) — string
- size (크기) — bigInt
댓글 (comments)
- comment_id (댓글번호) — unsignedBigInt — 기본 키 — NOT NULL
- id (게시판 아이디) — unsignedBigInt — 외래 키 → 게시판.id — NOT NULL
- user_id (유저 아이디) — unsignedBigInt — 외래 키 → 일반 유저.user_id — NOT NULL
- company_id (기업 유저 아이디) — unsignedBigInt — 외래 키 → 기업 유저.company_id — NOT NULL
- content (내용) — string
- created_at (생성시간) — timestamp
- deleted_at (삭제시간) — timestamp
- Field
일반 유저 (user)
- user_id (유저 아이디) — unsignedBigInt — 기본 키 — NOT NULL
- user_email (이메일) — string
- user_password (패스워드) — string
- user_name (이름) — string
- is_admin (관리자 여부) — boolean
- created_at (생성날짜) — timestamp
점수판 (score)
- id (점수판 아이디) — unsignedBigInt — 기본 키 — NOT NULL
- song_id (노래 아이디) — unsingedBigInt — 외래 키 → 노래.song_id — NOT NULL
- hit_percent (히트곡 예측) — float
- is_public (공개여부) — boolean
찜목록 (likes)
- id (찜목록아이디) — unsignedBigInt — 기본 키 — NOT NULL
- company_id (기업 유저 아이디) — unsignedBigInt — 외래 키 → 기업 유저.company_id — NOT NULL
- id (게시판 아이디) — unsignedBigInt — 외래 키 → 게시판.id — NOT NULL
펀딩 (funding)
- id (펀딩 아이디) — unsingedBigInt — 기본 키 — NOT NULL
- id (노래 아이디) — unsingedBigInt — 외래 키 → 노래.song_id — NOT NULL
- user_id (유저 아이디) — unsignedBigInt — 외래 키 → 노래.user_id — NOT NULL
- money (펀딩 금액) — BigInt
- company_id (기업 유저 아이디) — unsignedBigInt — 외래 키 → 기업 유저.company_id — NOT NULL