Files
budget-database/postgres/tables/budgetdetails.sql
2023-03-04 18:23:05 -05:00

19 lines
525 B
SQL

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