16 lines
402 B
SQL
16 lines
402 B
SQL
-- Your SQL goes here
|
|
create table if not exists tracks
|
|
(
|
|
id varchar(24) default nanoid(24),
|
|
title varchar(255) not null,
|
|
duration_ms int not null default 0,
|
|
|
|
created_at timestamp default now(),
|
|
updated_at timestamp,
|
|
|
|
-- music services
|
|
spotify_id varchar(22) unique,
|
|
tidal_id varchar(10) unique,
|
|
|
|
primary key (id)
|
|
);
|