-
Notifications
You must be signed in to change notification settings - Fork 7
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
#2829 stats page schema changes #2841
Conversation
src/backend/src/prisma/schema.prisma
Outdated
startDate DateTime | ||
endDate DateTime | ||
title String | ||
linkId String @id @default(uuid()) |
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.
Is this the id for the graph?
src/backend/src/prisma/schema.prisma
Outdated
@@ -392,6 +425,8 @@ model Project { | |||
car Car @relation(fields: [carId], references: [carId]) | |||
teams Team[] @relation(name: "assignedBy") | |||
favoritedBy User[] @relation(name: "favoritedBy") | |||
Graph Graph? @relation(fields: [graphLinkId], references: [linkId]) |
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.
Maybe I'm a bit confused about the purpose of this field, but shouldn't it be a many to many relation?
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.
Will probably need some changes down the line but this is a good to work with now
Changes
Added new models to the schema for the graphs, graph collections (essentially containers), and the necessary enums
Notes
had to add an id to model GraphData to create the relation
Checklist
yarn.lock
changes (unless dependencies have changed)Closes #2829