Files
jackbeeby 0b9d543d36 update
2025-03-31 16:13:56 +11:00

45 lines
1.1 KiB
SQL

-- CreateTable
CREATE TABLE "Account" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"type" BIGINT,
"firstName" BIGINT,
"lastName" BIGINT,
"email" BIGINT,
"phone" BIGINT,
"company" BIGINT,
"password" BIGINT
);
-- CreateTable
CREATE TABLE "JobPost" (
"id" BIGINT NOT NULL PRIMARY KEY,
"businessId" INTEGER,
"heading" BIGINT,
"description" BIGINT,
"locationText" BIGINT,
"locationLongLat" BIGINT,
"field" BIGINT,
"contractType" BIGINT,
"payRange" BIGINT,
"hours" BIGINT,
"createdAt" BIGINT,
"endingAtTime" BIGINT
);
-- CreateTable
CREATE TABLE "AccountInformation" (
"id" BIGINT NOT NULL PRIMARY KEY,
"sex" BIGINT,
"age" BIGINT,
"suburb" BIGINT,
"postcode" BIGINT,
"state" BIGINT,
"searchPostcode" BIGINT,
"searchRadius" BIGINT,
"accountId" INTEGER NOT NULL,
CONSTRAINT "AccountInformation_accountId_fkey" FOREIGN KEY ("accountId") REFERENCES "Account" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
);
-- CreateIndex
CREATE UNIQUE INDEX "AccountInformation_accountId_key" ON "AccountInformation"("accountId");