-
Notifications
You must be signed in to change notification settings - Fork 0
/
scheme.sql
31 lines (29 loc) · 861 Bytes
/
scheme.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CREATE TABLE playlists (
id character(22) PRIMARY KEY,
name text,
description text,
updated timestamp without time zone,
created timestamp without time zone,
cover text,
total_tracks text,
tags text[],
creator text,
data_updated timestamp without time zone DEFAULT now(),
tracks text[]
);
CREATE UNIQUE INDEX playlists_pkey ON playlists(id bpchar_ops);
CREATE TABLE jobs (
target text PRIMARY KEY,
type text,
status smallint DEFAULT '0'::smallint,
added timestamp without time zone DEFAULT now(),
updated timestamp without time zone,
source text
);
CREATE UNIQUE INDEX jobs_pkey ON jobs(target text_ops);
CREATE TABLE creators (
id text PRIMARY KEY,
name text,
data_updated timestamp without time zone DEFAULT now()
);
CREATE UNIQUE INDEX creators_pkey ON creators(id text_ops);