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
events.json · 2.1 KB · 124 lines
| 1 | { |
| 2 | "name": "events", |
| 3 | "title": "Events", |
| 4 | "version": 3, |
| 5 | "description": "Calendar events with attendees drawn from contacts.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "title", |
| 12 | "type": "text", |
| 13 | "required": true, |
| 14 | "label": "Title", |
| 15 | "validation": { |
| 16 | "min_length": 1, |
| 17 | "max_length": 255 |
| 18 | } |
| 19 | }, |
| 20 | { |
| 21 | "name": "description", |
| 22 | "type": "textarea", |
| 23 | "label": "Description" |
| 24 | }, |
| 25 | { |
| 26 | "name": "starts_at", |
| 27 | "type": "datetime", |
| 28 | "required": true, |
| 29 | "label": "Starts" |
| 30 | }, |
| 31 | { |
| 32 | "name": "ends_at", |
| 33 | "type": "datetime", |
| 34 | "label": "Ends" |
| 35 | }, |
| 36 | { |
| 37 | "name": "location", |
| 38 | "type": "text", |
| 39 | "label": "Location", |
| 40 | "validation": { |
| 41 | "max_length": 255 |
| 42 | } |
| 43 | }, |
| 44 | { |
| 45 | "name": "url", |
| 46 | "type": "text", |
| 47 | "label": "URL", |
| 48 | "validation": { |
| 49 | "max_length": 2000 |
| 50 | } |
| 51 | }, |
| 52 | { |
| 53 | "name": "purpose", |
| 54 | "type": "enum", |
| 55 | "label": "Purpose", |
| 56 | "default": "meeting", |
| 57 | "enum": [ |
| 58 | "meeting", |
| 59 | "workshop", |
| 60 | "recreation", |
| 61 | "others" |
| 62 | ] |
| 63 | }, |
| 64 | { |
| 65 | "name": "attendee_ids", |
| 66 | "type": "text", |
| 67 | "label": "Attendees", |
| 68 | "help": "Comma-separated contact ids" |
| 69 | }, |
| 70 | { |
| 71 | "name": "project_id", |
| 72 | "label": "Project", |
| 73 | "relation": { |
| 74 | "collection": "projects", |
| 75 | "display_field": "name" |
| 76 | } |
| 77 | }, |
| 78 | { |
| 79 | "name": "created_at", |
| 80 | "type": "datetime", |
| 81 | "read_only": true, |
| 82 | "label": "Created" |
| 83 | }, |
| 84 | { |
| 85 | "name": "owner_id", |
| 86 | "type": "text", |
| 87 | "label": "Owner" |
| 88 | } |
| 89 | ], |
| 90 | "forms": { |
| 91 | "default": { |
| 92 | "fields": [ |
| 93 | "title", |
| 94 | "description", |
| 95 | "starts_at", |
| 96 | "ends_at", |
| 97 | "location", |
| 98 | "url", |
| 99 | "purpose", |
| 100 | "attendee_ids", |
| 101 | "project_id" |
| 102 | ] |
| 103 | } |
| 104 | }, |
| 105 | "views": { |
| 106 | "list_mode": "calendar", |
| 107 | "list_fields": [ |
| 108 | "title", |
| 109 | "starts_at", |
| 110 | "location", |
| 111 | "purpose" |
| 112 | ], |
| 113 | "calendar": { |
| 114 | "date_field": "starts_at" |
| 115 | } |
| 116 | }, |
| 117 | "search": { |
| 118 | "fields": [ |
| 119 | "title", |
| 120 | "description", |
| 121 | "location" |
| 122 | ] |
| 123 | } |
| 124 | } |