Browse Source

Add CUSIP

pull/4347/head
Thomas Kaul 2 months ago
parent
commit
1dd69fab7d
  1. 5
      prisma/migrations/20250222084717_added_cusip_to_symbol_profile/migration.sql
  2. 2
      prisma/migrations/migration_lock.toml
  3. 2
      prisma/schema.prisma

5
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");

2
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"

2
prisma/schema.prisma

@ -174,6 +174,7 @@ model SymbolProfile {
countries Json?
createdAt DateTime @default(now())
currency String
cusip String?
dataSource DataSource
figi String?
figiComposite String?
@ -196,6 +197,7 @@ model SymbolProfile {
@@unique([dataSource, symbol])
@@index([assetClass])
@@index([currency])
@@index([cusip])
@@index([dataSource])
@@index([isin])
@@index([name])

Loading…
Cancel
Save