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
task_comments.json · 972 bytes · 44 lines
| 1 | { |
| 2 | "name": "task_comments", |
| 3 | "title": "Task Comments", |
| 4 | "version": 1, |
| 5 | "description": "Discussion on tasks. project_id is copied from the task so project sharing governs comment visibility.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "task_id", |
| 12 | "required": true, |
| 13 | "label": "Task", |
| 14 | "relation": {"collection": "tasks", "display_field": "title"} |
| 15 | }, |
| 16 | { |
| 17 | "name": "body", |
| 18 | "type": "textarea", |
| 19 | "required": true, |
| 20 | "label": "Comment", |
| 21 | "validation": {"min_length": 1} |
| 22 | }, |
| 23 | { |
| 24 | "name": "project_id", |
| 25 | "label": "Project", |
| 26 | "relation": {"collection": "projects", "display_field": "name"} |
| 27 | }, |
| 28 | { |
| 29 | "name": "owner_id", |
| 30 | "type": "text", |
| 31 | "label": "Author" |
| 32 | } |
| 33 | ], |
| 34 | "forms": { |
| 35 | "default": {"fields": ["task_id", "body"]} |
| 36 | }, |
| 37 | "views": { |
| 38 | "list_mode": "feed", |
| 39 | "list_fields": ["task_id", "body", "owner_id"] |
| 40 | }, |
| 41 | "search": { |
| 42 | "fields": ["body"] |
| 43 | } |
| 44 | } |