askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
project_access.json · 965 bytes · 42 lines
| 1 | { |
| 2 | "name": "project_access", |
| 3 | "title": "Project Access", |
| 4 | "version": 1, |
| 5 | "description": "Sharing grants: each row gives one user access to one project. Rules opt in with the $accessible_projects row-filter value.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "project_id", |
| 12 | "required": true, |
| 13 | "label": "Project", |
| 14 | "relation": {"collection": "projects", "display_field": "name"} |
| 15 | }, |
| 16 | { |
| 17 | "name": "user_id", |
| 18 | "type": "text", |
| 19 | "required": true, |
| 20 | "label": "User" |
| 21 | }, |
| 22 | { |
| 23 | "name": "permission", |
| 24 | "type": "enum", |
| 25 | "label": "Permission", |
| 26 | "default": "read", |
| 27 | "enum": ["read", "write"] |
| 28 | }, |
| 29 | { |
| 30 | "name": "granted_by", |
| 31 | "type": "text", |
| 32 | "label": "Granted By" |
| 33 | } |
| 34 | ], |
| 35 | "forms": { |
| 36 | "default": {"fields": ["project_id", "user_id", "permission"]} |
| 37 | }, |
| 38 | "views": { |
| 39 | "list_mode": "table", |
| 40 | "list_fields": ["project_id", "user_id", "permission"] |
| 41 | } |
| 42 | } |