Created
January 4, 2021 05:47
-
-
Save nutterbrand/4fe6a6d21060f035276f7727578160ad to your computer and use it in GitHub Desktop.
Creates the Shop table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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