This commit is contained in:
jackbeeby
2025-03-31 16:13:56 +11:00
parent d8773925e8
commit 0b9d543d36
22 changed files with 3203 additions and 32 deletions

55
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,55 @@
// 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])
}