Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/add cusip to asset profile model (#4347)
Thomas Kaul8f165d46e03e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ecbcdc820e..b4d6f0a744 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Extended the export functionality by the tags- Extended the portfolio snapshot in the portfolio calculator by the activities count- Extended the user endpoint `GET api/v1/user` by the activities count+- Added `cusip` to the asset profile model### Changeddiff --git a/apps/api/src/app/import/import.service.ts b/apps/api/src/app/import/import.service.tsindex eb1b841c45..698d13e2b6 100644--- a/apps/api/src/app/import/import.service.ts+++ b/apps/api/src/app/import/import.service.ts@@ -293,6 +293,7 @@ export class ImportService {assetSubClass,countries,createdAt,+ cusip,dataSource,figi,figiComposite,@@ -367,6 +368,7 @@ export class ImportService {assetSubClass,countries,createdAt,+ cusip,dataSource,figi,figiComposite,diff --git a/prisma/migrations/20250222084717_added_cusip_to_symbol_profile/migration.sql b/prisma/migrations/20250222084717_added_cusip_to_symbol_profile/migration.sqlnew file mode 100644index 0000000000..b60cebef63--- /dev/null+++ b/prisma/migrations/20250222084717_added_cusip_to_symbol_profile/migration.sql@@ -0,0 +1,5 @@+-- AlterTable+ALTER TABLE "SymbolProfile" ADD COLUMN "cusip" TEXT;++-- CreateIndex+CREATE INDEX "SymbolProfile_cusip_idx" ON "SymbolProfile"("cusip");diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.tomlindex fbffa92c2b..648c57fd59 100644--- a/prisma/migrations/migration_lock.toml+++ b/prisma/migrations/migration_lock.toml@@ -1,3 +1,3 @@# Please do not edit this file manually-# It should be added in your version-control system (i.e. Git)+# It should be added in your version-control system (e.g., Git)provider = "postgresql"\ No newline at end of filediff --git a/prisma/schema.prisma b/prisma/schema.prismaindex af9acebafd..371a3fcd8a 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -174,6 +174,7 @@ model SymbolProfile {countries Json?createdAt DateTime @default(now())currency String+ cusip String?dataSource DataSourcefigi String?figiComposite String?@@ -196,6 +197,7 @@ model SymbolProfile {@@unique([dataSource, symbol])@@index([assetClass])@@index([currency])+ @@index([cusip])@@index([dataSource])@@index([isin])@@index([name])