Created
October 20, 2015 16:47
-
-
Save stephenmathieson/b870a662474063ba75fd to your computer and use it in GitHub Desktop.
stupid stupid stupid
This file contains hidden or 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
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