You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
560 B
16 lines
560 B
3 years ago
|
-- CreateTable
|
||
|
CREATE TABLE "SymbolProfileOverrides" (
|
||
|
"assetClass" "AssetClass",
|
||
|
"assetSubClass" "AssetSubClass",
|
||
|
"countries" JSONB,
|
||
|
"name" TEXT,
|
||
|
"sectors" JSONB,
|
||
|
"symbolProfileId" TEXT NOT NULL,
|
||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||
|
|
||
|
CONSTRAINT "SymbolProfileOverrides_pkey" PRIMARY KEY ("symbolProfileId")
|
||
|
);
|
||
|
|
||
|
-- AddForeignKey
|
||
|
ALTER TABLE "SymbolProfileOverrides" ADD CONSTRAINT "SymbolProfileOverrides_symbolProfileId_fkey" FOREIGN KEY ("symbolProfileId") REFERENCES "SymbolProfile"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|