Browse Source
Feature/rename User to user in subscription database schema (#4576)
* Rename User to user
* Update changelog
pull/4586/head^2
Thomas Kaul
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/app/subscription/subscription.service.ts
-
prisma/schema.prisma
|
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
- Added the endpoints (`DELETE`, `GET` and `POST`) for the watchlist |
|
|
- Added the endpoints (`DELETE`, `GET` and `POST`) for the watchlist |
|
|
|
|
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
|
|
|
|
- Renamed `User` to `user` in the `Subscription` database schema |
|
|
|
|
|
|
|
|
## 2.154.0 - 2025-04-21 |
|
|
## 2.154.0 - 2025-04-21 |
|
|
|
|
|
|
|
|
### Added |
|
|
### Added |
|
|
|
@ -122,7 +122,7 @@ export class SubscriptionService { |
|
|
data: { |
|
|
data: { |
|
|
expiresAt, |
|
|
expiresAt, |
|
|
price, |
|
|
price, |
|
|
User: { |
|
|
user: { |
|
|
connect: { |
|
|
connect: { |
|
|
id: userId |
|
|
id: userId |
|
|
} |
|
|
} |
|
|
|
@ -226,8 +226,8 @@ model Subscription { |
|
|
id String @id @default(uuid()) |
|
|
id String @id @default(uuid()) |
|
|
price Float? |
|
|
price Float? |
|
|
updatedAt DateTime @updatedAt |
|
|
updatedAt DateTime @updatedAt |
|
|
|
|
|
user User @relation(fields: [userId], onDelete: Cascade, references: [id]) |
|
|
userId String |
|
|
userId String |
|
|
User User @relation(fields: [userId], onDelete: Cascade, references: [id]) |
|
|
|
|
|
|
|
|
|
|
|
@@index([userId]) |
|
|
@@index([userId]) |
|
|
} |
|
|
} |
|
|