Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.