Pedia of Sunnah
12/22/2021, 9:20 AMfindMany
export const docs = () => {
return db.doc.findMany()
}
schema:
model Doc {
id Int @id @default(autoincrement())
docable_type String
docable_id Int
file String
created_by Int
updated_by Int
deleted_at DateTime?
created_at DateTime? @default(now())
updated_at DateTime? @updatedAt
title String?
tenant Tenant? @relation(fields: [tenant_id], references: [id])
tenant_id Int?
@@map("docs")
}
Have a solution for this?