moving to postgres

This commit is contained in:
Peter Wood
2023-03-04 18:23:05 -05:00
parent 477bfe3cfb
commit 9348a36809
20 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
-- public.budgetdetails definition
-- Drop table
DROP TABLE public.budgetdetails;
CREATE TABLE public.budgetdetails (
trxid uuid NOT NULL DEFAULT uuid_generate_v4(),
trxdescription text NOT NULL,
trxdate date NOT NULL,
trxamount money NOT NULL,
insertdttm timestamp NULL DEFAULT now(),
CONSTRAINT budgetdetails_pkey PRIMARY KEY (trxid)
);
-- Permissions
ALTER TABLE public.budgetdetails OWNER TO acedanger;
GRANT ALL ON TABLE public.budgetdetails TO acedanger;
GRANT ALL ON TABLE public.budgetdetails TO budgetuser;

View File

@@ -0,0 +1,11 @@
DROP TABLE public.budgetimport;
create table public.budgetimport (
dt bpchar(10) NULL,
amount numeric(10, 2) NULL,
description bpchar(200) NULL
);
ALTER TABLE public.budgetimport OWNER TO acedanger;
GRANT ALL ON TABLE public.budgetimport TO acedanger;
GRANT ALL ON TABLE public.budgetimport TO budgetuser;