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
files.json · 2.5 KB · 109 lines
1{
2 "name": "files",
3 "title": "Files",
4 "version": 3,
5 "description": "File metadata; bytes live outside collections and are served by /api/files/{id} under this record's visibility.",
6 "fields": [
7 {
8 "name": "id"
9 },
10 {
11 "name": "filename",
12 "type": "text",
13 "required": true,
14 "label": "Filename",
15 "validation": {
16 "min_length": 1,
17 "max_length": 255
18 }
19 },
20 {
21 "name": "content_type",
22 "type": "text",
23 "label": "Type"
24 },
25 {
26 "name": "size",
27 "type": "integer",
28 "label": "Size"
29 },
30 {
31 "name": "description",
32 "type": "text",
33 "label": "Description",
34 "validation": {
35 "max_length": 300
36 }
37 },
38 {
39 "name": "parent_collection",
40 "type": "text",
41 "label": "Attached to (collection)"
42 },
43 {
44 "name": "parent_id",
45 "type": "text",
46 "label": "Attached to (record)"
47 },
48 {
49 "name": "project_id",
50 "label": "Project",
51 "relation": {
52 "collection": "projects",
53 "display_field": "name"
54 }
55 },
56 {
57 "name": "task_id",
58 "label": "Task",
59 "relation": {
60 "collection": "tasks",
61 "display_field": "title"
62 },
63 "help": "Optional attachment link into app-tasks' tasks collection -- a soft reference only, like tasks.json's own template_id -> templates (no install-order dependency declared). Lets a task detail page compose its attached files via a plain 59 `related` block ({\"collection\": \"files\", \"fk_field\": \"task_id\"}) -- files have independent identity/lifecycle (uploaded, downloaded, shared on their own), so this is a true related child, not document-composition."
64 },
65 {
66 "name": "is_public",
67 "type": "boolean",
68 "label": "Public",
69 "default": "false",
70 "help": "Public files are downloadable by anyone with the link"
71 },
72 {
73 "name": "created_at",
74 "type": "datetime",
75 "read_only": true,
76 "label": "Created"
77 },
78 {
79 "name": "owner_id",
80 "type": "text",
81 "label": "Owner"
82 }
83 ],
84 "forms": {
85 "default": {
86 "fields": [
87 "filename",
88 "description",
89 "project_id",
90 "is_public"
91 ]
92 }
93 },
94 "views": {
95 "list_mode": "table",
96 "list_fields": [
97 "filename",
98 "size",
99 "content_type",
100 "is_public"
101 ]
102 },
103 "search": {
104 "fields": [
105 "filename",
106 "description"
107 ]
108 }
109}