Last active
August 29, 2015 14:04
-
-
Save brendanmckenzie/68e3744c5d4e38010cd8 to your computer and use it in GitHub Desktop.
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
begin transaction; | |
create table "user" ( | |
id serial not null | |
constraint pk_user primary key, | |
password bytea null, | |
created timestamp | |
); | |
create table "user_email" ( | |
id serial not null | |
constraint pk_user_email primary key, | |
user_id integer not null | |
constraint "fk_user" references "user" ( id ), | |
email varchar(255) not null, | |
primary boolean | |
); | |
│ | |
commit transaction; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment