1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| # Types
This is a module for [Project Forge](https://projectforge.dev). It provides classes for representing persistent user records and wires them throughout the application
https://github.com/kyleu/projectforge/tree/master/module/user
### License
Licensed under [CC0](https://creativecommons.org/publicdomain/zero/1.0)
### Usage
- A user profile is provided in the session, new users are saved in the database
A default implementation of a User is provided, saving records on the filesystem. Either make it your own by editing the files, or have Project Forge generate one by making a new export model file:
`./.projectforge/export/models/user.json` (`database` and `export` modules are required)
```json { "name": "user", "package": "user", "description": "A user of the system", "icon": "profile", "columns": [ { "name": "id", "type": "uuid", "pk": true, "search": true }, { "name": "name", "type": "string", "search": true, "tags": [ "title" ] }, { "name": "created", "type": "timestamp", "sqlDefault": "now()", "tags": [ "created" ] }, { "name": "updated", "type": "timestamp", "nullable": true, "sqlDefault": "now()", "tags": [ "updated" ] } ] } ```
The fields "id" and "name" are required, but feel free to customize this model for your purposes
|