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
notifications.json · 933 bytes · 45 lines
| 1 | { |
| 2 | "name": "notifications", |
| 3 | "title": "Notifications", |
| 4 | "version": 1, |
| 5 | "description": "Per-user notification records. Push arrives with the websocket slice; the storage and read/unread state live here now.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "user_id", |
| 12 | "type": "text", |
| 13 | "required": true, |
| 14 | "label": "User" |
| 15 | }, |
| 16 | { |
| 17 | "name": "kind", |
| 18 | "type": "text", |
| 19 | "label": "Kind", |
| 20 | "default": "info" |
| 21 | }, |
| 22 | { |
| 23 | "name": "body", |
| 24 | "type": "text", |
| 25 | "required": true, |
| 26 | "label": "Notification" |
| 27 | }, |
| 28 | { |
| 29 | "name": "target", |
| 30 | "type": "text", |
| 31 | "label": "Target", |
| 32 | "help": "collection/record_id the notification points at" |
| 33 | }, |
| 34 | { |
| 35 | "name": "is_read", |
| 36 | "type": "boolean", |
| 37 | "label": "Read", |
| 38 | "default": "false" |
| 39 | } |
| 40 | ], |
| 41 | "views": { |
| 42 | "list_mode": "feed", |
| 43 | "list_fields": ["kind", "body", "is_read"] |
| 44 | } |
| 45 | } |