Browse Source

Feature/add isActive flag to asset profile model (#4479)

* Add isActive to SymbolProfile model

* Update changelog
pull/4482/head
Thomas Kaul 3 weeks ago
committed by GitHub
parent
commit
f08ed2dc68
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 2
      apps/api/src/app/import/import.service.ts
  3. 5
      prisma/migrations/20250324072407_added_is_active_to_symbol_profile/migration.sql
  4. 2
      prisma/schema.prisma

4
CHANGELOG.md

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added
- Added the `isActive` flag to the asset profile model
### Changed ### Changed
- Improved the language localization for German (`de`) - Improved the language localization for German (`de`)

2
apps/api/src/app/import/import.service.ts

@ -300,6 +300,7 @@ export class ImportService {
figiShareClass, figiShareClass,
holdings, holdings,
id, id,
isActive,
isin, isin,
name, name,
scraperConfiguration, scraperConfiguration,
@ -375,6 +376,7 @@ export class ImportService {
figiShareClass, figiShareClass,
holdings, holdings,
id, id,
isActive,
isin, isin,
name, name,
scraperConfiguration, scraperConfiguration,

5
prisma/migrations/20250324072407_added_is_active_to_symbol_profile/migration.sql

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "SymbolProfile" ADD COLUMN "isActive" BOOLEAN NOT NULL DEFAULT true;
-- CreateIndex
CREATE INDEX "SymbolProfile_isActive_idx" ON "SymbolProfile"("isActive");

2
prisma/schema.prisma

@ -181,6 +181,7 @@ model SymbolProfile {
figiShareClass String? figiShareClass String?
holdings Json? @default("[]") holdings Json? @default("[]")
id String @id @default(uuid()) id String @id @default(uuid())
isActive Boolean @default(true)
isin String? isin String?
name String? name String?
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt
@ -199,6 +200,7 @@ model SymbolProfile {
@@index([currency]) @@index([currency])
@@index([cusip]) @@index([cusip])
@@index([dataSource]) @@index([dataSource])
@@index([isActive])
@@index([isin]) @@index([isin])
@@index([name]) @@index([name])
@@index([symbol]) @@index([symbol])

Loading…
Cancel
Save