Skip to content

Commit

Permalink
add scorecard enum to projects.entity.ts with default medium value
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Dec 5, 2024
1 parent 07fd676 commit 69dec16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shared/entities/projects.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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;
}

0 comments on commit 69dec16

Please sign in to comment.