renaming status to creation status

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-31 14:51:41 +01:00
parent e279411809
commit 7e521db44e
3 changed files with 15 additions and 5 deletions

View file

@ -36,6 +36,13 @@
"when": 1690811260605,
"tag": "0004_panoramic_dark_phoenix",
"breakpoints": true
},
{
"idx": 5,
"version": "5",
"when": 1690811484587,
"tag": "0005_nice_enchantress",
"breakpoints": true
}
]
}

View file

@ -60,7 +60,7 @@ export interface ConditionReportData {
yearBuilt: string;
}
export const PropertyStatus: [string, ...string[]] = [
export const PropertyCreationStatus: [string, ...string[]] = [
"LOADING",
"READY",
"ERROR",
@ -68,7 +68,10 @@ export const PropertyStatus: [string, ...string[]] = [
export const Epc: [string, ...string[]] = ["A", "B", "C", "D", "E", "F", "G"];
export const propertyStatusEnum = pgEnum("property_status", PropertyStatus);
export const propertyCreationStatusEnum = pgEnum(
"property_status",
PropertyCreationStatus
);
export const epcEnum = pgEnum("epc", Epc);
export const property = pgTable("property", {
@ -76,7 +79,7 @@ export const property = pgTable("property", {
portfolioId: integer("portfolio_id")
.notNull()
.references(() => portfolio.id),
status: propertyStatusEnum("status").notNull(),
creationStatus: propertyCreationStatusEnum("creation_status").notNull(),
uprn: integer("uprn"),
address: text("address"),
postcode: text("postcode"),

View file

@ -1,8 +1,8 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"target": "es5",
// "target": "ESNext",
// "target": "es5",
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,