Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active March 8, 2020 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/c1a001c07f7c9c77d703a504871e17c1 to your computer and use it in GitHub Desktop.
Save garystafford/c1a001c07f7c9c77d703a504871e17c1 to your computer and use it in GitHub Desktop.
DROP TABLE IF EXISTS "transactions";
DROP SEQUENCE IF EXISTS transactions_id_seq;
CREATE SEQUENCE transactions_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 2147483647 START 1 CACHE 1;
CREATE TABLE "public"."transactions"
(
"id" integer DEFAULT nextval('transactions_id_seq') NOT NULL,
"date" character varying(10) NOT NULL,
"time" character varying(8) NOT NULL,
"transaction" integer NOT NULL,
"item" character varying(50) NOT NULL
) WITH (oids = false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment