User

Classes for representing a user

This is a module for Project Forge. 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

Usage

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)

 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
{
"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

Technology