From b47cc5e90e786fb8c616838688e0ab79347c1d3c Mon Sep 17 00:00:00 2001 From: eneller Date: Thu, 30 Jul 2026 17:30:46 +0200 Subject: [PATCH] doc: use cases --- docs/design/use-cases.md | 19 +++++++++++++++++++ server/src/model/user.ts | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docs/design/use-cases.md diff --git a/docs/design/use-cases.md b/docs/design/use-cases.md new file mode 100644 index 0000000..685914b --- /dev/null +++ b/docs/design/use-cases.md @@ -0,0 +1,19 @@ +# Use Cases + +## Pay someone +The client pays a business or peer by scanning their QR code or clicking their URL. +They are then shown the payment (send) screen that already contains the prefilled recipient and currency amount. +The client then confirms payment with a button and optional confirmation dialog. + +## Request payment +The business requests payment from a client by sharing their URL / QR code. +The client proceeds with the `Pay someone` flow. + +## + +## Visitor +Visitors obtain access by receiving credentials of a predefined visitor account. +Upon login, they participate freely in the payment process as described by `Pay someone` and `Request payment`. + +## Onboarding users +An administrator performs onboarding using a batch import feature that makes use of `.csv` or a similarly simple format. \ No newline at end of file diff --git a/server/src/model/user.ts b/server/src/model/user.ts index 28f3e88..9504470 100644 --- a/server/src/model/user.ts +++ b/server/src/model/user.ts @@ -2,7 +2,6 @@ import { Table, Column, Model, DataType, Scopes, DefaultScope, DeletedAt, Belong @Table @DefaultScope(() => ({ - //FIXME getting account still includes password attributes:{ exclude: ['password']} })) @Scopes(() => ({