generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
}
datasource db {
provider = "sqlite"
}
model PrismaTest {
id Int @id @default(autoincrement())
date DateTime
bigint BigInt
decimal Decimal
}
model Customers {
customerId Int @id @default(autoincrement())
companyName String?
contactName String?
}
/// Testing with D1 types
model Test {
id Int @id @default(autoincrement())
text String?
real Float?
int Int?
boolean Boolean
blob Bytes?
}
/// Testing with non-default D1 types
/// Unchecked:
/// - DECIMAL
/// - JSON
model User {
id Int @id @default(autoincrement())
posts Post[]
}
model Post {
id Int @id @default(autoincrement())
author User @relation(fields: [authorId], references: [id])
authorId Int
title String
}