mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Did more work to beer post page, seed
Worked on comments and beer recs features. Fine tuning database seed amounts.
This commit is contained in:
@@ -46,6 +46,7 @@ model BeerPost {
|
||||
|
||||
model BeerComment {
|
||||
id String @id @default(uuid())
|
||||
rating Int
|
||||
beerPost BeerPost @relation(fields: [beerPostId], references: [id], onDelete: Cascade)
|
||||
beerPostId String
|
||||
postedBy User @relation(fields: [postedById], references: [id], onDelete: Cascade)
|
||||
@@ -81,6 +82,7 @@ model BreweryPost {
|
||||
|
||||
model BreweryComment {
|
||||
id String @id @default(uuid())
|
||||
rating Int
|
||||
breweryPost BreweryPost @relation(fields: [breweryPostId], references: [id], onDelete: Cascade)
|
||||
breweryPostId String
|
||||
postedBy User @relation(fields: [postedById], references: [id], onDelete: Cascade)
|
||||
|
||||
Reference in New Issue
Block a user