CREATE TABLE receipts ( id serial PRIMARY KEY, date timestamp with time zone NOT NULL, vendor varchar(99) NOT NULL, amount decimal NOT NULL, notes text, filename varchar(199) NOT NULL, image bytea NOT NULL );