doc: design decisions draft
This commit is contained in:
parent
e58ab878b6
commit
7d8f4222a3
@ -14,3 +14,12 @@
|
||||
## Testing
|
||||
### User
|
||||
- CreatingNewUser_AsAdmin_SendsRegistrationMail
|
||||
|
||||
## Data Layer
|
||||
- use model structs for the exact represenation in databse (maybe sometimes a field is not used in code, then its maybe fine to drop it off the struct e.g. Timestamp at Token tables)
|
||||
- use changesset struct based on model (wihout ids)
|
||||
- groups parametres for methods
|
||||
- allows validation on fields (ecto changeset, elm js data down actions up)
|
||||
- all fields are as they are on the model, all field must be supplied; no way for "partial updates"
|
||||
- partial updates for only one or two fields get a special method on the model
|
||||
- validate using garde and custom context with gives access to database pool
|
||||
|
Loading…
x
Reference in New Issue
Block a user