diff --git a/src/app/db/migrations/meta/_journal.json b/src/app/db/migrations/meta/_journal.json index f344549..960a23c 100644 --- a/src/app/db/migrations/meta/_journal.json +++ b/src/app/db/migrations/meta/_journal.json @@ -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 } ] } \ No newline at end of file diff --git a/src/app/db/schema/property.ts b/src/app/db/schema/property.ts index 5a0d025..f14e360 100644 --- a/src/app/db/schema/property.ts +++ b/src/app/db/schema/property.ts @@ -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"), diff --git a/tsconfig.json b/tsconfig.json index 6468155..7f10c94 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, - "target": "es5", - // "target": "ESNext", + // "target": "es5", + "target": "ESNext", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true,