Fix offer retrieval method and add GDPR acknowledgment

Return the result from `getOffersById` method to fix route handling. Add `id` field in offers selection query and introduce `gdpr_acknowledgement` to the user model and mock data for GDPR compliance.
This commit is contained in:
2024-11-24 23:49:59 +01:00
parent ebdc3d0109
commit 55ec13c0a7
4 changed files with 5 additions and 1 deletions

View File

@@ -86,6 +86,8 @@ model User {
created_at DateTime @default(now())
updated_at DateTime @default(now()) @updatedAt
gdpr_acknowledgement DateTime @default(now())
Role Role @relation(fields: [roleId], references: [id])
UserHasCrypto UserHasCrypto[]
TradeGiven Trade[] @relation("Giver")