Created
March 12, 2015 11:59
-
-
Save silenius/77d406f8e0c0e26eb38f 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
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