Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
thread_comments.json · 2.4 KB · 121 lines
1{
2 "name": "thread_comments",
3 "title": "Comments",
4 "version": 2,
5 "storage": "append",
6 "description": "Generic discussion: one comment shape attachable to a record in any collection via parent_collection/parent_id. This is the thread block's data shape landed early -- no widget, config records, or moderation surfaces yet; the schema matches the full design so no re-migration is ever needed.",
7 "fields": [
8 {
9 "name": "id"
10 },
11 {
12 "name": "parent_collection",
13 "type": "text",
14 "required": true,
15 "label": "Parent collection"
16 },
17 {
18 "name": "parent_id",
19 "type": "text",
20 "required": true,
21 "label": "Parent record"
22 },
23 {
24 "name": "reply_to_id",
25 "type": "text",
26 "label": "In reply to",
27 "relation": {
28 "collection": "thread_comments",
29 "display_field": "body"
30 }
31 },
32 {
33 "name": "body",
34 "type": "textarea",
35 "required": true,
36 "label": "Comment",
37 "validation": {
38 "min_length": 1,
39 "max_length": 4000
40 }
41 },
42 {
43 "name": "owner_id",
44 "type": "text",
45 "label": "Author",
46 "permissions": {
47 "public": "hidden"
48 }
49 },
50 {
51 "name": "author_name",
52 "type": "text",
53 "label": "Name",
54 "validation": {
55 "max_length": 80
56 }
57 },
58 {
59 "name": "status",
60 "type": "enum",
61 "enum": [
62 "published",
63 "pending",
64 "flagged",
65 "removed"
66 ],
67 "default": "published",
68 "permissions": {
69 "public": "hidden",
70 "role:moderator": "edit"
71 },
72 "transitions": {
73 "published": [
74 "flagged",
75 "removed"
76 ],
77 "pending": [
78 "published",
79 "flagged",
80 "removed"
81 ],
82 "flagged": [
83 "published",
84 "removed"
85 ],
86 "removed": []
87 }
88 },
89 {
90 "name": "created_at",
91 "type": "datetime",
92 "label": "Created",
93 "read_only": true
94 },
95 {
96 "name": "edited_at",
97 "type": "datetime",
98 "label": "Edited",
99 "read_only": true
100 }
101 ],
102 "forms": {
103 "default": {
104 "fields": [
105 "body"
106 ]
107 }
108 },
109 "views": {
110 "list_mode": "cards",
111 "list_fields": [
112 "body",
113 "created_at"
114 ]
115 },
116 "search": {
117 "fields": [
118 "body"
119 ]
120 }
121}