From f66de3284aa4345bfb0626797313915cd85551b8 Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 6 Jan 2019 10:58:53 +0800 Subject: [PATCH] add price table --- schema/20190106-1.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 schema/20190106-1.sql diff --git a/schema/20190106-1.sql b/schema/20190106-1.sql new file mode 100644 index 0000000..eccef98 --- /dev/null +++ b/schema/20190106-1.sql @@ -0,0 +1,13 @@ +create table public.card_price +( + card uuid not null + constraint card_price_pk + primary key, + price_n float default 0 not null, + price_f float default 0 not null, + ctime timestamp with time zone default current_timestamp not null +); +alter table public.card_price + add constraint card_price_cards_id_fk + foreign key (card) references cards + on delete cascade;