api/migrations/2023-12-30-192105_tracks/up.sql
2024-01-01 03:18:33 +01:00

16 lines
411 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() not null,
updated_at timestamp,
-- music services
spotify_id varchar(21) unique,
tidal_id varchar(10) unique,
primary key (id)
);