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
message_recipients.json · 1.7 KB · 50 lines
| 1 | { |
| 2 | "name": "message_recipients", |
| 3 | "title": "Message Recipients", |
| 4 | "version": 1, |
| 5 | "description": "Normalized To/Cc/Bcc addressing for one message -- one row per address. A faithful port of a private predecessor-system audit's MessageRecipient model, not part of this repo: the source normalized recipients into their own table rather than flattening an address list onto Message, and this package follows that same split (see schemas/messages.json's description). No page in this package creates a message_recipients row directly in v1 -- addresses only ever get attached to a message by hand, by a seed, or by the deferred send/sync transport (see dbbasic-package.json's deferred list); forms.default is kept for schema-generator consistency, same posture as messages.json's own unused form.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "message_id", |
| 12 | "type": "relation", |
| 13 | "required": true, |
| 14 | "relation": {"collection": "messages", "display_field": "subject"}, |
| 15 | "label": "Message" |
| 16 | }, |
| 17 | { |
| 18 | "name": "kind", |
| 19 | "type": "enum", |
| 20 | "default": "to", |
| 21 | "enum": ["to", "cc", "bcc"], |
| 22 | "label": "Kind" |
| 23 | }, |
| 24 | { |
| 25 | "name": "address", |
| 26 | "type": "text", |
| 27 | "required": true, |
| 28 | "label": "Address", |
| 29 | "validation": {"max_length": 254} |
| 30 | }, |
| 31 | { |
| 32 | "name": "owner_id", |
| 33 | "type": "text", |
| 34 | "label": "Owner" |
| 35 | }, |
| 36 | { |
| 37 | "name": "created_at", |
| 38 | "type": "datetime", |
| 39 | "label": "Created", |
| 40 | "read_only": true |
| 41 | } |
| 42 | ], |
| 43 | "forms": { |
| 44 | "default": {"fields": ["message_id", "kind", "address"]} |
| 45 | }, |
| 46 | "views": { |
| 47 | "list_mode": "table", |
| 48 | "list_fields": ["address", "kind", "message_id"] |
| 49 | } |
| 50 | } |