updates
This commit is contained in:
parent
292ff60720
commit
fa8ed2b599
19 changed files with 349 additions and 216 deletions
|
@ -1,10 +1,14 @@
|
|||
create type playlist_type as enum ('playlist', 'folder');
|
||||
|
||||
create table if not exists playlists
|
||||
(
|
||||
id varchar(24) default nanoid(24),
|
||||
name varchar(255) not null,
|
||||
public bool default false not null,
|
||||
type playlist_type default 'playlist' not null,
|
||||
|
||||
creator_id varchar(24) not null,
|
||||
parent_id varchar(24) references playlists (id) on delete set null,
|
||||
|
||||
created_at timestamp default now(),
|
||||
updated_at timestamp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue