Skip to content

Instantly share code, notes, and snippets.

@nutterbrand
Created January 4, 2021 05:47
Show Gist options
  • Save nutterbrand/4fe6a6d21060f035276f7727578160ad to your computer and use it in GitHub Desktop.
Save nutterbrand/4fe6a6d21060f035276f7727578160ad to your computer and use it in GitHub Desktop.
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