Skip to content

Instantly share code, notes, and snippets.

@stephenmathieson
Created October 20, 2015 16:47
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 stephenmathieson/b870a662474063ba75fd to your computer and use it in GitHub Desktop.
Save stephenmathieson/b870a662474063ba75fd to your computer and use it in GitHub Desktop.
stupid stupid stupid
CREATE TABLE "user" (
id uuid DEFAULT uuid_generate_v1mc() NOT NULL,
organization_id uuid,
username character varying(255) NOT NULL,
email character varying(255) NOT NULL,
fancy_username_or_whatever varying(255) NOT NULL,
password character varying(255),
reset_token character varying(255),
reset_expiry timestamp with time zone,
is_admin boolean DEFAULT false NOT NULL,
is_active boolean DEFAULT true NOT NULL,
session_duration smallint DEFAULT 15,
folders uuid[],
created_at timestamp with time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at timestamp with time zone DEFAULT timezone('utc'::text, now()) NOT NULL
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment