JJAPCloud-Ver2
테이블 (3)
음악 (musics)
- id — int — 기본 키 — NOT NULL — Auto Increament
- 외부 조회 id (public_id) — char(32) — NOT NULL — UUID
- 제목 (title) — varchar(128) — NOT NULL
- 저장된 파일명 (store_name) — char(32) — NOT NULL — UUID
- 재생시간 (play_time) — int — NOT NULL
- 조회수 (view_count) — int — NOT NULL
- 등록일 (created_at) — timestamp — NOT NULL
- 수정일 (updated_at) — timestamp — NOT NULL
- 삭제일 (soft delete) (deleted_at) — timestamp
플레이리스트 (playlists)
- id — int — 기본 키 — NOT NULL — Auto Increament
- 외부 조회 id (public_id) — char(32) — NOT NULL — UUID
- 제목 (title) — varchar(64) — NOT NULL
- 총 개수 (item_count) — int — NOT NULL
- 등록일 (created_at) — timestamp — NOT NULL
- 수정일 (updated_at) — timestamp — NOT NULL
- 삭제일 (soft delete) (deleted_at) — timestamp
플레이리스트 아이템 (playlist_items)
- id — int — 기본 키 — NOT NULL — Auto Increament
- 순서 (position) — int — NOT NULL
- 음악 id (music_id) — int — 외래 키 → 음악.id — NOT NULL — musics fk
- 플레이 리스트 id (playlist_id) — int — 외래 키 → 플레이리스트.id — NOT NULL — playlists fk