Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@brendanmckenzie
Last active August 29, 2015 14:04
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 brendanmckenzie/68e3744c5d4e38010cd8 to your computer and use it in GitHub Desktop.
Save brendanmckenzie/68e3744c5d4e38010cd8 to your computer and use it in GitHub Desktop.
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