generated from ctc-uci/npo-backend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47de9b9
commit cae48e7
Showing
2 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
DROP TABLE IF EXISTS public.notification; | ||
DROP TABLE IF EXISTS public.fair_market_value; | ||
|
||
CREATE TABLE IF NOT EXISTS public.notification | ||
CREATE TABLE IF NOT EXISTS public.fair_market_value | ||
( | ||
business_id integer NOT NULL DEFAULT nextval('notification_business_id_seq'::regclass), | ||
notification_id integer NOT NULL DEFAULT nextval('notification_notification_id_seq'::regclass), | ||
message character varying(2000) COLLATE pg_catalog."default" NOT NULL, | ||
"timestamp" date NOT NULL, | ||
been_dismissed boolean NOT NULL, | ||
CONSTRAINT notification_pkey PRIMARY KEY (notification_id), | ||
CONSTRAINT business_id FOREIGN KEY (business_id) | ||
REFERENCES public.business (id) MATCH SIMPLE | ||
ON UPDATE NO ACTION | ||
ON DELETE NO ACTION | ||
item_id integer NOT NULL DEFAULT nextval('fair_market_value_item_id_seq'::regclass), | ||
item_name character varying(200) COLLATE pg_catalog."default" NOT NULL, | ||
quantity_type character varying(100) COLLATE pg_catalog."default", | ||
price numeric, | ||
category character varying(50) COLLATE pg_catalog."default", | ||
CONSTRAINT fair_market_value_pkey PRIMARY KEY (item_id) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
DROP TABLE IF EXISTS public.fair_market_value; | ||
DROP TABLE IF EXISTS public.notification; | ||
|
||
CREATE TABLE IF NOT EXISTS public.fair_market_value | ||
CREATE TABLE IF NOT EXISTS public.notification | ||
( | ||
item_id integer NOT NULL DEFAULT nextval('fair_market_value_item_id_seq'::regclass), | ||
item_name character varying(200) COLLATE pg_catalog."default" NOT NULL, | ||
quantity_type character varying(100) COLLATE pg_catalog."default", | ||
price numeric, | ||
category character varying(50) COLLATE pg_catalog."default", | ||
CONSTRAINT fair_market_value_pkey PRIMARY KEY (item_id) | ||
business_id integer NOT NULL DEFAULT nextval('notification_business_id_seq'::regclass), | ||
notification_id integer NOT NULL DEFAULT nextval('notification_notification_id_seq'::regclass), | ||
message character varying(2000) COLLATE pg_catalog."default" NOT NULL, | ||
"timestamp" date NOT NULL, | ||
been_dismissed boolean NOT NULL, | ||
CONSTRAINT notification_pkey PRIMARY KEY (notification_id), | ||
CONSTRAINT business_id FOREIGN KEY (business_id) | ||
REFERENCES public.business (id) MATCH SIMPLE | ||
ON UPDATE NO ACTION | ||
ON DELETE NO ACTION | ||
) |