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
forum_replies.json · 2.1 KB · 79 lines
1{
2 "name": "forum_replies",
3 "title": "Forum Replies",
4 "version": 2,
5 "storage": "classic",
6 "description": "Replies to a forum topic, with a self-referencing parent_id for threaded/nested replies -- a faithful port of the source model. \"storage\": \"classic\" (the default, spelled out here deliberately) rather than \"append\": unlike app-thread's thread_comments, forum replies are expected to be edited by their author after posting, which append-mode's docs/append-only-storage-design.md treats as a rewrite anyway -- classic storage matches that reality directly.",
7 "fields": [
8 {
9 "name": "id"
10 },
11 {
12 "name": "topic_id",
13 "type": "relation",
14 "required": true,
15 "relation": {
16 "collection": "forum_topics",
17 "display_field": "title"
18 },
19 "label": "Topic"
20 },
21 {
22 "name": "parent_id",
23 "type": "relation",
24 "relation": {
25 "collection": "forum_replies",
26 "display_field": "content"
27 },
28 "label": "In reply to",
29 "help": "Self-referencing parent for threaded/nested replies. Blank for a top-level reply to the topic itself."
30 },
31 {
32 "name": "content",
33 "type": "textarea",
34 "required": true,
35 "label": "Content",
36 "validation": {
37 "min_length": 1
38 }
39 },
40 {
41 "name": "is_solution",
42 "type": "boolean",
43 "default": "false",
44 "label": "Marked as Solution",
45 "help": "v1 posture: a reply's author can mark their own reply as the solution (owner-write, same as every other field here). A topic owner marking someone else's reply as the solution is cross-user moderation, deferred -- see dbbasic-package.json's deferred list."
46 },
47 {
48 "name": "owner_id",
49 "type": "text",
50 "label": "Owner"
51 },
52 {
53 "name": "created_at",
54 "type": "datetime",
55 "label": "Created",
56 "read_only": true
57 }
58 ],
59 "forms": {
60 "default": {
61 "fields": [
62 "topic_id",
63 "content"
64 ]
65 }
66 },
67 "views": {
68 "list_mode": "cards",
69 "list_fields": [
70 "content",
71 "created_at"
72 ]
73 },
74 "search": {
75 "fields": [
76 "content"
77 ]
78 }
79}