Files
abuse-registration-api-golang/docs/data-model.md
T

25 lines
753 B
Markdown

# Data model
This POC intentionally uses a very small anonymous registration object.
```json
{
"id": "bb8d39a6-8fef-48af-9f9c-27a41c8f8baf",
"registered_at": "1989-04-13T15:22:00Z",
"gender": "female",
"location": "Tórshavn",
"abuse_type": "psychological",
"status": "new"
}
```
Notes:
- `id` is a UUID string generated by the server.
- There is no name field.
- `registered_at` defaults to `time.Now().UTC()` when omitted on create or update.
- Base synthetic data uses dates from 1988 through 1991.
- Data resets to 546 base rows every 10 minutes.
- `location` must be one of the fixed Faroese towns/villages in `internal/models/registration.go`.
- `PUT /api/v1/registrations/{uuid}` is used for update. There is no `PATCH` endpoint.