mtfosbot_schema/20180811-1.sql

11 lines
521 B
SQL

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
);