Feature/rename account to accounts in platform database schema (#4656)

* Rename Account to accounts in platform database schema

* Update changelog
This commit is contained in:
Thomas Kaul 2025-05-04 15:55:31 +02:00 committed by GitHub
parent ecffb53f07
commit d661cdc78f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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
};
});
}

View File

@ -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])
}