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

Adding the migration to include the project. #15

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

maxyuri13
Copy link
Collaborator

  • Added migrations for adding the project.
  • Established the connection between adding the project and the user.

Copy link

}

model AddProject {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be projects?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -15,4 +15,19 @@ model User {
password_hash String
created_at DateTime @default(now())
updated_at DateTime @updatedAt

addProjects AddProject[]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be projects?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"surname" TEXT NOT NULL,
"email" TEXT NOT NULL,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that here? That is already done in the first migration that you delete!

@MatheusSanchez MatheusSanchez merged commit a3d9e78 into master Jan 26, 2024
2 checks passed
@MatheusSanchez MatheusSanchez deleted the SFD-5 branch February 4, 2024 21:50
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

Successfully merging this pull request may close these issues.

2 participants