add web, api endpoint

This commit is contained in:
Jay
2018-08-11 23:28:00 +08:00
parent 1e834612cb
commit 89b24e0bf6
5 changed files with 23 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
CREATE TABLE public.donate_progres
(
twitch varchar(100) PRIMARY KEY NOT NULL,
start_date timestamp with time zone,
end_date timestamp with time zone,
target_amount int DEFAULT 0 NOT NULL,
title varchar(200) DEFAULT '' NOT NULL,
ctime timestamp with time zone DEFAULT current_timestamp NOT NULL,
mtime timestamp with time zone DEFAULT current_timestamp NOT NULL,
CONSTRAINT donate_progres_twitch_channel_id_fk FOREIGN KEY (twitch) REFERENCES public.twitch_channel (id) ON DELETE CASCADE
);