-
Notifications
You must be signed in to change notification settings - Fork 0
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
[RSN-23] - Create constraints #11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wzarek please verify that I didn't miss something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To check:
- events.participant: combination of event_id and user_id should be unique, we can even do it as primary key I think
- common.status: status name should be unique
- events.tag: tag name should be unique
- events.parameter: combination of key, value should be unique I think (to discuss)
- users.role: role name should be unique
- common.object_type: object type name should be unique
- common.image: we should check that object of type user have max of 1 image
Also please merge main into your branch before merging, it will be easier to resolve conflicts on your computer than on github just before merging.
Every unique value mentioned here has been added. Furthermore to resolve problem with common.image and adding max 1 image for user, I have created unique index for object_type_id and object_id connection when object_type_id = 2 (it's user's obj_type_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@rogacky11 please rebase before merging and do squash and merge then. |
Description
I have created constraints for individual rows which are checking if added value's format is correct.
Related issue and/or ticket
RSN-23