mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
commit
021132ba8c
210 changed files with 78586 additions and 20816 deletions
42
.devcontainer/Dockerfile
Normal file
42
.devcontainer/Dockerfile
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
FROM library/python:3.12-bullseye
|
||||
|
||||
ARG USER=vscode
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install system dependencies in a single layer
|
||||
RUN apt update && apt install -y --no-install-recommends \
|
||||
sudo jq vim curl\
|
||||
&& apt autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create the user and grant sudo privileges
|
||||
RUN useradd -m -s /bin/bash ${USER} \
|
||||
&& echo "${USER} ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/${USER} \
|
||||
&& chmod 0440 /etc/sudoers.d/${USER}
|
||||
|
||||
# Install Node.js 22 (from NodeSource)
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||
&& apt install -y nodejs \
|
||||
&& node -v \
|
||||
&& npm -v
|
||||
|
||||
# # Install aws
|
||||
# RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
||||
# RUN unzip awscliv2.zip
|
||||
# RUN ./aws/install
|
||||
|
||||
# # Install terraform
|
||||
# RUN apt-get update && sudo apt-get install -y gnupg software-properties-common
|
||||
# RUN wget -O- https://apt.releases.hashicorp.com/gpg | \
|
||||
# gpg --dearmor | \
|
||||
# sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
|
||||
# RUN echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
|
||||
# https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
|
||||
# tee /etc/apt/sources.list.d/hashicorp.list
|
||||
# RUN apt update
|
||||
# RUN apt-get install terraform
|
||||
# RUN terraform -install-autocomplete
|
||||
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /workspaces/assessment-model
|
||||
22
.devcontainer/devcontainer.json
Normal file
22
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"name": "assessment-model",
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "frontend",
|
||||
"remoteUser": "vscode",
|
||||
"workspaceFolder": "/workspaces/assessment-model",
|
||||
"postStartCommand": "bash .devcontainer/post-install.sh",
|
||||
"forwardPorts": [3000],
|
||||
"mounts": [
|
||||
// Optional, just makes getting from Downloads (local env) easier
|
||||
// "source=${localEnv:HOME},target=/workspaces/home,type=bind"
|
||||
],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"files.defaultWorkspace": "/workspaces/assessment-model"
|
||||
},
|
||||
"extensions": [
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
19
.devcontainer/docker-compose.yml
Normal file
19
.devcontainer/docker-compose.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
user: "${UID}:${GID}"
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: .devcontainer/Dockerfile
|
||||
command: sleep infinity
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ..:/workspaces/assessment-model
|
||||
networks:
|
||||
- frontend-net
|
||||
|
||||
networks:
|
||||
frontend-net:
|
||||
driver: bridge
|
||||
1
.devcontainer/post-install.sh
Normal file
1
.devcontainer/post-install.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
npm install;
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -28,6 +28,7 @@ yarn-error.log*
|
|||
# local env files
|
||||
.env*.local
|
||||
cypress.env.json
|
||||
.env*.development
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
||||
|
||||
## Getting Started
|
||||
### Getting Started
|
||||
|
||||
When first getting set up you'll firstly want to install the existing dependencies. To do this, simply run
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import './commands'
|
|||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
import { mount } from 'cypress/react18'
|
||||
import { mount } from 'cypress/react'
|
||||
|
||||
// Augment the Cypress namespace to include type definitions for
|
||||
// your custom command.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,22 @@
|
|||
import * as dotenv from "dotenv";
|
||||
import type { Config } from "drizzle-kit";
|
||||
|
||||
dotenv.config({ path: ".env.local" });
|
||||
|
||||
const isProduction = process.env.VERCEL_ENV === "production";
|
||||
|
||||
export default {
|
||||
schema: "./src/app/db/schema/*",
|
||||
out: "./src/app/db/migrations",
|
||||
dialect: "postgresql",
|
||||
dbCredentials: {
|
||||
host: process.env.DB_HOST!,
|
||||
port: Number(process.env.DB_PORT!),
|
||||
user: process.env.DB_USERNAME!,
|
||||
password: process.env.DB_PASSWORD!,
|
||||
database: process.env.DB_NAME!,
|
||||
ssl: isProduction
|
||||
? true // strict SSL for prod
|
||||
: { rejectUnauthorized: false }, // allow self-signed in dev/preview
|
||||
}
|
||||
} satisfies Config;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ const nextConfig = {
|
|||
},
|
||||
],
|
||||
},
|
||||
allowedDevOrigins: ['local-origin.dev', '*.local-origin.dev'],
|
||||
};
|
||||
|
||||
// use next-axiom for full stack monitoring
|
||||
|
|
|
|||
12993
package-lock.json
generated
12993
package-lock.json
generated
File diff suppressed because it is too large
Load diff
36
package.json
36
package.json
|
|
@ -9,13 +9,13 @@
|
|||
"lint": "next lint",
|
||||
"test:e2e:open": "start-server-and-test dev http://localhost:3000 \"cypress open --e2e\"",
|
||||
"test:e2e:run": "cypress run",
|
||||
"migration:generate": "drizzle-kit generate:pg --config=drizzle.config.ts",
|
||||
"migration:push": "node -r esbuild-register src/app/db/migrate.ts",
|
||||
"create_user": "node -r esbuild-register src/app/db/create_user.ts"
|
||||
"migration:generate": "drizzle-kit generate",
|
||||
"migration:push": "drizzle-kit push",
|
||||
"create_user": "tsx src/app/db/create_user.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@headlessui-float/react": "^0.11.2",
|
||||
"@headlessui/react": "^1.7.14",
|
||||
"@aws-sdk/client-sqs": "^3.864.0",
|
||||
"@headlessui/react": "^2.2.7",
|
||||
"@heroicons/react": "^2.0.18",
|
||||
"@hookform/resolvers": "^3.9.1",
|
||||
"@radix-ui/react-checkbox": "^1.0.4",
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
"@radix-ui/react-navigation-menu": "^1.1.3",
|
||||
"@radix-ui/react-select": "^1.2.2",
|
||||
"@radix-ui/react-separator": "^1.0.3",
|
||||
"@radix-ui/react-slot": "^1.1.0",
|
||||
"@radix-ui/react-slot": "^1.2.3",
|
||||
"@radix-ui/react-toast": "^1.2.2",
|
||||
"@radix-ui/react-tooltip": "^1.0.7",
|
||||
"@remixicon/react": "^4.2.0",
|
||||
|
|
@ -34,41 +34,43 @@
|
|||
"@tanstack/react-table": "^8.9.3",
|
||||
"@tremor/react": "^3.16.0",
|
||||
"@types/node": "20.2.3",
|
||||
"@types/react": "18.2.7",
|
||||
"@types/react-dom": "18.2.4",
|
||||
"@types/react": "18.3.1",
|
||||
"@types/react-dom": "18.3.1",
|
||||
"@vercel/speed-insights": "^1.2.0",
|
||||
"autoprefixer": "10.4.14",
|
||||
"aws-sdk": "^2.1415.0",
|
||||
"class-variance-authority": "^0.6.1",
|
||||
"clsx": "^1.2.1",
|
||||
"drizzle-orm": "^0.27.1",
|
||||
"drizzle-kit": "^0.31.4",
|
||||
"drizzle-orm": "^0.44.3",
|
||||
"esbuild": "^0.25.8",
|
||||
"eslint": "8.41.0",
|
||||
"eslint-config-next": "13.4.3",
|
||||
"lucide-react": "^0.233.0",
|
||||
"next": "13.4.3",
|
||||
"next": "^15.4.2",
|
||||
"next-auth": "^4.22.1",
|
||||
"next-axiom": "^0.17.0",
|
||||
"next-axiom": "^1.9.2",
|
||||
"next-themes": "^0.3.0",
|
||||
"pg": "^8.11.1",
|
||||
"postcss": "8.4.23",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"postcss": "^8.5.6",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-hook-form": "^7.53.2",
|
||||
"tailwind-merge": "^1.13.2",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"tailwindcss-animate": "^1.0.6",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "5.0.4",
|
||||
"xlsx": "^0.18.5",
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@testing-library/cypress": "^9.0.0",
|
||||
"@testing-library/cypress": "^10.0.3",
|
||||
"@types/pg": "^8.10.2",
|
||||
"cypress": "^12.17.1",
|
||||
"cypress": "^14.5.3",
|
||||
"cypress-social-logins": "^1.14.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"drizzle-kit": "^0.19.3",
|
||||
"start-server-and-test": "^2.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1
run_build.sh
Normal file
1
run_build.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
npm run build
|
||||
1
run_local.sh
Normal file
1
run_local.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
npm run dev
|
||||
|
|
@ -9,10 +9,8 @@ const PermissionsBodySchema = z.object({
|
|||
action: z.enum(["delete", "update"]),
|
||||
});
|
||||
|
||||
export async function POST(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { portfolioId: string } }
|
||||
) {
|
||||
export async function POST(request: NextRequest, props: { params: Promise<{ portfolioId: string }> }) {
|
||||
const params = await props.params;
|
||||
// This endpoint lives at portfolio/{portfolioId}/permissions and will return the permissions level for a given portfolio
|
||||
// Call this endpoint with a) userId, b) portfolioId, c) an action and this api will tell you if that person can do that thing
|
||||
|
||||
|
|
|
|||
|
|
@ -23,10 +23,8 @@ const UpdateBodySchema = z.object({
|
|||
status: z.optional(z.string()),
|
||||
});
|
||||
|
||||
export async function PUT(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { portfolioId: string } }
|
||||
) {
|
||||
export async function PUT(request: NextRequest, props: { params: Promise<{ portfolioId: string }> }) {
|
||||
const params = await props.params;
|
||||
const body = await request.json();
|
||||
let validatedBody;
|
||||
|
||||
|
|
@ -44,7 +42,7 @@ export async function PUT(
|
|||
const budget = validatedBody.budget;
|
||||
const goal = validatedBody.goal;
|
||||
const status = validatedBody.status;
|
||||
|
||||
|
||||
|
||||
await db
|
||||
.update(portfolio)
|
||||
|
|
@ -57,10 +55,8 @@ export async function PUT(
|
|||
});
|
||||
}
|
||||
|
||||
export async function DELETE(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { portfolioId: string } }
|
||||
) {
|
||||
export async function DELETE(request: NextRequest, props: { params: Promise<{ portfolioId: string }> }) {
|
||||
const params = await props.params;
|
||||
try {
|
||||
const portfolioId = params.portfolioId;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@ import { DataItem, ChartData } from "@/app/portfolio/[slug]/utils";
|
|||
import { eq } from "drizzle-orm";
|
||||
import { scenario } from "@/app/db/schema/recommendations";
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { scenarioId: string } }
|
||||
) {
|
||||
export async function GET(request: NextRequest, props: { params: Promise<{ scenarioId: string }> }) {
|
||||
const params = await props.params;
|
||||
const scenarioId = params.scenarioId;
|
||||
|
||||
const data = await db
|
||||
.select({
|
||||
name: scenario.name,
|
||||
cost: scenario.cost,
|
||||
funding: scenario.funding,
|
||||
contingency: scenario.contingency,
|
||||
epcBreakdownPostRetrofit: scenario.epcBreakdownPostRetrofit,
|
||||
numberOfProperties: scenario.numberOfProperties,
|
||||
nUnitsToRetrofit: scenario.nUnitsToRetrofit,
|
||||
|
|
@ -101,7 +101,7 @@ export async function GET(
|
|||
],
|
||||
},
|
||||
{
|
||||
title: "Cost (£)",
|
||||
title: "Cost of works (£)",
|
||||
scenarios: [
|
||||
{
|
||||
scenarioName: scenarioName,
|
||||
|
|
@ -110,10 +110,34 @@ export async function GET(
|
|||
],
|
||||
},
|
||||
{
|
||||
title: "Cost (£)/unit",
|
||||
title: "Cost of works (£)/unit",
|
||||
scenarios: [
|
||||
{ scenarioName: scenarioName, data: data[0].costPerUnit || "" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Funding (£)",
|
||||
scenarios: [
|
||||
{ scenarioName: scenarioName, data: "£" + formatNumber(data[0].funding || 0) },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Funding (£)/unit",
|
||||
scenarios: [
|
||||
{ scenarioName: scenarioName, data: "£" + formatNumber((data[0].funding || 0) / (data[0].nUnitsToRetrofit || 1)) },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Contingency (£)",
|
||||
scenarios: [
|
||||
{ scenarioName: scenarioName, data: "£" + formatNumber(data[0].contingency || 0) },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Contingency (£)/unit",
|
||||
scenarios: [
|
||||
{ scenarioName: scenarioName, data: "£" + formatNumber((data[0].contingency || 0) / (data[0].nUnitsToRetrofit || 1)) },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "£ per CO2 reduction",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,8 @@ import { serializeBigInt } from "@/app/utils";
|
|||
import { eq } from "drizzle-orm";
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { propertyId: string } }
|
||||
) {
|
||||
export async function GET(request: NextRequest, props: { params: Promise<{ propertyId: string }> }) {
|
||||
const params = await props.params;
|
||||
const propertyId = params.propertyId;
|
||||
|
||||
const propertyMeta = await db.query.property.findFirst({
|
||||
|
|
|
|||
|
|
@ -27,19 +27,21 @@ export async function POST(request: NextRequest) {
|
|||
const s3 = new S3({
|
||||
signatureVersion: "v4",
|
||||
region: process.env.PRESIGN_AWS_REGION,
|
||||
accessKeyId: process.env.PRSIGN_AWS_ACCESS_KEY,
|
||||
accessKeyId: process.env.PRESIGN_AWS_ACCESS_KEY,
|
||||
secretAccessKey: process.env.PRESIGN_AWS_SECRET_KEY,
|
||||
});
|
||||
|
||||
const { userId, portfolioId, fileKey } = validatedBody;
|
||||
const { fileKey } = validatedBody;
|
||||
|
||||
console.log("Making presigned URL")
|
||||
// Presigned url is valid for 5 minutes
|
||||
const preSignedUrl = await s3.getSignedUrl("putObject", {
|
||||
Bucket: process.env.RETOFIT_PLAN_INPUT_BUCKET_NAME,
|
||||
Bucket: process.env.RETROFIT_PLAN_INPUT_BUCKET_NAME,
|
||||
Key: fileKey,
|
||||
ContentType: "text/csv",
|
||||
Expires: 5 * 60,
|
||||
});
|
||||
console.log("preSignedUrl:", preSignedUrl)
|
||||
|
||||
return new NextResponse(JSON.stringify({ url: preSignedUrl }), {
|
||||
status: 200,
|
||||
|
|
|
|||
48
src/app/api/upload/retrofit-energy-assessments/route.ts
Normal file
48
src/app/api/upload/retrofit-energy-assessments/route.ts
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { z } from "zod";
|
||||
import { createS3Client, presignGetUrl } from "@/app/utils/s3";
|
||||
|
||||
const Schema = z.object({
|
||||
path: z.string(),
|
||||
expiresInSeconds: z.number().int().positive().default(300),
|
||||
contentType: z.string(),
|
||||
});
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
try {
|
||||
const body = await request.json();
|
||||
const { path, expiresInSeconds, contentType } =
|
||||
Schema.parse(body);
|
||||
|
||||
// Retrofit s3 bucket connection
|
||||
let bucket = process.env.RETROFIT_ENERGY_ASSESSMENTS_BUCKET
|
||||
// let bucket = process.env.RETROFIT_PLAN_INPUT_BUCKET_NAME
|
||||
if (!bucket) {
|
||||
return NextResponse.json({ msg: "RETROFIT_ENERGY_ASSESSMENTS_BUCKET is not set" }, { status: 400 });
|
||||
}
|
||||
|
||||
const s3 = createS3Client({
|
||||
region: process.env.PRESIGN_AWS_REGION,
|
||||
accessKeyId: process.env.RETROFIT_ENERGY_ASSESSMENTS_AWS_ACCESS_KEY,
|
||||
secretAccessKey: process.env.RETROFIT_ENERGY_ASSESSMENTS_AWS_SECRET,
|
||||
});
|
||||
|
||||
|
||||
|
||||
const url = await presignGetUrl(s3, {
|
||||
bucket,
|
||||
key: path,
|
||||
expiresInSeconds,
|
||||
ContentType: contentType,
|
||||
});
|
||||
|
||||
return NextResponse.json({ url });
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
return err instanceof z.ZodError
|
||||
? NextResponse.json({ msg: "Invalid input", issues: err.issues }, { status: 400 })
|
||||
: NextResponse.json({ msg: "Internal server error" }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -30,7 +30,8 @@ export function BrandButton({
|
|||
| "brandblue"
|
||||
| "brandgold"
|
||||
| "brandmidblue"
|
||||
| "brandlightblue"; // Restrict backgroundColor to these two options
|
||||
| "brandlightblue"
|
||||
| "brandbrown" ; // Restrict backgroundColor to these options
|
||||
}) {
|
||||
// Dictionary to map background colors to hover colors
|
||||
const hoverColors = {
|
||||
|
|
@ -38,6 +39,7 @@ export function BrandButton({
|
|||
brandgold: "hover:bg-hovergold",
|
||||
brandmidblue: "hover:bg-hoverblue",
|
||||
brandlightblue: "hover:bg-brandmidblue",
|
||||
brandbrown: "hover:bg-brandbrown",
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ function Nav({ userImage }: { userImage: string }) {
|
|||
<div className="hidden md:block">
|
||||
<div className="ml-10 flex items-baseline space-x-4">
|
||||
{makeLink("/home", "Home")}
|
||||
{makeLink("/due-considerations", "Due Considerations")}
|
||||
{makeLink("/eco-spreadsheet", "Eco Spreadsheet")}
|
||||
{/* {makeLink("/due-considerations", "Due Considerations")} */}
|
||||
{/* {makeLink("/eco-spreadsheet", "Eco Spreadsheet")} */}
|
||||
{makeLink("/help", "Help")}
|
||||
<div className="flex-grow"></div>
|
||||
</div>
|
||||
|
|
@ -108,7 +108,7 @@ function Nav({ userImage }: { userImage: string }) {
|
|||
>
|
||||
{(ref) => (
|
||||
<div className="md:hidden" id="mobile-menu">
|
||||
<div ref={ref} className="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
||||
<div ref={ref as React.MutableRefObject<HTMLDivElement | null>} className="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
||||
<a
|
||||
href="/home"
|
||||
className="hover:bg-hoverblue text-white block px-3 py-2 rounded-md text-base font-medium"
|
||||
|
|
|
|||
|
|
@ -14,41 +14,47 @@ export function EnergyEfficiencyImpactCard({
|
|||
totalSapPoints,
|
||||
}: EnergyEfficiencyImpactCardProps) {
|
||||
return (
|
||||
<div>
|
||||
<table className="text-left bg-brandblue rounded-md text-gray-100 w-full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Energy Efficiency Impact</td>
|
||||
</tr>
|
||||
<table className="text-left bg-brandblue rounded-md text-gray-100 w-full border-separate border-spacing-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colSpan={2} className="px-4 pt-4 pb-2 font-semibold text-base">
|
||||
Energy Efficiency Impact
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Current EPC Rating:</td>
|
||||
<td className="font-bold pr-2">
|
||||
{currentSapPoints + " " + currentEpcRating}
|
||||
</td>
|
||||
</tr>
|
||||
{/* Divider row */}
|
||||
<tr>
|
||||
<td colSpan={2}>
|
||||
<div className="h-[2px] bg-brandbrown mx-4 rounded-sm" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Expected EPC Rating:</td>
|
||||
<td className="font-bold pr-2">
|
||||
{Math.floor(expectedSapPoints) + " " + expectedEpcRating}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="font-semibold px-4 py-2">Current EPC Rating:</td>
|
||||
<td className="pr-4 font-bold">
|
||||
{currentSapPoints} {currentEpcRating}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">
|
||||
Total SAP Points Improvement:
|
||||
</td>
|
||||
<td className="pr-2">
|
||||
{Math.round((totalSapPoints + Number.EPSILON) * 100) / 100}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<tr>
|
||||
<td className="font-semibold px-4 py-2">Expected EPC Rating:</td>
|
||||
<td className="pr-4 font-bold">
|
||||
{Math.floor(expectedSapPoints)} {expectedEpcRating}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-semibold px-4 py-2">Total SAP Points Improvement:</td>
|
||||
<td className="pr-4 font-bold">
|
||||
{Math.round((totalSapPoints + Number.EPSILON) * 100) / 100}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
interface SecondaryEnergyEfficiencyImpactCardProps {
|
||||
TotalCo2Savings: number;
|
||||
totalEnergyCostSavings: number;
|
||||
|
|
@ -61,31 +67,39 @@ export function SecondaryEnergyEfficiencyImpactCard({
|
|||
totalKwhSavings,
|
||||
}: SecondaryEnergyEfficiencyImpactCardProps) {
|
||||
return (
|
||||
<div>
|
||||
<table className="text-left bg-brandblue rounded-md text-gray-100 w-full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style={{ height: "48px" }}></td>
|
||||
</tr>
|
||||
<table className="text-left bg-brandblue rounded-md text-gray-100 w-full border-separate border-spacing-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colSpan={2} className="px-4 pt-4 pb-2 font-semibold text-base">
|
||||
Gains
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">
|
||||
CO<sub>2</sub> Reduction
|
||||
</td>
|
||||
<td className=" pr-2">{TotalCo2Savings.toFixed(1)}t</td>
|
||||
</tr>
|
||||
{/* Divider row */}
|
||||
<tr>
|
||||
<td colSpan={2}>
|
||||
<div className="h-[2px] bg-brandbrown mx-4 rounded-sm" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Energy Savings</td>
|
||||
<td className="pr-2">{totalKwhSavings.toFixed(0) + "kWh"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="font-semibold px-4 py-2">
|
||||
CO<sub>2</sub> Reduction
|
||||
</td>
|
||||
<td className="pr-4 font-bold">{TotalCo2Savings.toFixed(1)}t</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Energy Bill Savings</td>
|
||||
<td className="pr-2">{"£" + Math.round(totalEnergyCostSavings)}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<tr>
|
||||
<td className="font-semibold px-4 py-2">Energy Savings</td>
|
||||
<td className="pr-4 font-bold">{totalKwhSavings.toFixed(0)}kWh</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-semibold px-4 py-2">Energy Bill Savings</td>
|
||||
<td className="pr-4 font-bold">£{Math.round(totalEnergyCostSavings)}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ export default function RecommendationCard({
|
|||
|
||||
const optionTextClassName = alreadyInstalled
|
||||
? "text-brandgold"
|
||||
: "text-blue-500 hover:text-blue-300";
|
||||
: "text-brandbrown hover:text-blue-300";
|
||||
|
||||
const optionsText = alreadyInstalled
|
||||
? "Already installed"
|
||||
|
|
@ -173,22 +173,16 @@ export default function RecommendationCard({
|
|||
<tbody>
|
||||
<tr>
|
||||
<td className="font-medium">Estimated Cost:</td>
|
||||
<td>
|
||||
<td className="font-bold">
|
||||
{cardComponent
|
||||
? "£" + formatNumber(cardComponent?.estimatedCost || 0)
|
||||
: ""}
|
||||
</td>
|
||||
</tr>
|
||||
{cardComponent.newUValue && (
|
||||
<tr>
|
||||
<td className="font-medium">New U-Value:</td>
|
||||
<td>{cardComponent.newUValue}</td>
|
||||
</tr>
|
||||
)}
|
||||
{cardComponent.sapPoints != null && (
|
||||
<tr>
|
||||
<td className="font-medium">SAP Points:</td>
|
||||
<td>
|
||||
<td className="font-bold">
|
||||
{cardComponent.sapPoints < 0.1 &&
|
||||
cardComponent.type !== "mechanical_ventilation"
|
||||
? "Negligible"
|
||||
|
|
|
|||
|
|
@ -18,11 +18,13 @@ import {
|
|||
EnergyEfficiencyImpactCard,
|
||||
SecondaryEnergyEfficiencyImpactCard,
|
||||
} from "./EnergyEfficiencyImpactCard";
|
||||
import { FundingPackageWithMeasures } from "@/app/db/schema/funding";
|
||||
|
||||
interface RecommendationContainerProps {
|
||||
recommendations: Recommendation[];
|
||||
propertyMeta: PropertyMeta;
|
||||
planMeta: Plan;
|
||||
funding: FundingPackageWithMeasures[]
|
||||
}
|
||||
|
||||
const typeToCategoryMap: { [key in RecommendationType]?: RecommendationType } =
|
||||
|
|
@ -54,6 +56,7 @@ export default function RecommendationContainer({
|
|||
recommendations,
|
||||
propertyMeta,
|
||||
planMeta,
|
||||
funding
|
||||
}: RecommendationContainerProps) {
|
||||
const categorizedRecommendations = recommendations.reduce((acc, curr) => {
|
||||
const typeKey = curr.type as RecommendationType;
|
||||
|
|
@ -312,6 +315,13 @@ export default function RecommendationContainer({
|
|||
sumRecommendationMetricMap(kwhSavingsMap)
|
||||
);
|
||||
|
||||
// for the moment, we shouldn't have more than one funding package and so we flag if we have more than one
|
||||
if (funding.length > 1) {
|
||||
console.warn("Multiple funding packages found, using the first one.");
|
||||
}
|
||||
|
||||
const [totalFunding, setTotalFunding] = useState(funding[0].projectFunding)
|
||||
|
||||
const currentEpcRating = propertyMeta.currentEpcRating;
|
||||
const currentSapPoints = propertyMeta.currentSapPoints;
|
||||
|
||||
|
|
@ -322,10 +332,11 @@ export default function RecommendationContainer({
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-4 flex-col grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 items-stretch">
|
||||
<div className="mt-8 mb-4 flex-col grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 items-stretch">
|
||||
<WorksPackageCard
|
||||
totalEstimatedCost={totalEstimatedCost}
|
||||
totalLabourDays={totalLabourDays}
|
||||
totalFunding={totalFunding}
|
||||
/>
|
||||
|
||||
<EnergyEfficiencyImpactCard
|
||||
|
|
@ -346,10 +357,11 @@ export default function RecommendationContainer({
|
|||
currentValuation={propertyMeta.currentValuation}
|
||||
valuationIncreaseLowerBound={planMeta.valuationIncreaseLowerBound}
|
||||
valuationIncreaseUpperBound={planMeta.valuationIncreaseUpperBound}
|
||||
funding={funding[0]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Separator className="mb-4 bg-brandblue" />
|
||||
<Separator className="mb-4 bg-brandbrown" />
|
||||
|
||||
<div className="flex-col grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 items-stretch">
|
||||
{Object.entries(categorizedRecommendations).map(
|
||||
|
|
|
|||
|
|
@ -1,16 +1,73 @@
|
|||
"use client";
|
||||
|
||||
import { BrandButton } from "../Buttons";
|
||||
import { useState } from "react";
|
||||
import React from 'react'
|
||||
import { FundingPackageWithMeasures } from "@/app/db/schema/funding";
|
||||
import { formatNumber } from "@/app/utils";
|
||||
import {Card, CardContent} from "@/app/shadcn_components/ui/card";
|
||||
import { Button } from "@/app/shadcn_components/ui/button";
|
||||
import { PiggyBank } from 'lucide-react'
|
||||
import { Dialog, Transition } from '@headlessui/react'
|
||||
import { Fragment } from 'react'
|
||||
import { FundingPackageMeasure } from "@/app/db/schema/funding";
|
||||
import { set } from "cypress/types/lodash";
|
||||
|
||||
|
||||
type FundingSummaryProps = {
|
||||
scheme: string | null;
|
||||
onSeeMore: () => void
|
||||
}
|
||||
|
||||
export const FundingSummary: React.FC<FundingSummaryProps> = ({ scheme, onSeeMore }) => {
|
||||
let message: string | null = null
|
||||
|
||||
if (!scheme) {
|
||||
message = 'Funding not assessed for this measure package'
|
||||
} else if (scheme.toLowerCase() === 'none') {
|
||||
message = 'Funding not eligible for this measure package'
|
||||
}
|
||||
|
||||
return (
|
||||
<Card className="w-full max-w-sm bg-brandblue border-none shadow-none">
|
||||
<CardContent className="p-4 flex flex-col items-center text-center space-y-2">
|
||||
{message ? (
|
||||
<p className="text-sm text-brandbrown">{message}</p>
|
||||
) : (
|
||||
<>
|
||||
<div className="flex items-center gap-2 text-xl font-semibold uppercase tracking-wide text-brandbrown">
|
||||
<span>{scheme}</span>
|
||||
<PiggyBank className="h-5 w-5 text-brandbrown" />
|
||||
</div>
|
||||
<p className="text-sm text-white max-w-xs">
|
||||
Click below to learn more about available funding options.
|
||||
</p>
|
||||
{!message && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={onSeeMore}
|
||||
className="text-brandbrown hover:bg-brandbrown hover:text-brandblue"
|
||||
>
|
||||
See More
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</CardContent>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
||||
export default function ValuationImpactComponent({
|
||||
currentValuation,
|
||||
valuationIncreaseLowerBound,
|
||||
valuationIncreaseUpperBound,
|
||||
funding,
|
||||
}: {
|
||||
currentValuation: number | null;
|
||||
valuationIncreaseLowerBound: number | null;
|
||||
valuationIncreaseUpperBound: number | null;
|
||||
funding: FundingPackageWithMeasures;
|
||||
}) {
|
||||
const [fundingModalIsOpen, setFundingModalIsOpen] = useState(false);
|
||||
// If we have no current valuation, we return no component
|
||||
|
|
@ -29,34 +86,113 @@ export default function ValuationImpactComponent({
|
|||
|
||||
return (
|
||||
<div className="col-span-1 md:col-span-2 lg:col-span-3 w-full p-4 bg-brandblue rounded-lg shadow-md grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
<div className="flex flex-col items-center text-center">
|
||||
<span className="text-gray-100 text-lg">Current Value</span>
|
||||
<span className="text-3xl font-bold text-brandgold mt-1">
|
||||
£{currentValuation.toLocaleString()}
|
||||
<div className="flex flex-col items-center justify-center text-center h-full space-y-1">
|
||||
<span className="text-gray-100 text-lg">Current Property Value</span>
|
||||
<span className="text-3xl font-bold text-brandbrown">
|
||||
£{formatNumber(currentValuation)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col items-center text-center">
|
||||
<div className="flex flex-col items-center justify-center text-center space-y-1">
|
||||
<span className="text-gray-100 text-lg">After Retrofit Valuation</span>
|
||||
<div className="text-2xl text-brandgold mt-1">
|
||||
£{lowerBoundValuation.toLocaleString()} - £
|
||||
{upperBoundValuation.toLocaleString()}
|
||||
<div className="text-2xl text-brandbrown font-bold">
|
||||
£{formatNumber(lowerBoundValuation)} - £{formatNumber(upperBoundValuation)}
|
||||
</div>
|
||||
<span className="text-sm text-gray-100 mt-1">
|
||||
Estimated improvement: £
|
||||
{valuationIncreaseLowerBound?.toLocaleString()} - £
|
||||
{valuationIncreaseUpperBound?.toLocaleString()}
|
||||
<span className="text-gray-100 text-lg">Estimated improvement:</span>
|
||||
<span className="text-brandbrown font-bold">
|
||||
£{formatNumber(valuationIncreaseLowerBound || 0)} - £{formatNumber(valuationIncreaseUpperBound || 0)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col items-center text-center">
|
||||
<span className="text-gray-100 text-lg mb-2">Funding Options</span>
|
||||
<BrandButton
|
||||
label="See More"
|
||||
onClick={openFundingModal}
|
||||
backgroundColor="brandlightblue"
|
||||
/>
|
||||
</div>
|
||||
<FundingSummary
|
||||
scheme={funding.scheme}
|
||||
onSeeMore={openFundingModal}
|
||||
/>
|
||||
<FundingSummaryModal
|
||||
isOpen={fundingModalIsOpen}
|
||||
closeModal={() => setFundingModalIsOpen(false)}
|
||||
scheme={funding.scheme}
|
||||
fundingPackageMeasures={funding.fundingPackageMeasures}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
type FundingSummaryModalProps = {
|
||||
isOpen: boolean
|
||||
closeModal: () => void
|
||||
scheme?: string | null;
|
||||
fundingPackageMeasures: FundingPackageMeasure[]
|
||||
}
|
||||
|
||||
export function FundingSummaryModal({
|
||||
isOpen,
|
||||
closeModal,
|
||||
scheme,
|
||||
fundingPackageMeasures,
|
||||
}: FundingSummaryModalProps) {
|
||||
return (
|
||||
<Transition appear show={isOpen} as={Fragment}>
|
||||
<Dialog as="div" className="relative z-50" onClose={closeModal}>
|
||||
<Transition.Child
|
||||
as={Fragment}
|
||||
enter="ease-out duration-200"
|
||||
enterFrom="opacity-0"
|
||||
enterTo="opacity-100"
|
||||
leave="ease-in duration-150"
|
||||
leaveFrom="opacity-100"
|
||||
leaveTo="opacity-0"
|
||||
>
|
||||
<div className="fixed inset-0 bg-black bg-opacity-30" />
|
||||
</Transition.Child>
|
||||
|
||||
<div className="fixed inset-0 overflow-y-auto">
|
||||
<div className="flex min-h-full items-center justify-center p-4 text-center">
|
||||
<Transition.Child
|
||||
as={Fragment}
|
||||
enter="ease-out duration-300"
|
||||
enterFrom="opacity-0 scale-95"
|
||||
enterTo="opacity-100 scale-100"
|
||||
leave="ease-in duration-200"
|
||||
leaveFrom="opacity-100 scale-100"
|
||||
leaveTo="opacity-0 scale-95"
|
||||
>
|
||||
<Dialog.Panel className="w-full max-w-lg transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all">
|
||||
<Dialog.Title className="text-xl font-semibold text-brandblue flex items-center gap-2 mb-4">
|
||||
<PiggyBank className="h-5 w-5 text-brandbrown" />
|
||||
{scheme?.toUpperCase() || 'Funding Details'}
|
||||
</Dialog.Title>
|
||||
|
||||
<p className="text-sm text-gray-700 mb-4">
|
||||
This package has been optimised to meet the eligibility criteria of the <strong>{scheme?.toUpperCase()}</strong> funding scheme. Measures have been selected to maximise the property’s improvement while minimising cost and ensuring compliance.
|
||||
</p>
|
||||
|
||||
<div className="mb-4">
|
||||
<h4 className="text-sm font-semibold text-brandblue mb-2">Included Measures</h4>
|
||||
<ul className="list-disc list-inside text-sm text-gray-800 space-y-1">
|
||||
{fundingPackageMeasures.map((measure) => (
|
||||
<li key={measure.id.toString()}>
|
||||
{measure.measure.replace(/_/g, ' ')}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className="mt-6 flex justify-end">
|
||||
<button
|
||||
type="button"
|
||||
onClick={closeModal}
|
||||
className="inline-flex justify-center rounded-md bg-brandblue px-4 py-2 text-sm font-medium text-white hover:bg-hoverblue focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500"
|
||||
>
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
</Dialog.Panel>
|
||||
</Transition.Child>
|
||||
</div>
|
||||
</div>
|
||||
</Dialog>
|
||||
</Transition>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,32 +4,45 @@ import { convertDaysToWorkingWeeks, formatNumber } from "@/app/utils";
|
|||
export default function WorksPackageCard({
|
||||
totalEstimatedCost,
|
||||
totalLabourDays,
|
||||
totalFunding,
|
||||
}: {
|
||||
totalEstimatedCost: number;
|
||||
totalLabourDays: number;
|
||||
totalFunding: number | null;
|
||||
}) {
|
||||
return (
|
||||
<table className="text-left bg-brandblue rounded-md text-gray-100">
|
||||
<table className="text-left bg-brandblue rounded-md text-gray-100 w-full border-separate border-spacing-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Works Package</td>
|
||||
<td colSpan={2} className="px-4 pt-4 pb-2 font-semibold text-base">
|
||||
Works Package
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{/* Divider row */}
|
||||
<tr>
|
||||
<td colSpan={2}>
|
||||
<div className="h-[2px] bg-brandbrown mx-4 rounded-sm" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Total Cost:</td>
|
||||
<td className="pr-2">{"£" + formatNumber(totalEstimatedCost)}</td>
|
||||
<td className="font-semibold px-4 py-2">Total Cost:</td>
|
||||
<td className="pr-4 font-bold">{"£" + formatNumber(totalEstimatedCost)}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Trades required:</td>
|
||||
<td className="pr-2">{"1-2"}</td>
|
||||
<td className="font-semibold px-4 py-2">Total Funding:</td>
|
||||
<td className="pr-4 font-bold">{"£" + formatNumber(totalFunding || 0)}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td className="font-medium pl-4 py-2">Estimated Duration:</td>
|
||||
<td className="pr-2">{convertDaysToWorkingWeeks(totalLabourDays)}</td>
|
||||
<td className="font-semibold px-4 py-2">Estimated Duration:</td>
|
||||
<td className="pr-4 font-bold">{convertDaysToWorkingWeeks(totalLabourDays)}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"use client";
|
||||
import { useState } from "react";
|
||||
import { convertDaysToWorkingWeeks, formatNumber } from "@/app/utils";
|
||||
import { formatNumber } from "@/app/utils";
|
||||
|
||||
|
||||
interface SummaryBoxProps {
|
||||
scenarios: Array<{
|
||||
|
|
@ -8,6 +9,8 @@ interface SummaryBoxProps {
|
|||
name: string;
|
||||
budget: number | null;
|
||||
totalCost: number | null;
|
||||
funding: number | null;
|
||||
contingency: number | null;
|
||||
co2EquivalentSavings: number | null;
|
||||
propertyValuationIncrease: number | null;
|
||||
energySavings: number | null;
|
||||
|
|
@ -33,6 +36,15 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) {
|
|||
const [totalCostFormatted, setTotalCostFormatted] = useState(
|
||||
formatMoney(defaultScenario.totalCost)
|
||||
);
|
||||
const [funding, setFunding] = useState(
|
||||
formatMoney(defaultScenario.funding)
|
||||
);
|
||||
const [netCost, setNetCost] = useState(
|
||||
formatMoney((defaultScenario.totalCost || 0) - (defaultScenario.funding || 0))
|
||||
);
|
||||
const [contingency, setContingency] = useState(
|
||||
formatMoney(defaultScenario.contingency)
|
||||
);
|
||||
const [totalValueIncreaseFormatted, setTotalValueIncreaseFormatted] =
|
||||
useState(formatMoney(defaultScenario.propertyValuationIncrease));
|
||||
const [energyCostSavingsFormatted, setEnergyCostSavingsFormatted] = useState(
|
||||
|
|
@ -56,6 +68,13 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) {
|
|||
|
||||
setBudgetFormatted(formatBudget(selectedScenario.budget));
|
||||
setTotalCostFormatted(formatMoney(selectedScenario.totalCost));
|
||||
setFunding(formatMoney(selectedScenario.funding));
|
||||
setNetCost(
|
||||
formatMoney(
|
||||
(selectedScenario.totalCost || 0) - (selectedScenario.funding || 0)
|
||||
)
|
||||
);
|
||||
setContingency(formatMoney(selectedScenario.contingency));
|
||||
setTotalValueIncreaseFormatted(
|
||||
formatMoney(selectedScenario.propertyValuationIncrease)
|
||||
);
|
||||
|
|
@ -119,15 +138,33 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) {
|
|||
<table className="w-full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td className="text-brandblue">Total Budget</td>
|
||||
<td className="text-brandblue">Budget</td>
|
||||
<td className="text-brandblue text-end">{budgetFormatted}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="text-brandblue">Total Cost</td>
|
||||
<td className="text-brandblue">Cost</td>
|
||||
<td className="text-brandblue text-end">
|
||||
{totalCostFormatted}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="text-brandblue">Funding</td>
|
||||
<td className="text-brandblue text-end">
|
||||
{funding}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="text-brandblue ">Cost after funding</td>
|
||||
<td className="text-brandblue text-end">
|
||||
{netCost}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="text-brandblue">Contingency</td>
|
||||
<td className="text-brandblue text-end">
|
||||
{contingency}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td className="text-brandblue">Total properties</td>
|
||||
<td className="text-brandblue text-end">{numProperties}</td>
|
||||
|
|
@ -164,7 +201,7 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) {
|
|||
</div>
|
||||
<div className="p-4 bg-gray-50 rounded-lg">
|
||||
<h3 className="text-lg font-semibold text-brandblue mb-2">
|
||||
Financial Impact
|
||||
Bills and Property Valuation
|
||||
</h3>
|
||||
<table className="w-full">
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Dialog, Transition } from "@headlessui/react";
|
||||
import { Dialog, DialogBackdrop, DialogPanel, DialogTitle, Transition, TransitionChild } from "@headlessui/react";
|
||||
import { Fragment, useState } from "react";
|
||||
|
||||
const SelectComparisonModal = ({
|
||||
|
|
@ -38,7 +38,7 @@ const SelectComparisonModal = ({
|
|||
leaveFrom="opacity-100"
|
||||
leaveTo="opacity-0"
|
||||
>
|
||||
<Dialog.Overlay className="fixed inset-0 bg-black opacity-30" />
|
||||
<DialogBackdrop className="fixed inset-0 bg-black/30" />
|
||||
</Transition.Child>
|
||||
|
||||
{/* This element is to trick the browser into centering the modal contents. */}
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ const SummaryTable = ({
|
|||
<div className="my-8">
|
||||
<button
|
||||
onClick={() => setIsModalOpen(true)}
|
||||
className="mb-4 p-2 bg-brandgold text-white rounded disabled:opacity-50"
|
||||
className="mb-4 p-2 bg-brandbrown text-white rounded disabled:opacity-50"
|
||||
// If scenarios is empty, we disable this button
|
||||
disabled={scenarios.length === 0}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import * as recommendationSchema from "@/app/db/schema/recommendations";
|
|||
import * as materialSchema from "@/app/db/schema/materials";
|
||||
import * as solarSchema from "@/app/db/schema/solar";
|
||||
import * as EnergyAssessmentsSchema from "@/app/db/schema/energy_assessments";
|
||||
import * as FundingSchema from "@/app/db/schema/funding";
|
||||
import * as Relations from "@/app/db/schema/relations";
|
||||
|
||||
export const pool = new Pool({
|
||||
|
|
@ -27,6 +28,7 @@ const schema = {
|
|||
...solarSchema,
|
||||
...Relations,
|
||||
...EnergyAssessmentsSchema,
|
||||
...FundingSchema,
|
||||
};
|
||||
|
||||
export const db = drizzle(pool, {
|
||||
|
|
|
|||
|
|
@ -1,74 +0,0 @@
|
|||
import { pgTable, uuid, text, timestamp } from "drizzle-orm/pg-core";
|
||||
import { pgEnum } from "drizzle-orm/pg-core";
|
||||
import { InferModel } from "drizzle-orm";
|
||||
|
||||
export const reportType: [string, ...string[]] = [
|
||||
"QUIDOS_PRESITE_NOTE",
|
||||
"CHARTED_SURVEYOR_REPORT",
|
||||
"ENERGY_PERFORMANCE_REPORT",
|
||||
"U_VALUE_CALCULATOR_REPORT",
|
||||
"OVERWRITING_U_VALUE_DECLARATION_FORM",
|
||||
"OSMOSIS_CONDITION_PAS_2035_REPORT",
|
||||
];
|
||||
|
||||
const reportTypeEnum = pgEnum("report_type", reportType);
|
||||
|
||||
export const companyInfo = pgTable("companyinfo", {
|
||||
id: uuid("id").primaryKey().defaultRandom(),
|
||||
address: text("address").notNull(),
|
||||
tradingName: text("trading_name").notNull(),
|
||||
postCode: text("post_code").notNull(),
|
||||
faxNumber: text("fax_number"),
|
||||
relatedPartyDisclosure: text("related_party_disclosure"),
|
||||
});
|
||||
|
||||
// --- assessorInfo table ---
|
||||
export const assessorInfo = pgTable("assessorinfo", {
|
||||
id: uuid("id").primaryKey().defaultRandom(),
|
||||
accreditationNumber: text("accreditation_number").notNull(),
|
||||
name: text("name").notNull(),
|
||||
phoneNumber: text("phone_number"),
|
||||
emailAddress: text("email_address"),
|
||||
companyId: uuid("company_id").references(() => companyInfo.id),
|
||||
});
|
||||
|
||||
// --- buildings table ---
|
||||
export const buildings = pgTable("buildings", {
|
||||
id: uuid("id").primaryKey().defaultRandom(),
|
||||
address: text("address").notNull(),
|
||||
postcode: text("postcode").notNull(),
|
||||
uprn: text("UPRN").notNull(),
|
||||
landlordId: text("landlord_id").notNull(),
|
||||
domnaId: text("domna_id").notNull(),
|
||||
});
|
||||
|
||||
// --- documents table ---
|
||||
export const documents = pgTable("documents", {
|
||||
id: uuid("id").primaryKey().defaultRandom(),
|
||||
|
||||
authorId: uuid("assessor_id")
|
||||
.notNull()
|
||||
.references(() => assessorInfo.id),
|
||||
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
||||
documentType: reportTypeEnum("document_type").notNull(),
|
||||
|
||||
buildingId: uuid("building_id")
|
||||
.notNull()
|
||||
.references(() => buildings.id),
|
||||
targetTable: text("target_table").notNull(),
|
||||
targetId: uuid("target_id").notNull(),
|
||||
});
|
||||
|
||||
export type Building = InferModel<typeof buildings, "select">;
|
||||
export type Document = InferModel<typeof documents, "select">;
|
||||
export type AssessorInfo = InferModel<typeof assessorInfo, "select">;
|
||||
|
||||
export type DocumentWithAuthor = Document & {
|
||||
author: AssessorInfo;
|
||||
};
|
||||
|
||||
export type BuildingWithDocuments = Building & {
|
||||
documents: DocumentWithAuthor[];
|
||||
};
|
||||
|
||||
export type ReportType = (typeof reportType)[number];
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { pgTable, serial, text, integer } from "drizzle-orm/pg-core";
|
||||
import { relations } from "drizzle-orm";
|
||||
import {
|
||||
buildings,
|
||||
documents,
|
||||
assessorInfo,
|
||||
} from "@/app/db/documents_schema/documents";
|
||||
|
||||
export const buildingsRelations = relations(buildings, ({ many }) => ({
|
||||
documents: many(documents),
|
||||
}));
|
||||
|
||||
export const documentsRelations = relations(documents, ({ one }) => ({
|
||||
building: one(buildings, {
|
||||
fields: [documents.buildingId],
|
||||
references: [buildings.id],
|
||||
}),
|
||||
author: one(assessorInfo, {
|
||||
fields: [documents.authorId],
|
||||
references: [assessorInfo.id],
|
||||
}),
|
||||
}));
|
||||
6
src/app/db/migrations/0102_fresh_yellow_claw.sql
Normal file
6
src/app/db/migrations/0102_fresh_yellow_claw.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
CREATE TYPE "public"."size_unit" AS ENUM('kWp', 'kW', 'watt', 'storey');--> statement-breakpoint
|
||||
ALTER TABLE "material" ADD COLUMN "innovation_rate" real DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE "material" ADD COLUMN "size" real;--> statement-breakpoint
|
||||
ALTER TABLE "material" ADD COLUMN "size_unit" "size_unit";--> statement-breakpoint
|
||||
ALTER TABLE "material" ADD COLUMN "includes_scaffolding" boolean DEFAULT false;--> statement-breakpoint
|
||||
ALTER TABLE "material" ADD COLUMN "includes_battery" boolean DEFAULT false;
|
||||
1
src/app/db/migrations/0103_redundant_maddog.sql
Normal file
1
src/app/db/migrations/0103_redundant_maddog.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "material" ADD COLUMN "battery_size" real;
|
||||
6
src/app/db/migrations/0104_awesome_james_howlett.sql
Normal file
6
src/app/db/migrations/0104_awesome_james_howlett.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TYPE "public"."type" ADD VALUE 'trickle_vent';--> statement-breakpoint
|
||||
ALTER TYPE "public"."type" ADD VALUE 'door_undercut';--> statement-breakpoint
|
||||
ALTER TYPE "public"."type" ADD VALUE 'solar_pv';--> statement-breakpoint
|
||||
ALTER TYPE "public"."type" ADD VALUE 'solar_battery';--> statement-breakpoint
|
||||
ALTER TYPE "public"."type" ADD VALUE 'scaffolding';--> statement-breakpoint
|
||||
ALTER TYPE "public"."type" ADD VALUE 'high_heat_retention_storage_heaters';
|
||||
1
src/app/db/migrations/0105_third_husk.sql
Normal file
1
src/app/db/migrations/0105_third_husk.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TYPE "public"."type" ADD VALUE 'sealing_fireplace';
|
||||
25
src/app/db/migrations/0106_damp_tombstone.sql
Normal file
25
src/app/db/migrations/0106_damp_tombstone.sql
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
CREATE TABLE "funding_package" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"plan_id" bigint NOT NULL,
|
||||
"scheme" "depth_unit",
|
||||
"created_at" timestamp DEFAULT now() NOT NULL,
|
||||
"full_project_funding" real,
|
||||
"total_uplift" real,
|
||||
"full_project_score" real,
|
||||
"partial_project_score" real,
|
||||
"uplift_project_score" real
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "funding_package_measures" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"funding_package_id" bigint NOT NULL,
|
||||
"type" "type" NOT NULL,
|
||||
"material_id" bigint NOT NULL,
|
||||
"innovation_uplift" real,
|
||||
"partial_project_score" real,
|
||||
"uplift_project_score" real
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "funding_package" ADD CONSTRAINT "funding_package_plan_id_plan_id_fk" FOREIGN KEY ("plan_id") REFERENCES "public"."plan"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "funding_package_measures" ADD CONSTRAINT "funding_package_measures_funding_package_id_funding_package_id_fk" FOREIGN KEY ("funding_package_id") REFERENCES "public"."funding_package"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "funding_package_measures" ADD CONSTRAINT "funding_package_measures_material_id_material_id_fk" FOREIGN KEY ("material_id") REFERENCES "public"."material"("id") ON DELETE no action ON UPDATE no action;
|
||||
1
src/app/db/migrations/0107_omniscient_molly_hayes.sql
Normal file
1
src/app/db/migrations/0107_omniscient_molly_hayes.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "funding_package" RENAME COLUMN "full_project_funding" TO "project_funding";
|
||||
2
src/app/db/migrations/0108_mighty_outlaw_kid.sql
Normal file
2
src/app/db/migrations/0108_mighty_outlaw_kid.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "funding_package_measures" ALTER COLUMN "material_id" DROP NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "recommendation" ADD COLUMN "contingency_cost" real;
|
||||
2
src/app/db/migrations/0109_flashy_jane_foster.sql
Normal file
2
src/app/db/migrations/0109_flashy_jane_foster.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "scenario" ADD COLUMN "contingency" real;--> statement-breakpoint
|
||||
ALTER TABLE "scenario" ADD COLUMN "funding" real;
|
||||
3
src/app/db/migrations/0110_colossal_hulk.sql
Normal file
3
src/app/db/migrations/0110_colossal_hulk.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TYPE "public"."unit_quantity" ADD VALUE 'kwp';--> statement-breakpoint
|
||||
ALTER TABLE "recommendation_materials" ALTER COLUMN "quantity" DROP NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "recommendation_materials" ALTER COLUMN "quantity_unit" DROP NOT NULL;
|
||||
2
src/app/db/migrations/0111_eminent_red_wolf.sql
Normal file
2
src/app/db/migrations/0111_eminent_red_wolf.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CREATE TYPE "public"."scheme" AS ENUM('eco4', 'gbis', 'whlg', 'none');--> statement-breakpoint
|
||||
ALTER TABLE "funding_package" ALTER COLUMN "scheme" SET DATA TYPE "public"."scheme" USING "scheme"::text::"public"."scheme";
|
||||
1
src/app/db/migrations/0112_colossal_nightshade.sql
Normal file
1
src/app/db/migrations/0112_colossal_nightshade.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "funding_package_measures" RENAME COLUMN "type" TO "measure";
|
||||
1
src/app/db/migrations/0113_bright_lady_bullseye.sql
Normal file
1
src/app/db/migrations/0113_bright_lady_bullseye.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TYPE "public"."type" ADD VALUE 'air_source_heat_pump' BEFORE 'sealing_fireplace';
|
||||
6
src/app/db/migrations/0114_swift_unicorn.sql
Normal file
6
src/app/db/migrations/0114_swift_unicorn.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE "funding_package_measures" ALTER COLUMN "measure" SET DATA TYPE text;--> statement-breakpoint
|
||||
ALTER TABLE "material" ALTER COLUMN "type" SET DATA TYPE text;--> statement-breakpoint
|
||||
DROP TYPE "public"."type";--> statement-breakpoint
|
||||
CREATE TYPE "public"."type" AS ENUM('suspended_floor_insulation', 'solid_floor_insulation', 'external_wall_insulation', 'internal_wall_insulation', 'cavity_wall_insulation', 'mechanical_ventilation', 'loft_insulation', 'exposed_floor_insulation', 'flat_roof_insulation', 'room_roof_insulation', 'cavity_wall_extraction', 'iwi_wall_demolition', 'iwi_vapour_barrier', 'iwi_redecoration', 'suspended_floor_demolition', 'suspended_floor_redecoration', 'suspended_floor_vapour_barrier', 'solid_floor_demolition', 'solid_floor_preparation', 'solid_floor_vapour_barrier', 'solid_floor_redecoration', 'ewi_wall_demolition', 'ewi_wall_preparation', 'ewi_wall_redecoration', 'low_energy_lighting_installation', 'flat_roof_preparation', 'flat_roof_vapour_barrier', 'flat_roof_waterproofing', 'windows_glazing', 'trickle_vent', 'door_undercut', 'solar_pv', 'solar_battery', 'scaffolding', 'high_heat_retention_storage_heaters', 'air_source_heat_pump', 'sealing_open_fireplace');--> statement-breakpoint
|
||||
ALTER TABLE "funding_package_measures" ALTER COLUMN "measure" SET DATA TYPE "public"."type" USING "measure"::"public"."type";--> statement-breakpoint
|
||||
ALTER TABLE "material" ALTER COLUMN "type" SET DATA TYPE "public"."type" USING "type"::"public"."type";
|
||||
6
src/app/db/migrations/0115_skinny_makkari.sql
Normal file
6
src/app/db/migrations/0115_skinny_makkari.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE "funding_package_measures" ALTER COLUMN "measure" SET DATA TYPE text;--> statement-breakpoint
|
||||
ALTER TABLE "material" ALTER COLUMN "type" SET DATA TYPE text;--> statement-breakpoint
|
||||
DROP TYPE "public"."type";--> statement-breakpoint
|
||||
CREATE TYPE "public"."type" AS ENUM('suspended_floor_insulation', 'solid_floor_insulation', 'external_wall_insulation', 'internal_wall_insulation', 'cavity_wall_insulation', 'mechanical_ventilation', 'loft_insulation', 'exposed_floor_insulation', 'flat_roof_insulation', 'room_roof_insulation', 'cavity_wall_extraction', 'iwi_wall_demolition', 'iwi_vapour_barrier', 'iwi_redecoration', 'suspended_floor_demolition', 'suspended_floor_redecoration', 'suspended_floor_vapour_barrier', 'solid_floor_demolition', 'solid_floor_preparation', 'solid_floor_vapour_barrier', 'solid_floor_redecoration', 'ewi_wall_demolition', 'ewi_wall_preparation', 'ewi_wall_redecoration', 'low_energy_lighting_installation', 'flat_roof_preparation', 'flat_roof_vapour_barrier', 'flat_roof_waterproofing', 'windows_glazing', 'trickle_vent', 'door_undercut', 'solar_pv', 'solar_battery', 'scaffolding', 'high_heat_retention_storage_heaters', 'air_source_heat_pump', 'sealing_fireplace');--> statement-breakpoint
|
||||
ALTER TABLE "funding_package_measures" ALTER COLUMN "measure" SET DATA TYPE "public"."type" USING "measure"::"public"."type";--> statement-breakpoint
|
||||
ALTER TABLE "material" ALTER COLUMN "type" SET DATA TYPE "public"."type" USING "type"::"public"."type";
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "9cd7955c-6b58-415a-baab-bab2d5e5ff12",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -53,7 +51,11 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
|
|
@ -62,5 +64,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "9cd7955c-6b58-415a-baab-bab2d5e5ff12",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "1f801509-86d5-48dc-b038-b2319fff0c13",
|
||||
"prevId": "9cd7955c-6b58-415a-baab-bab2d5e5ff12",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -55,7 +53,11 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
|
|
@ -64,5 +66,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "1f801509-86d5-48dc-b038-b2319fff0c13",
|
||||
"prevId": "9cd7955c-6b58-415a-baab-bab2d5e5ff12",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "4347e9a7-f388-4bac-8860-a482db2a5c8b",
|
||||
"prevId": "1f801509-86d5-48dc-b038-b2319fff0c13",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -55,7 +53,11 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {},
|
||||
|
|
@ -66,5 +68,11 @@
|
|||
"columns": {
|
||||
"\"user\".\"name\"": "\"user\".\"firstName\""
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "4347e9a7-f388-4bac-8860-a482db2a5c8b",
|
||||
"prevId": "1f801509-86d5-48dc-b038-b2319fff0c13",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "e43a69c5-c8ed-4de7-8915-0f0a23455bf1",
|
||||
"prevId": "4347e9a7-f388-4bac-8860-a482db2a5c8b",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -230,42 +236,49 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -273,5 +286,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "e43a69c5-c8ed-4de7-8915-0f0a23455bf1",
|
||||
"prevId": "4347e9a7-f388-4bac-8860-a482db2a5c8b",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "079698d6-54de-431f-b0ab-151e8d8f5024",
|
||||
"prevId": "e43a69c5-c8ed-4de7-8915-0f0a23455bf1",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -303,20 +309,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -542,33 +552,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -617,9 +631,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -670,72 +688,82 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"feature_rating": {
|
||||
"public.feature_rating": {
|
||||
"name": "feature_rating",
|
||||
"values": {
|
||||
"Very good": "Very good",
|
||||
"Good": "Good",
|
||||
"Poor": "Poor",
|
||||
"Very poor": "Very poor",
|
||||
"N/A": "N/A"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Very good",
|
||||
"Good",
|
||||
"Poor",
|
||||
"Very poor",
|
||||
"N/A"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -743,5 +771,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "079698d6-54de-431f-b0ab-151e8d8f5024",
|
||||
"prevId": "e43a69c5-c8ed-4de7-8915-0f0a23455bf1",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "cbe4ccb7-95d6-4d68-953b-ad5d04fb1b11",
|
||||
"prevId": "079698d6-54de-431f-b0ab-151e8d8f5024",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -303,20 +309,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -542,33 +552,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -617,9 +631,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -670,72 +688,82 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"feature_rating": {
|
||||
"public.feature_rating": {
|
||||
"name": "feature_rating",
|
||||
"values": {
|
||||
"Very good": "Very good",
|
||||
"Good": "Good",
|
||||
"Poor": "Poor",
|
||||
"Very poor": "Very poor",
|
||||
"N/A": "N/A"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Very good",
|
||||
"Good",
|
||||
"Poor",
|
||||
"Very poor",
|
||||
"N/A"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -745,5 +773,11 @@
|
|||
"columns": {
|
||||
"\"property\".\"status\"": "\"property\".\"creation_status\""
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "cbe4ccb7-95d6-4d68-953b-ad5d04fb1b11",
|
||||
"prevId": "079698d6-54de-431f-b0ab-151e8d8f5024",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "52af8085-b24e-4d3e-a904-fa532f0903e7",
|
||||
"prevId": "cbe4ccb7-95d6-4d68-953b-ad5d04fb1b11",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -548,33 +558,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -623,9 +637,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -676,78 +694,88 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"feature_rating": {
|
||||
"public.feature_rating": {
|
||||
"name": "feature_rating",
|
||||
"values": {
|
||||
"Very good": "Very good",
|
||||
"Good": "Good",
|
||||
"Poor": "Poor",
|
||||
"Very poor": "Very poor",
|
||||
"N/A": "N/A"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Very good",
|
||||
"Good",
|
||||
"Poor",
|
||||
"Very poor",
|
||||
"N/A"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -755,5 +783,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "52af8085-b24e-4d3e-a904-fa532f0903e7",
|
||||
"prevId": "cbe4ccb7-95d6-4d68-953b-ad5d04fb1b11",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "3ecdca6b-811d-4ea7-acf1-8446b314f34d",
|
||||
"prevId": "52af8085-b24e-4d3e-a904-fa532f0903e7",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -548,33 +558,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -623,9 +637,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -671,33 +689,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -748,78 +770,88 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"feature_rating": {
|
||||
"public.feature_rating": {
|
||||
"name": "feature_rating",
|
||||
"values": {
|
||||
"Very good": "Very good",
|
||||
"Good": "Good",
|
||||
"Poor": "Poor",
|
||||
"Very poor": "Very poor",
|
||||
"N/A": "N/A"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Very good",
|
||||
"Good",
|
||||
"Poor",
|
||||
"Very poor",
|
||||
"N/A"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -827,5 +859,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "3ecdca6b-811d-4ea7-acf1-8446b314f34d",
|
||||
"prevId": "52af8085-b24e-4d3e-a904-fa532f0903e7",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "45322acf-f86a-40b5-a3e3-197e54bf05e1",
|
||||
"prevId": "3ecdca6b-811d-4ea7-acf1-8446b314f34d",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -371,9 +381,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -419,33 +433,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -496,68 +514,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -565,5 +592,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "45322acf-f86a-40b5-a3e3-197e54bf05e1",
|
||||
"prevId": "3ecdca6b-811d-4ea7-acf1-8446b314f34d",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "0bfd5e66-cc1e-4044-8a61-df55554f16b4",
|
||||
"prevId": "45322acf-f86a-40b5-a3e3-197e54bf05e1",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -548,33 +558,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -623,9 +637,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -671,33 +689,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -748,68 +770,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -817,5 +848,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "0bfd5e66-cc1e-4044-8a61-df55554f16b4",
|
||||
"prevId": "45322acf-f86a-40b5-a3e3-197e54bf05e1",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "e0d76bd5-8361-40d7-b6bb-0d22478ae4db",
|
||||
"prevId": "0bfd5e66-cc1e-4044-8a61-df55554f16b4",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -548,33 +558,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -623,9 +637,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -671,33 +689,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -748,68 +770,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -817,5 +848,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "e0d76bd5-8361-40d7-b6bb-0d22478ae4db",
|
||||
"prevId": "0bfd5e66-cc1e-4044-8a61-df55554f16b4",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "e376c439-1810-4d3b-a7a1-0e31be504faf",
|
||||
"prevId": "e0d76bd5-8361-40d7-b6bb-0d22478ae4db",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -548,33 +558,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -623,9 +637,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -671,33 +689,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -748,68 +770,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -817,5 +848,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "e376c439-1810-4d3b-a7a1-0e31be504faf",
|
||||
"prevId": "e0d76bd5-8361-40d7-b6bb-0d22478ae4db",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "a3f791d4-ed1d-44b1-ade9-d60b7fcb3ac1",
|
||||
"prevId": "e376c439-1810-4d3b-a7a1-0e31be504faf",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -548,33 +558,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -623,9 +637,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -671,33 +689,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -748,68 +770,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -817,5 +848,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "a3f791d4-ed1d-44b1-ade9-d60b7fcb3ac1",
|
||||
"prevId": "e376c439-1810-4d3b-a7a1-0e31be504faf",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "5bb4c724-b933-4dda-9ebd-5c57b88236bb",
|
||||
"prevId": "a3f791d4-ed1d-44b1-ade9-d60b7fcb3ac1",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -560,33 +570,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -635,9 +649,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -683,33 +701,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -760,68 +782,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -829,5 +860,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "5bb4c724-b933-4dda-9ebd-5c57b88236bb",
|
||||
"prevId": "a3f791d4-ed1d-44b1-ade9-d60b7fcb3ac1",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "be2b61bd-d1de-42c6-a29f-c1fbb0d2b6ba",
|
||||
"prevId": "5bb4c724-b933-4dda-9ebd-5c57b88236bb",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -309,20 +315,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -554,33 +564,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -629,9 +643,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -677,33 +695,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -754,68 +776,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -823,5 +854,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "be2b61bd-d1de-42c6-a29f-c1fbb0d2b6ba",
|
||||
"prevId": "5bb4c724-b933-4dda-9ebd-5c57b88236bb",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "ca7875cc-1de8-49e0-a78c-276cb7a9ec15",
|
||||
"prevId": "be2b61bd-d1de-42c6-a29f-c1fbb0d2b6ba",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -315,20 +321,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -560,33 +570,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -635,9 +649,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -683,33 +701,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -760,68 +782,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -829,5 +860,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "ca7875cc-1de8-49e0-a78c-276cb7a9ec15",
|
||||
"prevId": "be2b61bd-d1de-42c6-a29f-c1fbb0d2b6ba",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "6c36dd91-3c26-4c47-882f-c38ba4ccd275",
|
||||
"prevId": "ca7875cc-1de8-49e0-a78c-276cb7a9ec15",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,68 +785,77 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"property_status": {
|
||||
"public.property_status": {
|
||||
"name": "property_status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -832,5 +863,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "6c36dd91-3c26-4c47-882f-c38ba4ccd275",
|
||||
"prevId": "ca7875cc-1de8-49e0-a78c-276cb7a9ec15",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "7fe62fb1-7270-4a1b-8f2a-582b1efdc6c9",
|
||||
"prevId": "6c36dd91-3c26-4c47-882f-c38ba4ccd275",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -230,62 +236,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -293,5 +308,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "7fe62fb1-7270-4a1b-8f2a-582b1efdc6c9",
|
||||
"prevId": "6c36dd91-3c26-4c47-882f-c38ba4ccd275",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "35b1337c-37e3-4e94-8c5e-075d64ee4d41",
|
||||
"prevId": "7fe62fb1-7270-4a1b-8f2a-582b1efdc6c9",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,62 +785,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -826,5 +857,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "35b1337c-37e3-4e94-8c5e-075d64ee4d41",
|
||||
"prevId": "7fe62fb1-7270-4a1b-8f2a-582b1efdc6c9",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "2501e06e-b010-4eab-8b98-fea030e533e3",
|
||||
"prevId": "35b1337c-37e3-4e94-8c5e-075d64ee4d41",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,62 +785,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -826,5 +857,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "2501e06e-b010-4eab-8b98-fea030e533e3",
|
||||
"prevId": "35b1337c-37e3-4e94-8c5e-075d64ee4d41",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "2a18a773-c7ce-4a1e-90f5-e189b9865f00",
|
||||
"prevId": "2501e06e-b010-4eab-8b98-fea030e533e3",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,62 +785,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -826,5 +857,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "2a18a773-c7ce-4a1e-90f5-e189b9865f00",
|
||||
"prevId": "2501e06e-b010-4eab-8b98-fea030e533e3",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "3ba812ef-9ba9-4493-a37b-1d9f8ceaf30b",
|
||||
"prevId": "2a18a773-c7ce-4a1e-90f5-e189b9865f00",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,62 +785,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -826,5 +857,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "3ba812ef-9ba9-4493-a37b-1d9f8ceaf30b",
|
||||
"prevId": "2a18a773-c7ce-4a1e-90f5-e189b9865f00",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "65f0ce76-b171-4bca-b56d-15ddbbda437c",
|
||||
"prevId": "3ba812ef-9ba9-4493-a37b-1d9f8ceaf30b",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,62 +785,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -829,5 +860,11 @@
|
|||
"\"property_details_epc\".\"heating_contols\"": "\"property_details_epc\".\"heating_controls\"",
|
||||
"\"property_details_epc\".\"heating_contols_rating\"": "\"property_details_epc\".\"heating_controls_rating\""
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "65f0ce76-b171-4bca-b56d-15ddbbda437c",
|
||||
"prevId": "3ba812ef-9ba9-4493-a37b-1d9f8ceaf30b",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "f0a25da5-b02d-4255-9107-ac8c252e7eb9",
|
||||
"prevId": "65f0ce76-b171-4bca-b56d-15ddbbda437c",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -103,9 +101,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -153,33 +155,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -317,20 +323,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -562,33 +572,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -637,9 +651,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -686,33 +704,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -763,62 +785,71 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -826,5 +857,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "f0a25da5-b02d-4255-9107-ac8c252e7eb9",
|
||||
"prevId": "65f0ce76-b171-4bca-b56d-15ddbbda437c",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "b27408a9-7d8c-4728-86f7-00c18777ca09",
|
||||
"prevId": "f0a25da5-b02d-4255-9107-ac8c252e7eb9",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -862,9 +888,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -899,33 +929,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -976,95 +1010,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1072,5 +1120,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "b27408a9-7d8c-4728-86f7-00c18777ca09",
|
||||
"prevId": "f0a25da5-b02d-4255-9107-ac8c252e7eb9",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "33cd3919-da77-4cac-a08b-b6d1443fc63d",
|
||||
"prevId": "b27408a9-7d8c-4728-86f7-00c18777ca09",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -826,9 +852,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -856,33 +886,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -989,20 +1023,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1037,33 +1075,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1114,95 +1156,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1210,5 +1266,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "33cd3919-da77-4cac-a08b-b6d1443fc63d",
|
||||
"prevId": "b27408a9-7d8c-4728-86f7-00c18777ca09",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "4696d604-5b36-41ff-bea4-b12141430fc8",
|
||||
"prevId": "33cd3919-da77-4cac-a08b-b6d1443fc63d",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -826,9 +852,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -856,33 +886,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -989,20 +1023,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1037,33 +1075,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1114,95 +1156,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1212,5 +1268,11 @@
|
|||
"columns": {
|
||||
"\"material\".\"json\"": "\"material\".\"depths\""
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "4696d604-5b36-41ff-bea4-b12141430fc8",
|
||||
"prevId": "33cd3919-da77-4cac-a08b-b6d1443fc63d",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "bb5632f2-c033-4357-8170-e8869fe6d8ee",
|
||||
"prevId": "4696d604-5b36-41ff-bea4-b12141430fc8",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,20 +861,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -876,33 +906,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1009,20 +1043,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1057,33 +1095,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1134,95 +1176,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1230,5 +1286,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "bb5632f2-c033-4357-8170-e8869fe6d8ee",
|
||||
"prevId": "4696d604-5b36-41ff-bea4-b12141430fc8",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "a818a7fa-3ab6-40e5-b153-16c2185d1169",
|
||||
"prevId": "bb5632f2-c033-4357-8170-e8869fe6d8ee",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,20 +861,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -876,33 +906,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1015,20 +1049,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1063,33 +1101,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1140,95 +1182,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1236,5 +1292,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "a818a7fa-3ab6-40e5-b153-16c2185d1169",
|
||||
"prevId": "bb5632f2-c033-4357-8170-e8869fe6d8ee",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "5d56ea08-3ea2-4c72-8b80-42426b651590",
|
||||
"prevId": "a818a7fa-3ab6-40e5-b153-16c2185d1169",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,20 +861,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -876,33 +906,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1015,20 +1049,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1069,33 +1107,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1146,95 +1188,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1242,5 +1298,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "5d56ea08-3ea2-4c72-8b80-42426b651590",
|
||||
"prevId": "a818a7fa-3ab6-40e5-b153-16c2185d1169",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "d8d7414e-bbaa-4119-b89d-288d352f937f",
|
||||
"prevId": "5d56ea08-3ea2-4c72-8b80-42426b651590",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,20 +861,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -876,33 +906,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1015,20 +1049,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1063,33 +1101,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1140,95 +1182,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1236,5 +1292,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "d8d7414e-bbaa-4119-b89d-288d352f937f",
|
||||
"prevId": "5d56ea08-3ea2-4c72-8b80-42426b651590",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "37455471-99bf-4e0c-b4b8-fef2d639cac3",
|
||||
"prevId": "d8d7414e-bbaa-4119-b89d-288d352f937f",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,20 +861,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -876,33 +906,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1015,20 +1049,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1069,33 +1107,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1146,95 +1188,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1242,5 +1298,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "37455471-99bf-4e0c-b4b8-fef2d639cac3",
|
||||
"prevId": "d8d7414e-bbaa-4119-b89d-288d352f937f",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "af61ab3b-0475-4c45-9ad7-1d3de0b4b5c0",
|
||||
"prevId": "37455471-99bf-4e0c-b4b8-fef2d639cac3",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -84,9 +82,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -185,9 +187,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -235,33 +241,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -399,20 +409,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -644,33 +658,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -719,9 +737,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -768,33 +790,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -829,20 +855,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -870,33 +900,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1009,20 +1043,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1063,33 +1101,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1140,95 +1182,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1236,5 +1292,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "af61ab3b-0475-4c45-9ad7-1d3de0b4b5c0",
|
||||
"prevId": "37455471-99bf-4e0c-b4b8-fef2d639cac3",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "89fbe469-4b9e-4396-bc6c-f74d3389ec0b",
|
||||
"prevId": "af61ab3b-0475-4c45-9ad7-1d3de0b4b5c0",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -90,9 +88,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -191,9 +193,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -241,33 +247,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -405,20 +415,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -650,33 +664,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -725,9 +743,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,33 +796,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,20 +861,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -876,33 +906,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1015,20 +1049,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1069,33 +1107,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1146,95 +1188,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1242,5 +1298,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "89fbe469-4b9e-4396-bc6c-f74d3389ec0b",
|
||||
"prevId": "af61ab3b-0475-4c45-9ad7-1d3de0b4b5c0",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "2508c58f-bee6-44b6-9617-464c78540cf6",
|
||||
"prevId": "89fbe469-4b9e-4396-bc6c-f74d3389ec0b",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -842,20 +868,24 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -883,33 +913,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1022,20 +1056,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1076,33 +1114,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1153,95 +1195,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1249,5 +1305,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "2508c58f-bee6-44b6-9617-464c78540cf6",
|
||||
"prevId": "89fbe469-4b9e-4396-bc6c-f74d3389ec0b",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "976fba8c-569b-4257-a6fe-c0ae0d9e0e01",
|
||||
"prevId": "2508c58f-bee6-44b6-9617-464c78540cf6",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1095,33 +1133,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1172,95 +1214,109 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1268,5 +1324,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "976fba8c-569b-4257-a6fe-c0ae0d9e0e01",
|
||||
"prevId": "2508c58f-bee6-44b6-9617-464c78540cf6",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "2063f8e7-e1b2-486a-8e64-6a8a24b631d2",
|
||||
"prevId": "976fba8c-569b-4257-a6fe-c0ae0d9e0e01",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,101 +1232,116 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"meters_squared": "meters_squared"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"meters_squared"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1292,5 +1349,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "2063f8e7-e1b2-486a-8e64-6a8a24b631d2",
|
||||
"prevId": "976fba8c-569b-4257-a6fe-c0ae0d9e0e01",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "ae896627-43c0-4d11-972f-a042af3bf845",
|
||||
"prevId": "2063f8e7-e1b2-486a-8e64-6a8a24b631d2",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,101 +1232,116 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1292,5 +1349,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "ae896627-43c0-4d11-972f-a042af3bf845",
|
||||
"prevId": "2063f8e7-e1b2-486a-8e64-6a8a24b631d2",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "fd9090e8-9549-4e88-9327-96985637c701",
|
||||
"prevId": "ae896627-43c0-4d11-972f-a042af3bf845",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,102 +1232,117 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1293,5 +1350,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "fd9090e8-9549-4e88-9327-96985637c701",
|
||||
"prevId": "ae896627-43c0-4d11-972f-a042af3bf845",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "4d09669b-91d3-4a32-b375-1b4d44c8144a",
|
||||
"prevId": "fd9090e8-9549-4e88-9327-96985637c701",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,103 +1232,118 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1294,5 +1351,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "4d09669b-91d3-4a32-b375-1b4d44c8144a",
|
||||
"prevId": "fd9090e8-9549-4e88-9327-96985637c701",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "fefa7c2c-3176-4db9-981f-dd158e85ca56",
|
||||
"prevId": "4d09669b-91d3-4a32-b375-1b4d44c8144a",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,104 +1232,119 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1295,5 +1352,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "fefa7c2c-3176-4db9-981f-dd158e85ca56",
|
||||
"prevId": "4d09669b-91d3-4a32-b375-1b4d44c8144a",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "aac01c9d-d058-475f-a81e-40565d4dd64d",
|
||||
"prevId": "fefa7c2c-3176-4db9-981f-dd158e85ca56",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,105 +1232,120 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1296,5 +1353,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "aac01c9d-d058-475f-a81e-40565d4dd64d",
|
||||
"prevId": "fefa7c2c-3176-4db9-981f-dd158e85ca56",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "5dd17ecd-c7b6-4282-ad4d-e559fafdff94",
|
||||
"prevId": "aac01c9d-d058-475f-a81e-40565d4dd64d",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,106 +1232,121 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1297,5 +1354,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "5dd17ecd-c7b6-4282-ad4d-e559fafdff94",
|
||||
"prevId": "aac01c9d-d058-475f-a81e-40565d4dd64d",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "857e8595-a16d-4119-8a78-9d864c92fbb0",
|
||||
"prevId": "5dd17ecd-c7b6-4282-ad4d-e559fafdff94",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,108 +1232,123 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1299,5 +1356,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "857e8595-a16d-4119-8a78-9d864c92fbb0",
|
||||
"prevId": "5dd17ecd-c7b6-4282-ad4d-e559fafdff94",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "d32382e5-987e-4c9e-843e-4f1142dd2dee",
|
||||
"prevId": "857e8595-a16d-4119-8a78-9d864c92fbb0",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,109 +1232,124 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1300,5 +1357,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "d32382e5-987e-4c9e-843e-4f1142dd2dee",
|
||||
"prevId": "857e8595-a16d-4119-8a78-9d864c92fbb0",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "e5f61c1d-5ff6-4905-a775-1f3ad51ab735",
|
||||
"prevId": "d32382e5-987e-4c9e-843e-4f1142dd2dee",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -97,9 +95,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -198,9 +200,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -248,33 +254,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -412,20 +422,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -657,33 +671,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -732,9 +750,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -781,33 +803,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -848,33 +874,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +932,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1041,20 +1075,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1113,33 +1151,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1190,109 +1232,124 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1302,5 +1359,11 @@
|
|||
"columns": {
|
||||
"\"material\".\"depths\"": "\"material\".\"depth\""
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "e5f61c1d-5ff6-4905-a775-1f3ad51ab735",
|
||||
"prevId": "d32382e5-987e-4c9e-843e-4f1142dd2dee",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "c2fc8f22-9118-4b41-942d-a952c8473416",
|
||||
"prevId": "e5f61c1d-5ff6-4905-a775-1f3ad51ab735",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -133,9 +131,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -234,9 +236,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -284,33 +290,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -448,20 +458,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -693,33 +707,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -768,9 +786,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -817,33 +839,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -884,33 +910,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -938,33 +968,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1077,20 +1111,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1149,33 +1187,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1226,109 +1268,124 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1336,5 +1393,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "c2fc8f22-9118-4b41-942d-a952c8473416",
|
||||
"prevId": "e5f61c1d-5ff6-4905-a775-1f3ad51ab735",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "66e46a4c-0610-4b0f-a6f7-20a3eea5a6de",
|
||||
"prevId": "c2fc8f22-9118-4b41-942d-a952c8473416",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -133,9 +131,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -234,9 +236,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -284,33 +290,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -448,20 +458,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -693,33 +707,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -768,9 +786,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -817,33 +839,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -884,33 +910,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -938,33 +968,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1077,20 +1111,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1149,33 +1187,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1226,122 +1268,137 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1349,5 +1406,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "66e46a4c-0610-4b0f-a6f7-20a3eea5a6de",
|
||||
"prevId": "c2fc8f22-9118-4b41-942d-a952c8473416",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "06bd4604-96d0-4935-a00b-162aabd9bf78",
|
||||
"prevId": "66e46a4c-0610-4b0f-a6f7-20a3eea5a6de",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -139,9 +137,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -240,9 +242,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -290,33 +296,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -454,20 +464,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -699,33 +713,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,9 +792,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -823,33 +845,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -890,33 +916,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -944,33 +974,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1083,20 +1117,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1155,33 +1193,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1232,122 +1274,137 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1355,5 +1412,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "06bd4604-96d0-4935-a00b-162aabd9bf78",
|
||||
"prevId": "66e46a4c-0610-4b0f-a6f7-20a3eea5a6de",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "72eeb7e2-79f5-4cb2-9725-636261612926",
|
||||
"prevId": "06bd4604-96d0-4935-a00b-162aabd9bf78",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -139,9 +137,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -240,9 +242,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -290,33 +296,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -454,20 +464,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -699,33 +713,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,9 +792,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -823,33 +845,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -890,33 +916,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -944,33 +974,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1083,20 +1117,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1155,33 +1193,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1232,122 +1274,137 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1357,5 +1414,11 @@
|
|||
"columns": {
|
||||
"\"material\".\"labour_cost_per_unit\"": "\"material\".\"labour_hours_per_unit\""
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "72eeb7e2-79f5-4cb2-9725-636261612926",
|
||||
"prevId": "06bd4604-96d0-4935-a00b-162aabd9bf78",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "bd383ade-faaf-4956-b0d6-1ee0a35580be",
|
||||
"prevId": "72eeb7e2-79f5-4cb2-9725-636261612926",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -139,9 +137,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -240,9 +242,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -290,33 +296,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -454,20 +464,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -699,33 +713,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -774,9 +792,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -823,33 +845,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -890,33 +916,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -944,33 +974,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1083,20 +1117,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1155,33 +1193,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1232,123 +1274,138 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier": "suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1356,5 +1413,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "bd383ade-faaf-4956-b0d6-1ee0a35580be",
|
||||
"prevId": "72eeb7e2-79f5-4cb2-9725-636261612926",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "82c0b2f5-d410-413f-90b8-88a2db3130fa",
|
||||
"prevId": "bd383ade-faaf-4956-b0d6-1ee0a35580be",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -139,9 +137,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -246,9 +248,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -296,33 +302,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -460,20 +470,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -705,33 +719,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -780,9 +798,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -829,33 +851,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -896,33 +922,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -950,33 +980,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1095,20 +1129,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1167,33 +1205,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1244,123 +1286,138 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier": "suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1368,5 +1425,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "82c0b2f5-d410-413f-90b8-88a2db3130fa",
|
||||
"prevId": "bd383ade-faaf-4956-b0d6-1ee0a35580be",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "f3105b0f-ca76-42ac-8f2e-020daefd08cf",
|
||||
"prevId": "82c0b2f5-d410-413f-90b8-88a2db3130fa",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -139,9 +137,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -246,9 +248,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -296,33 +302,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -460,20 +470,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -705,33 +719,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -780,9 +798,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -829,33 +851,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -896,33 +922,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -950,33 +980,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1095,20 +1129,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1167,33 +1205,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1244,124 +1286,139 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier": "suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration",
|
||||
"low_energy_lighting_installation": "low_energy_lighting_installation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration",
|
||||
"low_energy_lighting_installation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1369,5 +1426,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "f3105b0f-ca76-42ac-8f2e-020daefd08cf",
|
||||
"prevId": "82c0b2f5-d410-413f-90b8-88a2db3130fa",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
"version": "5",
|
||||
"dialect": "pg",
|
||||
"id": "5bab96d7-f042-492e-a08f-a2ad4e7a2f69",
|
||||
"prevId": "f3105b0f-ca76-42ac-8f2e-020daefd08cf",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"material": {
|
||||
"public.material": {
|
||||
"name": "material",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -139,9 +137,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolio": {
|
||||
"public.portfolio": {
|
||||
"name": "portfolio",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -246,9 +248,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"portfolioUsers": {
|
||||
"public.portfolioUsers": {
|
||||
"name": "portfolioUsers",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -296,33 +302,37 @@
|
|||
"portfolioUsers_user_id_user_id_fk": {
|
||||
"name": "portfolioUsers_user_id_user_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "user",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"portfolioUsers_portfolio_id_portfolio_id_fk": {
|
||||
"name": "portfolioUsers_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "portfolioUsers",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property": {
|
||||
"public.property": {
|
||||
"name": "property",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -460,20 +470,24 @@
|
|||
"property_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_epc": {
|
||||
"public.property_details_epc": {
|
||||
"name": "property_details_epc",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -711,33 +725,37 @@
|
|||
"property_details_epc_property_id_property_id_fk": {
|
||||
"name": "property_details_epc_property_id_property_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_details_epc_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_details_epc_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_details_epc",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_details_meter": {
|
||||
"public.property_details_meter": {
|
||||
"name": "property_details_meter",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -786,9 +804,13 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"property_targets": {
|
||||
"public.property_targets": {
|
||||
"name": "property_targets",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -835,33 +857,37 @@
|
|||
"property_targets_property_id_property_id_fk": {
|
||||
"name": "property_targets_property_id_property_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"property_targets_portfolio_id_portfolio_id_fk": {
|
||||
"name": "property_targets_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "property_targets",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan": {
|
||||
"public.plan": {
|
||||
"name": "plan",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -902,33 +928,37 @@
|
|||
"plan_portfolio_id_portfolio_id_fk": {
|
||||
"name": "plan_portfolio_id_portfolio_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "portfolio",
|
||||
"columnsFrom": [
|
||||
"portfolio_id"
|
||||
],
|
||||
"tableTo": "portfolio",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_property_id_property_id_fk": {
|
||||
"name": "plan_property_id_property_id_fk",
|
||||
"tableFrom": "plan",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"plan_recommendations": {
|
||||
"public.plan_recommendations": {
|
||||
"name": "plan_recommendations",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -956,33 +986,37 @@
|
|||
"plan_recommendations_plan_id_plan_id_fk": {
|
||||
"name": "plan_recommendations_plan_id_plan_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "plan",
|
||||
"columnsFrom": [
|
||||
"plan_id"
|
||||
],
|
||||
"tableTo": "plan",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"plan_recommendations_recommendation_id_recommendation_id_fk": {
|
||||
"name": "plan_recommendations_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "plan_recommendations",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation": {
|
||||
"public.recommendation": {
|
||||
"name": "recommendation",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1101,20 +1135,24 @@
|
|||
"recommendation_property_id_property_id_fk": {
|
||||
"name": "recommendation_property_id_property_id_fk",
|
||||
"tableFrom": "recommendation",
|
||||
"tableTo": "property",
|
||||
"columnsFrom": [
|
||||
"property_id"
|
||||
],
|
||||
"tableTo": "property",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"recommendation_materials": {
|
||||
"public.recommendation_materials": {
|
||||
"name": "recommendation_materials",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1173,33 +1211,37 @@
|
|||
"recommendation_materials_recommendation_id_recommendation_id_fk": {
|
||||
"name": "recommendation_materials_recommendation_id_recommendation_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "recommendation",
|
||||
"columnsFrom": [
|
||||
"recommendation_id"
|
||||
],
|
||||
"tableTo": "recommendation",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
},
|
||||
"recommendation_materials_material_id_material_id_fk": {
|
||||
"name": "recommendation_materials_material_id_material_id_fk",
|
||||
"tableFrom": "recommendation_materials",
|
||||
"tableTo": "material",
|
||||
"columnsFrom": [
|
||||
"material_id"
|
||||
],
|
||||
"tableTo": "material",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
"onUpdate": "no action",
|
||||
"onDelete": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user": {
|
||||
"public.user": {
|
||||
"name": "user",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
|
|
@ -1250,124 +1292,139 @@
|
|||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {}
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"isRLSEnabled": false,
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"enums": {
|
||||
"cost_unit": {
|
||||
"public.cost_unit": {
|
||||
"name": "cost_unit",
|
||||
"values": {
|
||||
"gbp_sq_meter": "gbp_sq_meter",
|
||||
"gbp_per_unit": "gbp_per_unit",
|
||||
"gbp_per_m2": "gbp_per_m2"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"gbp_sq_meter",
|
||||
"gbp_per_unit",
|
||||
"gbp_per_m2"
|
||||
]
|
||||
},
|
||||
"depth_unit": {
|
||||
"public.depth_unit": {
|
||||
"name": "depth_unit",
|
||||
"values": {
|
||||
"mm": "mm"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"mm"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"public.type": {
|
||||
"name": "type",
|
||||
"values": {
|
||||
"suspended_floor_insulation": "suspended_floor_insulation",
|
||||
"solid_floor_insulation": "solid_floor_insulation",
|
||||
"external_wall_insulation": "external_wall_insulation",
|
||||
"internal_wall_insulation": "internal_wall_insulation",
|
||||
"cavity_wall_insulation": "cavity_wall_insulation",
|
||||
"mechanical_ventilation": "mechanical_ventilation",
|
||||
"loft_insulation": "loft_insulation",
|
||||
"exposed_floor_insulation": "exposed_floor_insulation",
|
||||
"flat_roof_insulation": "flat_roof_insulation",
|
||||
"room_roof_insulation": "room_roof_insulation",
|
||||
"iwi_wall_demolition": "iwi_wall_demolition",
|
||||
"iwi_vapour_barrier": "iwi_vapour_barrier",
|
||||
"iwi_redecoration": "iwi_redecoration",
|
||||
"suspended_floor_demolition": "suspended_floor_demolition",
|
||||
"suspended_floor_redecoration": "suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier": "suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition": "solid_floor_demolition",
|
||||
"solid_floor_preparation": "solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier": "solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration": "solid_floor_redecoration",
|
||||
"ewi_wall_demolition": "ewi_wall_demolition",
|
||||
"ewi_wall_preparation": "ewi_wall_preparation",
|
||||
"ewi_wall_redecoration": "ewi_wall_redecoration",
|
||||
"low_energy_lighting_installation": "low_energy_lighting_installation"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"suspended_floor_insulation",
|
||||
"solid_floor_insulation",
|
||||
"external_wall_insulation",
|
||||
"internal_wall_insulation",
|
||||
"cavity_wall_insulation",
|
||||
"mechanical_ventilation",
|
||||
"loft_insulation",
|
||||
"exposed_floor_insulation",
|
||||
"flat_roof_insulation",
|
||||
"room_roof_insulation",
|
||||
"iwi_wall_demolition",
|
||||
"iwi_vapour_barrier",
|
||||
"iwi_redecoration",
|
||||
"suspended_floor_demolition",
|
||||
"suspended_floor_redecoration",
|
||||
"suspended_floor_vapour_barrier",
|
||||
"solid_floor_demolition",
|
||||
"solid_floor_preparation",
|
||||
"solid_floor_vapour_barrier",
|
||||
"solid_floor_redecoration",
|
||||
"ewi_wall_demolition",
|
||||
"ewi_wall_preparation",
|
||||
"ewi_wall_redecoration",
|
||||
"low_energy_lighting_installation"
|
||||
]
|
||||
},
|
||||
"r_value_unit": {
|
||||
"public.r_value_unit": {
|
||||
"name": "r_value_unit",
|
||||
"values": {
|
||||
"square_meter_kelvin_per_watt": "square_meter_kelvin_per_watt"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"square_meter_kelvin_per_watt"
|
||||
]
|
||||
},
|
||||
"thermal_conductivity_unit": {
|
||||
"public.thermal_conductivity_unit": {
|
||||
"name": "thermal_conductivity_unit",
|
||||
"values": {
|
||||
"watt_per_meter_kelvin": "watt_per_meter_kelvin"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"watt_per_meter_kelvin"
|
||||
]
|
||||
},
|
||||
"goal": {
|
||||
"public.goal": {
|
||||
"name": "goal",
|
||||
"values": {
|
||||
"Valuation Improvement": "Valuation Improvement",
|
||||
"Increasing EPC": "Increasing EPC",
|
||||
"Reducing CO2 emissions": "Reducing CO2 emissions",
|
||||
"Energy Savings": "Energy Savings",
|
||||
"None": "None"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"Valuation Improvement",
|
||||
"Increasing EPC",
|
||||
"Reducing CO2 emissions",
|
||||
"Energy Savings",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"public.role": {
|
||||
"name": "role",
|
||||
"values": {
|
||||
"creator": "creator",
|
||||
"admin": "admin",
|
||||
"read": "read",
|
||||
"write": "write"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"creator",
|
||||
"admin",
|
||||
"read",
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"public.status": {
|
||||
"name": "status",
|
||||
"values": {
|
||||
"scoping": "scoping",
|
||||
"assessment": "assessment",
|
||||
"tendering": "tendering",
|
||||
"project underway": "project underway",
|
||||
"completion; status: on track": "completion; status: on track",
|
||||
"completion; status: delayed": "completion; status: delayed",
|
||||
"completion; status: at risk": "completion; status: at risk",
|
||||
"completion; status: completed": "completion; status: completed",
|
||||
"needs review": "needs review"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"scoping",
|
||||
"assessment",
|
||||
"tendering",
|
||||
"project underway",
|
||||
"completion; status: on track",
|
||||
"completion; status: delayed",
|
||||
"completion; status: at risk",
|
||||
"completion; status: completed",
|
||||
"needs review"
|
||||
]
|
||||
},
|
||||
"epc": {
|
||||
"public.epc": {
|
||||
"name": "epc",
|
||||
"values": {
|
||||
"A": "A",
|
||||
"B": "B",
|
||||
"C": "C",
|
||||
"D": "D",
|
||||
"E": "E",
|
||||
"F": "F",
|
||||
"G": "G"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G"
|
||||
]
|
||||
},
|
||||
"creation_status": {
|
||||
"public.creation_status": {
|
||||
"name": "creation_status",
|
||||
"values": {
|
||||
"LOADING": "LOADING",
|
||||
"READY": "READY",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"LOADING",
|
||||
"READY",
|
||||
"ERROR"
|
||||
]
|
||||
},
|
||||
"unit_quantity": {
|
||||
"public.unit_quantity": {
|
||||
"name": "unit_quantity",
|
||||
"values": {
|
||||
"m2": "m2",
|
||||
"part": "part"
|
||||
}
|
||||
"schema": "public",
|
||||
"values": [
|
||||
"m2",
|
||||
"part"
|
||||
]
|
||||
}
|
||||
},
|
||||
"schemas": {},
|
||||
|
|
@ -1375,5 +1432,11 @@
|
|||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
}
|
||||
},
|
||||
"id": "5bab96d7-f042-492e-a08f-a2ad4e7a2f69",
|
||||
"prevId": "f3105b0f-ca76-42ac-8f2e-020daefd08cf",
|
||||
"sequences": {},
|
||||
"policies": {},
|
||||
"views": {},
|
||||
"roles": {}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue