mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
renaming status to creation status
This commit is contained in:
parent
e279411809
commit
7e521db44e
3 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "es5",
|
||||
// "target": "ESNext",
|
||||
// "target": "es5",
|
||||
"target": "ESNext",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue