Browse Source
Feature/rename account to accounts in platform database schema (#4656)
* Rename Account to accounts in platform database schema
* Update changelog
pull/4658/head
Thomas Kaul
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
7 additions and
6 deletions
-
CHANGELOG.md
-
apps/api/src/app/platform/platform.service.ts
-
prisma/schema.prisma
|
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Moved the watchlist from experimental to general availability |
|
|
|
- Deprecated the endpoint to get a portfolio position in favor of get a holding |
|
|
|
- Deprecated the endpoint to update portfolio position tags in favor of update holding tags |
|
|
|
- Renamed `Account` to `accounts` in the `Platform` database schema |
|
|
|
- Upgraded `prisma` from version `6.6.0` to `6.7.0` |
|
|
|
|
|
|
|
## 2.159.0 - 2025-05-02 |
|
|
|
|
|
@ -54,7 +54,7 @@ export class PlatformService { |
|
|
|
await this.prismaService.platform.findMany({ |
|
|
|
include: { |
|
|
|
_count: { |
|
|
|
select: { Account: true } |
|
|
|
select: { accounts: true } |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
@ -64,7 +64,7 @@ export class PlatformService { |
|
|
|
id, |
|
|
|
name, |
|
|
|
url, |
|
|
|
accountCount: _count.Account |
|
|
|
accountCount: _count.accounts |
|
|
|
}; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
@ -147,10 +147,10 @@ model Order { |
|
|
|
} |
|
|
|
|
|
|
|
model Platform { |
|
|
|
id String @id @default(uuid()) |
|
|
|
name String? |
|
|
|
url String @unique |
|
|
|
Account Account[] |
|
|
|
accounts Account[] |
|
|
|
id String @id @default(uuid()) |
|
|
|
name String? |
|
|
|
url String @unique |
|
|
|
|
|
|
|
@@index([name]) |
|
|
|
} |
|
|
|