Browse Source
Merge branch 'main' into bugfix/fix-word-wrap-in-menu-of-historical-market-data-table-of-admin-control-panel
pull/4562/head
Thomas Kaul
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
23 additions and
1 deletions
-
CHANGELOG.md
-
prisma/migrations/20250418123137_added_watchlist_to_user/migration.sql
-
prisma/schema.prisma
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
## Unreleased |
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
|
|
|
|
- Added `watchlist` to the `User` database schema as a preparation for watching assets |
|
|
|
|
|
|
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
- Fixed the word wrap in the menu of the historical market data table in the admin control panel |
|
|
- Fixed the word wrap in the menu of the historical market data table in the admin control panel |
|
|
|
@ -0,0 +1,16 @@ |
|
|
|
|
|
-- CreateTable |
|
|
|
|
|
CREATE TABLE "_UserWatchlist" ( |
|
|
|
|
|
"A" TEXT NOT NULL, |
|
|
|
|
|
"B" TEXT NOT NULL, |
|
|
|
|
|
|
|
|
|
|
|
CONSTRAINT "_UserWatchlist_AB_pkey" PRIMARY KEY ("A","B") |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
-- CreateIndex |
|
|
|
|
|
CREATE INDEX "_UserWatchlist_B_index" ON "_UserWatchlist"("B"); |
|
|
|
|
|
|
|
|
|
|
|
-- AddForeignKey |
|
|
|
|
|
ALTER TABLE "_UserWatchlist" ADD CONSTRAINT "_UserWatchlist_A_fkey" FOREIGN KEY ("A") REFERENCES "SymbolProfile"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
|
|
|
|
|
|
|
|
|
|
|
-- AddForeignKey |
|
|
|
|
|
ALTER TABLE "_UserWatchlist" ADD CONSTRAINT "_UserWatchlist_B_fkey" FOREIGN KEY ("B") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
|
@ -191,6 +191,7 @@ model SymbolProfile { |
|
|
symbolMapping Json? |
|
|
symbolMapping Json? |
|
|
url String? |
|
|
url String? |
|
|
userId String? |
|
|
userId String? |
|
|
|
|
|
watchedBy User[] @relation("UserWatchlist") |
|
|
Order Order[] |
|
|
Order Order[] |
|
|
SymbolProfileOverrides SymbolProfileOverrides? |
|
|
SymbolProfileOverrides SymbolProfileOverrides? |
|
|
User User? @relation(fields: [userId], onDelete: Cascade, references: [id]) |
|
|
User User? @relation(fields: [userId], onDelete: Cascade, references: [id]) |
|
@ -251,6 +252,7 @@ model User { |
|
|
role Role @default(USER) |
|
|
role Role @default(USER) |
|
|
thirdPartyId String? |
|
|
thirdPartyId String? |
|
|
updatedAt DateTime @updatedAt |
|
|
updatedAt DateTime @updatedAt |
|
|
|
|
|
watchlist SymbolProfile[] @relation("UserWatchlist") |
|
|
Access Access[] @relation("accessGet") |
|
|
Access Access[] @relation("accessGet") |
|
|
AccessGive Access[] @relation("accessGive") |
|
|
AccessGive Access[] @relation("accessGive") |
|
|
Account Account[] |
|
|
Account Account[] |
|
|