update
This commit is contained in:
44
prisma/migrations/20250329030839_init/migration.sql
Normal file
44
prisma/migrations/20250329030839_init/migration.sql
Normal file
@@ -0,0 +1,44 @@
|
||||
-- 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");
|
||||
Reference in New Issue
Block a user