Skip to content

Instantly share code, notes, and snippets.

@silenius
Created March 12, 2015 11:59
Show Gist options
  • Save silenius/77d406f8e0c0e26eb38f to your computer and use it in GitHub Desktop.
Save silenius/77d406f8e0c0e26eb38f to your computer and use it in GitHub Desktop.
create table account_role(
id serial not null,
account_id integer not null,
role_id integer not null,
pool_id integer,
constraint pk_account_role
primary key(id),
constraint fk_account
foreign key(account_id) references account(id),
constraint fk_role
foreign key(role_id) references role(id),
constraint fk_pool
foreign key(pool_id) references pool(id)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment