drop Posts table (#46)

This commit is contained in:
Baobeld 2025-01-04 22:12:27 -05:00 committed by GitHub
parent 5b125d22c8
commit bff55596c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 126 deletions

View file

@ -20,20 +20,6 @@ model User {
email String?
name String
posts Post[]
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
}
model Post {
id String @id @default(uuid())
title String
content String
published Boolean? @default(false)
author User @relation(references: [id], fields: [authorId])
authorId String
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt