// 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") } /* Some tips: ? means can be null or optional [] means 1 to many */ model Account { id Int @id @default(autoincrement()) type String? firstName String? lastName String? email String? phone Int? company String? password String? accountInformation AccountInformation? BusinessInformation BusinessInformation? JobPost JobPost[] } model JobPost { id BigInt @id @default(autoincrement()) businessId Int? heading String? description String? locationText Int? locationLongLat Int? jobField String? contractType String? payRange String? hours String? createdAt DateTime @default(now()) endingAtTime DateTime? accountId Int account Account @relation(fields: [accountId], references: [id]) } 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]) } model BusinessInformation { id Int @id @default(autoincrement()) businessName String? abn Int? accountId Int @unique // Add the unique constraint here account Account @relation(fields: [accountId], references: [id]) }