diff --git a/package-lock.json b/package-lock.json index 593c3fd4..c241cb8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1396,126 +1396,6 @@ "node": ">= 10" } }, - "node_modules/@next/swc-darwin-x64": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.13.tgz", - "integrity": "sha512-Dv1RBGs2TTjkwEnFMVL5XIfJEavnLqqwYSD6LXgTPdEy/u6FlSrLBSSfe1pcfqhFEXRAgVL3Wpjibe5wXJzWog==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.13.tgz", - "integrity": "sha512-yB1tYEFFqo4ZNWkwrJultbsw7NPAAxlPXURXioRl9SdW6aIefOLS+0TEsKrWBtbJ9moTDgU3HRILL6QBQnMevg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.13.tgz", - "integrity": "sha512-v5jZ/FV/eHGoWhMKYrsAweQ7CWb8xsWGM/8m1mwwZQ/sutJjoFaXchwK4pX8NqwImILEvQmZWyb8pPTcP7htWg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.13.tgz", - "integrity": "sha512-aVc7m4YL7ViiRv7SOXK3RplXzOEe/qQzRA5R2vpXboHABs3w8vtFslGTz+5tKiQzWUmTmBNVW0UQdhkKRORmGA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.13.tgz", - "integrity": "sha512-4wWY7/OsSaJOOKvMsu1Teylku7vKyTuocvDLTZQq0TYv9OjiYYWt63PiE1nTuZnqQ4RPvME7Xai+9enoiN0Wrg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.13.tgz", - "integrity": "sha512-uP1XkqCqV2NVH9+g2sC7qIw+w2tRbcMiXFEbMihkQ8B1+V6m28sshBwAB0SDmOe0u44ne1vFU66+gx/28RsBVQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.13.tgz", - "integrity": "sha512-V26ezyjPqQpDBV4lcWIh8B/QICQ4v+M5Bo9ykLN+sqeKKBxJVDpEc6biDVyluTXTC40f5IqCU0ttth7Es2ZuMw==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.2.13", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.13.tgz", - "integrity": "sha512-WwzOEAFBGhlDHE5Z73mNU8CO8mqMNLqaG+AO9ETmzdCQlJhVtWZnOl2+rqgVQS+YHunjOWptdFmNfbpwcUuEsw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -4565,7 +4445,6 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "optional": true, "os": [ diff --git a/prisma/migrations/0_init/migration.sql b/prisma/migrations/0_init/migration.sql new file mode 100644 index 00000000..5695452c --- /dev/null +++ b/prisma/migrations/0_init/migration.sql @@ -0,0 +1,98 @@ +-- CreateTable +CREATE TABLE "buildprices" ( + "id" SERIAL NOT NULL, + "housetypedescription" VARCHAR(250) NOT NULL, + "housetype" VARCHAR(1) NOT NULL, + "pricerange" VARCHAR(50) NOT NULL, + "pricemid" DOUBLE PRECISION NOT NULL, + + CONSTRAINT "buildprices_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "gdhi" ( + "id" SERIAL NOT NULL, + "itllevel" VARCHAR(250) NOT NULL, + "itl3" VARCHAR(250) NOT NULL, + "region" VARCHAR(250) NOT NULL, + "gdhi_2020" DOUBLE PRECISION NOT NULL, + + CONSTRAINT "gdhi_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "hpi" ( + "id" SERIAL NOT NULL, + "region" VARCHAR(250) NOT NULL, + "itl3" VARCHAR(250) NOT NULL, + "ladcode" VARCHAR(250) NOT NULL, + "hpi_2020" DOUBLE PRECISION NOT NULL, + + CONSTRAINT "hpi_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "itl_lookup" ( + "postcode" TEXT NOT NULL, + "district" TEXT NOT NULL, + "areacode" TEXT NOT NULL, + "itl3" TEXT NOT NULL, + "id" SERIAL NOT NULL, + + CONSTRAINT "itl_lookup_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "pricespaid" ( + "id" SERIAL NOT NULL, + "transactionidentifier" VARCHAR(250) NOT NULL, + "price" DOUBLE PRECISION NOT NULL, + "postcode" VARCHAR(250) NOT NULL, + "propertytype" VARCHAR(250) NOT NULL, + "newbuild" VARCHAR(250) NOT NULL, + + CONSTRAINT "pricespaid_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "rent" ( + "id" SERIAL NOT NULL, + "itl3" VARCHAR(250) NOT NULL, + "ladcode" VARCHAR(250) NOT NULL, + "region" VARCHAR(250) NOT NULL, + "monthlymeanrent" DOUBLE PRECISION NOT NULL, + + CONSTRAINT "rent_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "soc_rent_adjustments" ( + "year" VARCHAR(10) NOT NULL, + "inflation" DOUBLE PRECISION, + "additional" DOUBLE PRECISION, + "total" DOUBLE PRECISION NOT NULL, + "id" SERIAL NOT NULL, + + CONSTRAINT "soc_rent_adjustments_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "socialrent" ( + "id" SERIAL NOT NULL, + "county" VARCHAR(250) NOT NULL, + "itl3" VARCHAR(250) NOT NULL, + "earningsperweek" DOUBLE PRECISION NOT NULL, + + CONSTRAINT "socialrent_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "gas_bills" ( + "id" INTEGER NOT NULL, + "Region" VARCHAR NOT NULL, + "itl" VARCHAR NOT NULL, + "bill" DOUBLE PRECISION NOT NULL, + + CONSTRAINT "gas_bills_pkey" PRIMARY KEY ("id") +); +