-
Notifications
You must be signed in to change notification settings - Fork 2
/
sqrible.yml.example
29 lines (21 loc) · 959 Bytes
/
sqrible.yml.example
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
tables:
users: # table name
template: example.tpl # template to use for this table
gostruct: User # go struct which will be used for this table
tablecols: # table column configuration
password: # password is totally ignored
access: "-"
id:
access: s # id can only be SELECTed
json: "custom_id_field"
uid:
access: s # uid can only be SELECTed
creation_date:
access: s # creation_date can only be selected
username:
access: i # username can only be INSERTed (not available in SELECT nor UPDATE)
email:
access: siu # email can be SELECTed INSERTed UPDATEd
enabled:
access: u # enabled can only be UPDATEd (not availble in SELECT not INSERT)
# no configuration means : SELECTable, INSERTable, UPDATEable