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
organizations.json · 1.3 KB · 79 lines
| 1 | { |
| 2 | "name": "organizations", |
| 3 | "title": "Organizations", |
| 4 | "version": 2, |
| 5 | "description": "Companies and groups contacts belong to.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "name", |
| 12 | "type": "text", |
| 13 | "required": true, |
| 14 | "label": "Name", |
| 15 | "validation": { |
| 16 | "min_length": 1, |
| 17 | "max_length": 120 |
| 18 | } |
| 19 | }, |
| 20 | { |
| 21 | "name": "website", |
| 22 | "type": "text", |
| 23 | "label": "Website", |
| 24 | "validation": { |
| 25 | "max_length": 254 |
| 26 | } |
| 27 | }, |
| 28 | { |
| 29 | "name": "notes", |
| 30 | "type": "textarea", |
| 31 | "label": "Notes" |
| 32 | }, |
| 33 | { |
| 34 | "name": "created_at", |
| 35 | "type": "datetime", |
| 36 | "read_only": true, |
| 37 | "label": "Created" |
| 38 | }, |
| 39 | { |
| 40 | "name": "owner_id", |
| 41 | "type": "text", |
| 42 | "label": "Owner" |
| 43 | } |
| 44 | ], |
| 45 | "forms": { |
| 46 | "default": { |
| 47 | "fields": [ |
| 48 | "name", |
| 49 | "website", |
| 50 | "notes" |
| 51 | ] |
| 52 | } |
| 53 | }, |
| 54 | "views": { |
| 55 | "list_mode": "table", |
| 56 | "list_fields": [ |
| 57 | "name", |
| 58 | "website" |
| 59 | ], |
| 60 | "detail_fields": [ |
| 61 | "name", |
| 62 | "website", |
| 63 | "notes" |
| 64 | ], |
| 65 | "related": [ |
| 66 | { |
| 67 | "collection": "contacts", |
| 68 | "fk_field": "organization_id" |
| 69 | } |
| 70 | ] |
| 71 | }, |
| 72 | "search": { |
| 73 | "fields": [ |
| 74 | "name", |
| 75 | "website", |
| 76 | "notes" |
| 77 | ] |
| 78 | } |
| 79 | } |