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

Consider unique constraint on user_id and name #42

Closed
MikeGlennFWC opened this issue Jan 14, 2020 · 3 comments
Closed

Consider unique constraint on user_id and name #42

MikeGlennFWC opened this issue Jan 14, 2020 · 3 comments

Comments

@MikeGlennFWC
Copy link

I feel there is a benefit to adding a unique constraint across the columns user_id and name.

Currently users can create multiple tokens with the same name, meaning differentiating between them at a later date would be impossible as the key is only to be shown once.

@driesvints
Copy link
Member

Duplicate of #25

@driesvints driesvints marked this as a duplicate of #25 Jan 14, 2020
@MikeGlennFWC
Copy link
Author

MikeGlennFWC commented Jan 15, 2020

Can this be reviewed again, #25 has been closed based on the first issue.

@driesvints
Copy link
Member

@MikeGlennFWC we won't be enforcing this through the library. You can implement this yourself in your app if you want.

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

2 participants