Feature/add cusip to asset profile model (#4347)
* Add CUSIP * Update changelog
This commit is contained in:
parent
634bdf16d6
commit
8f165d46e0
@ -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 export functionality by the tags
|
||||||
- Extended the portfolio snapshot in the portfolio calculator by the activities count
|
- Extended the portfolio snapshot in the portfolio calculator by the activities count
|
||||||
- Extended the user endpoint `GET api/v1/user` by the activities count
|
- Extended the user endpoint `GET api/v1/user` by the activities count
|
||||||
|
- Added `cusip` to the asset profile model
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -293,6 +293,7 @@ export class ImportService {
|
|||||||
assetSubClass,
|
assetSubClass,
|
||||||
countries,
|
countries,
|
||||||
createdAt,
|
createdAt,
|
||||||
|
cusip,
|
||||||
dataSource,
|
dataSource,
|
||||||
figi,
|
figi,
|
||||||
figiComposite,
|
figiComposite,
|
||||||
@ -367,6 +368,7 @@ export class ImportService {
|
|||||||
assetSubClass,
|
assetSubClass,
|
||||||
countries,
|
countries,
|
||||||
createdAt,
|
createdAt,
|
||||||
|
cusip,
|
||||||
dataSource,
|
dataSource,
|
||||||
figi,
|
figi,
|
||||||
figiComposite,
|
figiComposite,
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "SymbolProfile" ADD COLUMN "cusip" TEXT;
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "SymbolProfile_cusip_idx" ON "SymbolProfile"("cusip");
|
@ -1,3 +1,3 @@
|
|||||||
# Please do not edit this file manually
|
# 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"
|
provider = "postgresql"
|
@ -174,6 +174,7 @@ model SymbolProfile {
|
|||||||
countries Json?
|
countries Json?
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
currency String
|
currency String
|
||||||
|
cusip String?
|
||||||
dataSource DataSource
|
dataSource DataSource
|
||||||
figi String?
|
figi String?
|
||||||
figiComposite String?
|
figiComposite String?
|
||||||
@ -196,6 +197,7 @@ model SymbolProfile {
|
|||||||
@@unique([dataSource, symbol])
|
@@unique([dataSource, symbol])
|
||||||
@@index([assetClass])
|
@@index([assetClass])
|
||||||
@@index([currency])
|
@@index([currency])
|
||||||
|
@@index([cusip])
|
||||||
@@index([dataSource])
|
@@index([dataSource])
|
||||||
@@index([isin])
|
@@index([isin])
|
||||||
@@index([name])
|
@@index([name])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user