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
contacts.json · 3.6 KB · 201 lines
| 1 | { |
| 2 | "name": "contacts", |
| 3 | "title": "Contacts", |
| 4 | "version": 7, |
| 5 | "description": "People: the core CRM record.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "first_name", |
| 12 | "type": "text", |
| 13 | "required": true, |
| 14 | "label": "First Name", |
| 15 | "validation": { |
| 16 | "min_length": 1, |
| 17 | "max_length": 80 |
| 18 | } |
| 19 | }, |
| 20 | { |
| 21 | "name": "last_name", |
| 22 | "type": "text", |
| 23 | "label": "Last Name", |
| 24 | "validation": { |
| 25 | "max_length": 80 |
| 26 | } |
| 27 | }, |
| 28 | { |
| 29 | "name": "full_name", |
| 30 | "type": "computed", |
| 31 | "label": "Name", |
| 32 | "formula": "first_name + \" \" + last_name" |
| 33 | }, |
| 34 | { |
| 35 | "name": "email", |
| 36 | "type": "text", |
| 37 | "label": "Email", |
| 38 | "validation": { |
| 39 | "max_length": 254 |
| 40 | } |
| 41 | }, |
| 42 | { |
| 43 | "name": "phone", |
| 44 | "type": "text", |
| 45 | "label": "Phone", |
| 46 | "validation": { |
| 47 | "max_length": 40 |
| 48 | } |
| 49 | }, |
| 50 | { |
| 51 | "name": "job_title", |
| 52 | "type": "text", |
| 53 | "label": "Job Title", |
| 54 | "validation": { |
| 55 | "max_length": 120 |
| 56 | } |
| 57 | }, |
| 58 | { |
| 59 | "name": "organization_id", |
| 60 | "label": "Organization", |
| 61 | "relation": { |
| 62 | "collection": "organizations", |
| 63 | "display_field": "name" |
| 64 | } |
| 65 | }, |
| 66 | { |
| 67 | "name": "project_id", |
| 68 | "label": "Project", |
| 69 | "relation": { |
| 70 | "collection": "projects", |
| 71 | "display_field": "name" |
| 72 | } |
| 73 | }, |
| 74 | { |
| 75 | "name": "lead_status", |
| 76 | "type": "enum", |
| 77 | "label": "Lead Status", |
| 78 | "enum": [ |
| 79 | "cold", |
| 80 | "warm", |
| 81 | "hot", |
| 82 | "customer", |
| 83 | "inactive" |
| 84 | ], |
| 85 | "help": "Optional pipeline stage; blank until set, no default is forced", |
| 86 | "transitions": { |
| 87 | "cold": [ |
| 88 | "warm", |
| 89 | "hot", |
| 90 | "customer", |
| 91 | "inactive" |
| 92 | ], |
| 93 | "warm": [ |
| 94 | "cold", |
| 95 | "hot", |
| 96 | "customer", |
| 97 | "inactive" |
| 98 | ], |
| 99 | "hot": [ |
| 100 | "cold", |
| 101 | "warm", |
| 102 | "customer", |
| 103 | "inactive" |
| 104 | ], |
| 105 | "customer": [ |
| 106 | "cold", |
| 107 | "warm", |
| 108 | "hot", |
| 109 | "inactive" |
| 110 | ], |
| 111 | "inactive": [ |
| 112 | "cold", |
| 113 | "warm", |
| 114 | "hot", |
| 115 | "customer" |
| 116 | ] |
| 117 | } |
| 118 | }, |
| 119 | { |
| 120 | "name": "tags", |
| 121 | "type": "text", |
| 122 | "label": "Tags", |
| 123 | "help": "Comma-separated tag names" |
| 124 | }, |
| 125 | { |
| 126 | "name": "notes", |
| 127 | "type": "textarea", |
| 128 | "label": "Notes" |
| 129 | }, |
| 130 | { |
| 131 | "name": "created_at", |
| 132 | "type": "datetime", |
| 133 | "label": "Created", |
| 134 | "read_only": true |
| 135 | }, |
| 136 | { |
| 137 | "name": "owner_id", |
| 138 | "type": "text", |
| 139 | "label": "Owner" |
| 140 | } |
| 141 | ], |
| 142 | "forms": { |
| 143 | "default": { |
| 144 | "fields": [ |
| 145 | "first_name", |
| 146 | "last_name", |
| 147 | "email", |
| 148 | "phone", |
| 149 | "job_title", |
| 150 | "organization_id", |
| 151 | "project_id", |
| 152 | "lead_status", |
| 153 | "tags", |
| 154 | "notes" |
| 155 | ] |
| 156 | } |
| 157 | }, |
| 158 | "views": { |
| 159 | "list_mode": "board", |
| 160 | "list_fields": [ |
| 161 | "first_name", |
| 162 | "last_name", |
| 163 | "email", |
| 164 | "organization_id", |
| 165 | "lead_status" |
| 166 | ], |
| 167 | "detail_fields": [ |
| 168 | "first_name", |
| 169 | "last_name", |
| 170 | "email", |
| 171 | "phone", |
| 172 | "job_title", |
| 173 | "organization_id", |
| 174 | "project_id", |
| 175 | "lead_status", |
| 176 | "tags", |
| 177 | "notes" |
| 178 | ], |
| 179 | "related": [ |
| 180 | { |
| 181 | "collection": "interactions", |
| 182 | "fk_field": "contact_id" |
| 183 | } |
| 184 | ], |
| 185 | "filter_fields": [ |
| 186 | "lead_status" |
| 187 | ] |
| 188 | }, |
| 189 | "search": { |
| 190 | "fields": [ |
| 191 | "first_name", |
| 192 | "last_name", |
| 193 | "email", |
| 194 | "tags", |
| 195 | "notes" |
| 196 | ] |
| 197 | }, |
| 198 | "capabilities": { |
| 199 | "attachments": true |
| 200 | } |
| 201 | } |