From 69dec1610c5402e14e7ff52699cd7d772372416c Mon Sep 17 00:00:00 2001 From: alexeh Date: Thu, 5 Dec 2024 09:54:10 +0100 Subject: [PATCH] add scorecard enum to projects.entity.ts with default medium value --- shared/entities/projects.entity.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shared/entities/projects.entity.ts b/shared/entities/projects.entity.ts index 13dd5eaf..2263a25c 100644 --- a/shared/entities/projects.entity.ts +++ b/shared/entities/projects.entity.ts @@ -10,6 +10,7 @@ import { import { Country } from "@shared/entities/country.entity"; import { ECOSYSTEM } from "./ecosystem.enum"; import { ACTIVITY, RESTORATION_ACTIVITY_SUBTYPE } from "./activity.enum"; +import { PROJECT_SCORE } from "@shared/entities/project-score.enum"; export enum PROJECT_SIZE_FILTER { SMALL = "Small", @@ -98,4 +99,12 @@ export class Project extends BaseEntity { nullable: true, }) priceType: PROJECT_PRICE_TYPE; + + @Column({ + type: "enum", + enum: PROJECT_SCORE, + default: PROJECT_SCORE.MEDIUM, + name: "score_card_rating", + }) + scoreCardRating: PROJECT_SCORE; }