Skip to content

Instantly share code, notes, and snippets.

@chrisvaughn
Created May 22, 2018 14:18
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 chrisvaughn/d48f19a75f823081486ea92f11968a01 to your computer and use it in GitHub Desktop.
Save chrisvaughn/d48f19a75f823081486ea92f11968a01 to your computer and use it in GitHub Desktop.
CREATE TABLE "public"."streaks_checkins" (
"user_id" int4 NOT NULL,
"year" int2 NOT NULL,
"checkins" int4[] NOT NULL DEFAULT '{0,0,0,0,0,0,0,0,0,0,0,0}'::integer[],
CONSTRAINT "streaks_checkins_pkey" PRIMARY KEY ("user_id", "year") NOT DEFERRABLE INITIALLY IMMEDIATE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment