Skip to content

Instantly share code, notes, and snippets.

@nutterbrand
Created January 4, 2021 05:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Creates the Shop table
DROP TABLE IF EXISTS "public"."shop";
CREATE SEQUENCE IF NOT EXISTS shop_id_seq;
CREATE TABLE "public"."shop" (
"id" int4 NOT NULL DEFAULT nextval('shop_id_seq'::regclass),
"shop" varchar(254) NOT NULL,
"access_token" varchar(254) NOT NULL,
"date_joined" timestamptz NOT NULL,
"user_scope" varchar(254) NOT NULL,
"user_first_name" varchar(254) NOT NULL,
"user_last_name" varchar(254) NOT NULL,
"user_email" varchar(254) NOT NULL,
"locale" varchar(4) NOT NULL,
"is_owner" bool NOT NULL,
"is_collaborator" bool NOT NULL,
"is_email_verified" bool NOT NULL,
"is_active" bool NOT NULL,
PRIMARY KEY ("id")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment