Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composite UNIQUE key #100

Open
SharkFourSix opened this issue Dec 2, 2023 · 0 comments
Open

Composite UNIQUE key #100

SharkFourSix opened this issue Dec 2, 2023 · 0 comments

Comments

@SharkFourSix
Copy link

create table extra_data (
    id serial not null primary key, 
    code int not null, 
    data text not null,
    owner_id int not null,

    constraint ed_key unique(code, owner_id)
)

I need this very specific situation but the library doesn't seem to support it/throws errors. Any work around or I should look for something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant