Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/rename ApiKey to apiKeys in User database schema (#4890)

Thomas Kaul0f537adf3ec8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f8ecdc4b12..968425cdc1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
+- Renamed `ApiKey` to `apiKeys` in the `User` database schema
- Improved the language localization for Portuguese (`pt`)
- Upgraded `@keyv/redis` from version `4.3.4` to `4.4.0`
- Upgraded `zone.js` from version `0.15.0` to `0.15.1`
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index ede19470d2..c95debe36d 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -247,6 +247,7 @@ model User {
accessToken String?
accounts Account[]
activities Order[]
+ apiKeys ApiKey[]
authChallenge String?
createdAt DateTime @default(now())
id String @id @default(uuid())
@@ -260,7 +261,6 @@ model User {
Access Access[] @relation("accessGet")
AccessGive Access[] @relation("accessGive")
Analytics Analytics?
- ApiKey ApiKey[]
AuthDevice AuthDevice[]
Settings Settings?
SymbolProfile SymbolProfile[]