(backend) search users

We need to search users by their email.
For that we will use the trigram similarity algorithm
provided by PostgreSQL. To use it we have to
activate the pg_trgm extension in postgres db.
To query the email we will use the query param
`q`.
We have another query param `document_id`, it is
necessary to exclude the users that have already
access to the document.
This commit is contained in:
Anthony LC
2024-05-29 14:48:12 +02:00
committed by Anthony LC
parent 2b456c231f
commit b4b308bda9
4 changed files with 105 additions and 13 deletions

View File

@@ -14,6 +14,7 @@ and this project adheres to
- Update document (#68)
- Remove document (#68)
- (docker) dockerize dev frontend (#63)
- (backend) list users with email filtering (#79)
## Changed