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

Patient.PatientId should be a foreign key to User.UserId. Patient table should not have a separate UserId column. #4

Open
sencode opened this issue Apr 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@sencode
Copy link
Collaborator

sencode commented Apr 25, 2020

Instead of having PatientId being an autogenerated primary key for Patient table, and having UserId as a foreign key to User.UserId,

delete the column UserId from Patient table, and make PatientId both the primary key as well as the foreign key to User.UserId. Do not autogenerate PatientId, simply copy the value from the User.UserId table.

@sencode sencode added the enhancement New feature or request label May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants