56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
|
|
model Account {
|
|
id Int @id @default(autoincrement())
|
|
type String?
|
|
firstName String?
|
|
lastName String?
|
|
email String? @unique
|
|
phone Int?
|
|
company String?
|
|
password String?
|
|
accountInformation AccountInformation?
|
|
}
|
|
|
|
model JobPost {
|
|
id BigInt @id @default(autoincrement())
|
|
businessId Int?
|
|
heading BigInt?
|
|
description BigInt?
|
|
locationText BigInt?
|
|
locationLongLat BigInt?
|
|
field BigInt?
|
|
contractType BigInt?
|
|
payRange BigInt?
|
|
hours BigInt?
|
|
createdAt BigInt?
|
|
endingAtTime BigInt?
|
|
}
|
|
|
|
model AccountInformation {
|
|
id Int @id @default(autoincrement())
|
|
sex String?
|
|
age Int?
|
|
suburb BigInt?
|
|
postcode BigInt?
|
|
state BigInt?
|
|
searchPostcode BigInt?
|
|
searchRadius BigInt?
|
|
accountId Int @unique // Add the unique constraint here
|
|
account Account @relation(fields: [accountId], references: [id])
|
|
}
|