@dinoxx/dinox-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +294 -0
- package/dist/auth/userInfo.d.ts +14 -0
- package/dist/auth/userInfo.js +115 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +32 -0
- package/dist/cliTypes.d.ts +6 -0
- package/dist/cliTypes.js +1 -0
- package/dist/commands/auth/index.d.ts +2 -0
- package/dist/commands/auth/index.js +193 -0
- package/dist/commands/boxes/index.d.ts +2 -0
- package/dist/commands/boxes/index.js +107 -0
- package/dist/commands/boxes/repo.d.ts +21 -0
- package/dist/commands/boxes/repo.js +154 -0
- package/dist/commands/config/index.d.ts +2 -0
- package/dist/commands/config/index.js +67 -0
- package/dist/commands/info/index.d.ts +2 -0
- package/dist/commands/info/index.js +20 -0
- package/dist/commands/notes/index.d.ts +2 -0
- package/dist/commands/notes/index.js +271 -0
- package/dist/commands/notes/repo.d.ts +70 -0
- package/dist/commands/notes/repo.js +674 -0
- package/dist/commands/notes/searchTime.d.ts +9 -0
- package/dist/commands/notes/searchTime.js +85 -0
- package/dist/commands/prompt/index.d.ts +2 -0
- package/dist/commands/prompt/index.js +51 -0
- package/dist/commands/prompt/repo.d.ts +6 -0
- package/dist/commands/prompt/repo.js +18 -0
- package/dist/commands/sync.d.ts +2 -0
- package/dist/commands/sync.js +68 -0
- package/dist/commands/tags/index.d.ts +2 -0
- package/dist/commands/tags/index.js +120 -0
- package/dist/commands/tags/repo.d.ts +14 -0
- package/dist/commands/tags/repo.js +247 -0
- package/dist/config/keys.d.ts +9 -0
- package/dist/config/keys.js +17 -0
- package/dist/config/paths.d.ts +4 -0
- package/dist/config/paths.js +39 -0
- package/dist/config/resolve.d.ts +2 -0
- package/dist/config/resolve.js +56 -0
- package/dist/config/serviceEndpoints.d.ts +3 -0
- package/dist/config/serviceEndpoints.js +3 -0
- package/dist/config/store.d.ts +5 -0
- package/dist/config/store.js +87 -0
- package/dist/config/types.d.ts +51 -0
- package/dist/config/types.js +1 -0
- package/dist/dinox.d.ts +2 -0
- package/dist/dinox.js +50 -0
- package/dist/powersync/connector.d.ts +21 -0
- package/dist/powersync/connector.js +58 -0
- package/dist/powersync/runtime.d.ts +37 -0
- package/dist/powersync/runtime.js +107 -0
- package/dist/powersync/schema/content.d.ts +76 -0
- package/dist/powersync/schema/content.js +76 -0
- package/dist/powersync/schema/index.d.ts +371 -0
- package/dist/powersync/schema/index.js +35 -0
- package/dist/powersync/schema/local.d.ts +68 -0
- package/dist/powersync/schema/local.js +83 -0
- package/dist/powersync/schema/note.d.ts +34 -0
- package/dist/powersync/schema/note.js +34 -0
- package/dist/powersync/schema/notesExtras.d.ts +62 -0
- package/dist/powersync/schema/notesExtras.js +71 -0
- package/dist/powersync/schema/projects.d.ts +101 -0
- package/dist/powersync/schema/projects.js +101 -0
- package/dist/powersync/schema/tags.d.ts +37 -0
- package/dist/powersync/schema/tags.js +37 -0
- package/dist/powersync/tokenIndex.d.ts +17 -0
- package/dist/powersync/tokenIndex.js +202 -0
- package/dist/powersync/uploader.d.ts +7 -0
- package/dist/powersync/uploader.js +134 -0
- package/dist/utils/argValue.d.ts +1 -0
- package/dist/utils/argValue.js +17 -0
- package/dist/utils/errors.d.ts +10 -0
- package/dist/utils/errors.js +17 -0
- package/dist/utils/id.d.ts +1 -0
- package/dist/utils/id.js +4 -0
- package/dist/utils/output.d.ts +2 -0
- package/dist/utils/output.js +10 -0
- package/dist/utils/redact.d.ts +1 -0
- package/dist/utils/redact.js +10 -0
- package/dist/utils/text.d.ts +1 -0
- package/dist/utils/text.js +35 -0
- package/dist/utils/time.d.ts +1 -0
- package/dist/utils/time.js +3 -0
- package/dist/utils/tiptapMarkdown.d.ts +6 -0
- package/dist/utils/tiptapMarkdown.js +149 -0
- package/dist/utils/tokenize.d.ts +1 -0
- package/dist/utils/tokenize.js +56 -0
- package/dist/utils/version.d.ts +1 -0
- package/dist/utils/version.js +21 -0
- package/package.json +63 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { column, Table } from '@powersync/common';
|
|
2
|
+
export const c_card_box = new Table({
|
|
3
|
+
id: column.text,
|
|
4
|
+
name: column.text,
|
|
5
|
+
type: column.text,
|
|
6
|
+
cover_url: column.text,
|
|
7
|
+
prompt: column.text,
|
|
8
|
+
headers: column.text,
|
|
9
|
+
priority: column.integer,
|
|
10
|
+
created_at: column.text,
|
|
11
|
+
updated_at: column.text,
|
|
12
|
+
extra_data: column.text,
|
|
13
|
+
user_no: column.text,
|
|
14
|
+
is_del: column.integer,
|
|
15
|
+
template_id: column.text,
|
|
16
|
+
});
|
|
17
|
+
export const c_card_note = new Table({
|
|
18
|
+
id: column.text,
|
|
19
|
+
box_id: column.text,
|
|
20
|
+
content: column.text,
|
|
21
|
+
created_at: column.text,
|
|
22
|
+
updated_at: column.text,
|
|
23
|
+
extra_data: column.text,
|
|
24
|
+
user_no: column.text,
|
|
25
|
+
is_del: column.integer,
|
|
26
|
+
origin_note_id: column.text,
|
|
27
|
+
origin_type: column.text,
|
|
28
|
+
output_type: column.text,
|
|
29
|
+
is_array: column.integer,
|
|
30
|
+
});
|
|
31
|
+
export const c_cmd = new Table({
|
|
32
|
+
id: column.text,
|
|
33
|
+
zone: column.text,
|
|
34
|
+
type: column.text,
|
|
35
|
+
cmd: column.text,
|
|
36
|
+
name: column.text,
|
|
37
|
+
priority: column.integer,
|
|
38
|
+
is_show: column.integer,
|
|
39
|
+
description: column.text,
|
|
40
|
+
extra_data: column.text,
|
|
41
|
+
user_id: column.text,
|
|
42
|
+
insert_at: column.text,
|
|
43
|
+
update_at: column.text,
|
|
44
|
+
is_del: column.integer,
|
|
45
|
+
template_id: column.text,
|
|
46
|
+
meta_data: column.text,
|
|
47
|
+
output: column.text,
|
|
48
|
+
output_param: column.text,
|
|
49
|
+
category: column.text,
|
|
50
|
+
});
|
|
51
|
+
export const c_note_template = new Table({
|
|
52
|
+
id: column.text,
|
|
53
|
+
content: column.text,
|
|
54
|
+
name: column.text,
|
|
55
|
+
priority: column.integer,
|
|
56
|
+
is_show: column.integer,
|
|
57
|
+
extra_data: column.text,
|
|
58
|
+
user_id: column.text,
|
|
59
|
+
insert_at: column.text,
|
|
60
|
+
update_at: column.text,
|
|
61
|
+
is_del: column.integer,
|
|
62
|
+
});
|
|
63
|
+
export const c_zettel_box = new Table({
|
|
64
|
+
id: column.text,
|
|
65
|
+
name: column.text,
|
|
66
|
+
description: column.text,
|
|
67
|
+
color: column.text,
|
|
68
|
+
priority: column.integer,
|
|
69
|
+
is_show: column.integer,
|
|
70
|
+
cover_url: column.text,
|
|
71
|
+
created_at: column.text,
|
|
72
|
+
updated_at: column.text,
|
|
73
|
+
extra_data: column.text,
|
|
74
|
+
user_no: column.text,
|
|
75
|
+
is_del: column.integer,
|
|
76
|
+
});
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { Schema } from '@powersync/common';
|
|
2
|
+
export declare const AppSchema: Schema<{
|
|
3
|
+
c_local_config: import("@powersync/common").Table<{
|
|
4
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
5
|
+
local_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
6
|
+
local_value: import("@powersync/common").BaseColumnType<string | null>;
|
|
7
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
8
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
9
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
10
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
11
|
+
}>;
|
|
12
|
+
app_local_store: import("@powersync/common").Table<{
|
|
13
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
14
|
+
namespace: import("@powersync/common").BaseColumnType<string | null>;
|
|
15
|
+
key: import("@powersync/common").BaseColumnType<string | null>;
|
|
16
|
+
value: import("@powersync/common").BaseColumnType<string | null>;
|
|
17
|
+
value_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
18
|
+
expires_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
19
|
+
metadata: import("@powersync/common").BaseColumnType<string | null>;
|
|
20
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
21
|
+
}>;
|
|
22
|
+
c_config_property: import("@powersync/common").Table<{
|
|
23
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
24
|
+
c_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
25
|
+
c_value: import("@powersync/common").BaseColumnType<string | null>;
|
|
26
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
27
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
28
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
29
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
30
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
31
|
+
}>;
|
|
32
|
+
c_note: import("@powersync/common").Table<{
|
|
33
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
34
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
35
|
+
audios: import("@powersync/common").BaseColumnType<string | null>;
|
|
36
|
+
images: import("@powersync/common").BaseColumnType<string | null>;
|
|
37
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
38
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
39
|
+
title: import("@powersync/common").BaseColumnType<string | null>;
|
|
40
|
+
type: import("@powersync/common").BaseColumnType<string | null>;
|
|
41
|
+
audio_detail: import("@powersync/common").BaseColumnType<string | null>;
|
|
42
|
+
image_detail: import("@powersync/common").BaseColumnType<string | null>;
|
|
43
|
+
source: import("@powersync/common").BaseColumnType<string | null>;
|
|
44
|
+
resource_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
45
|
+
note_ids: import("@powersync/common").BaseColumnType<string | null>;
|
|
46
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
47
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
48
|
+
user_no: import("@powersync/common").BaseColumnType<string | null>;
|
|
49
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
50
|
+
content_json: import("@powersync/common").BaseColumnType<string | null>;
|
|
51
|
+
content_text: import("@powersync/common").BaseColumnType<string | null>;
|
|
52
|
+
content_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
53
|
+
format_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
54
|
+
zettel_boxes: import("@powersync/common").BaseColumnType<string | null>;
|
|
55
|
+
status: import("@powersync/common").BaseColumnType<number | null>;
|
|
56
|
+
comments: import("@powersync/common").BaseColumnType<string | null>;
|
|
57
|
+
is_top: import("@powersync/common").BaseColumnType<number | null>;
|
|
58
|
+
pinned_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
59
|
+
chat_context: import("@powersync/common").BaseColumnType<string | null>;
|
|
60
|
+
bid_links: import("@powersync/common").BaseColumnType<string | null>;
|
|
61
|
+
version: import("@powersync/common").BaseColumnType<number | null>;
|
|
62
|
+
files: import("@powersync/common").BaseColumnType<string | null>;
|
|
63
|
+
summary: import("@powersync/common").BaseColumnType<string | null>;
|
|
64
|
+
}>;
|
|
65
|
+
c_note_embed: import("@powersync/common").Table<{
|
|
66
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
67
|
+
note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
68
|
+
type: import("@powersync/common").BaseColumnType<number | null>;
|
|
69
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
70
|
+
chunk_index: import("@powersync/common").BaseColumnType<number | null>;
|
|
71
|
+
zettelbox_ids: import("@powersync/common").BaseColumnType<string | null>;
|
|
72
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
73
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
74
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
75
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
76
|
+
}>;
|
|
77
|
+
c_note_history: import("@powersync/common").Table<{
|
|
78
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
79
|
+
note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
80
|
+
version: import("@powersync/common").BaseColumnType<number | null>;
|
|
81
|
+
title: import("@powersync/common").BaseColumnType<string | null>;
|
|
82
|
+
content_html: import("@powersync/common").BaseColumnType<string | null>;
|
|
83
|
+
content_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
84
|
+
content_json: import("@powersync/common").BaseColumnType<string | null>;
|
|
85
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
86
|
+
zettel_boxes: import("@powersync/common").BaseColumnType<string | null>;
|
|
87
|
+
content_hash: import("@powersync/common").BaseColumnType<string | null>;
|
|
88
|
+
source: import("@powersync/common").BaseColumnType<string | null>;
|
|
89
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
90
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
91
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
92
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
93
|
+
}>;
|
|
94
|
+
note_local_history: import("@powersync/common").Table<{
|
|
95
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
96
|
+
note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
97
|
+
title: import("@powersync/common").BaseColumnType<string | null>;
|
|
98
|
+
content_json: import("@powersync/common").BaseColumnType<string | null>;
|
|
99
|
+
content_text: import("@powersync/common").BaseColumnType<string | null>;
|
|
100
|
+
content_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
101
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
102
|
+
zettel_boxes: import("@powersync/common").BaseColumnType<string | null>;
|
|
103
|
+
images: import("@powersync/common").BaseColumnType<string | null>;
|
|
104
|
+
snapshot_reason: import("@powersync/common").BaseColumnType<string | null>;
|
|
105
|
+
snapshot_hash: import("@powersync/common").BaseColumnType<string | null>;
|
|
106
|
+
client_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
107
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
108
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
109
|
+
expires_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
110
|
+
restored_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
111
|
+
meta: import("@powersync/common").BaseColumnType<string | null>;
|
|
112
|
+
}>;
|
|
113
|
+
c_note_link: import("@powersync/common").Table<{
|
|
114
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
115
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
116
|
+
src_note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
117
|
+
src_block_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
118
|
+
dst_note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
119
|
+
dst_block_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
120
|
+
relation: import("@powersync/common").BaseColumnType<string | null>;
|
|
121
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
122
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
123
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
124
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
125
|
+
}>;
|
|
126
|
+
c_card_box: import("@powersync/common").Table<{
|
|
127
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
128
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
129
|
+
type: import("@powersync/common").BaseColumnType<string | null>;
|
|
130
|
+
cover_url: import("@powersync/common").BaseColumnType<string | null>;
|
|
131
|
+
prompt: import("@powersync/common").BaseColumnType<string | null>;
|
|
132
|
+
headers: import("@powersync/common").BaseColumnType<string | null>;
|
|
133
|
+
priority: import("@powersync/common").BaseColumnType<number | null>;
|
|
134
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
135
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
136
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
137
|
+
user_no: import("@powersync/common").BaseColumnType<string | null>;
|
|
138
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
139
|
+
template_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
140
|
+
}>;
|
|
141
|
+
c_card_note: import("@powersync/common").Table<{
|
|
142
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
143
|
+
box_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
144
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
145
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
146
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
147
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
148
|
+
user_no: import("@powersync/common").BaseColumnType<string | null>;
|
|
149
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
150
|
+
origin_note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
151
|
+
origin_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
152
|
+
output_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
153
|
+
is_array: import("@powersync/common").BaseColumnType<number | null>;
|
|
154
|
+
}>;
|
|
155
|
+
c_cmd: import("@powersync/common").Table<{
|
|
156
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
157
|
+
zone: import("@powersync/common").BaseColumnType<string | null>;
|
|
158
|
+
type: import("@powersync/common").BaseColumnType<string | null>;
|
|
159
|
+
cmd: import("@powersync/common").BaseColumnType<string | null>;
|
|
160
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
161
|
+
priority: import("@powersync/common").BaseColumnType<number | null>;
|
|
162
|
+
is_show: import("@powersync/common").BaseColumnType<number | null>;
|
|
163
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
164
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
165
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
166
|
+
insert_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
167
|
+
update_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
168
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
169
|
+
template_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
170
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
171
|
+
output: import("@powersync/common").BaseColumnType<string | null>;
|
|
172
|
+
output_param: import("@powersync/common").BaseColumnType<string | null>;
|
|
173
|
+
category: import("@powersync/common").BaseColumnType<string | null>;
|
|
174
|
+
}>;
|
|
175
|
+
c_note_template: import("@powersync/common").Table<{
|
|
176
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
177
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
178
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
179
|
+
priority: import("@powersync/common").BaseColumnType<number | null>;
|
|
180
|
+
is_show: import("@powersync/common").BaseColumnType<number | null>;
|
|
181
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
182
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
183
|
+
insert_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
184
|
+
update_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
185
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
186
|
+
}>;
|
|
187
|
+
c_tag: import("@powersync/common").Table<{
|
|
188
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
189
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
190
|
+
insert_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
191
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
192
|
+
update_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
193
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
194
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
195
|
+
favorite_tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
196
|
+
}>;
|
|
197
|
+
c_tag_node: import("@powersync/common").Table<{
|
|
198
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
199
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
200
|
+
emoji: import("@powersync/common").BaseColumnType<string | null>;
|
|
201
|
+
full_path: import("@powersync/common").BaseColumnType<string | null>;
|
|
202
|
+
path_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
203
|
+
parent_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
204
|
+
depth: import("@powersync/common").BaseColumnType<number | null>;
|
|
205
|
+
is_actual: import("@powersync/common").BaseColumnType<number | null>;
|
|
206
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
207
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
208
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
209
|
+
meta: import("@powersync/common").BaseColumnType<string | null>;
|
|
210
|
+
}>;
|
|
211
|
+
c_tag_preference: import("@powersync/common").Table<{
|
|
212
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
213
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
214
|
+
tag_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
215
|
+
is_favorite: import("@powersync/common").BaseColumnType<number | null>;
|
|
216
|
+
is_expanded: import("@powersync/common").BaseColumnType<number | null>;
|
|
217
|
+
pinned_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
218
|
+
sort_rank: import("@powersync/common").BaseColumnType<number | null>;
|
|
219
|
+
pinned_rank: import("@powersync/common").BaseColumnType<number | null>;
|
|
220
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
221
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
222
|
+
}>;
|
|
223
|
+
c_user_config: import("@powersync/common").Table<{
|
|
224
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
225
|
+
config: import("@powersync/common").BaseColumnType<string | null>;
|
|
226
|
+
memory: import("@powersync/common").BaseColumnType<string | null>;
|
|
227
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
228
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
229
|
+
hot_words: import("@powersync/common").BaseColumnType<string | null>;
|
|
230
|
+
}>;
|
|
231
|
+
c_zettel_box: import("@powersync/common").Table<{
|
|
232
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
233
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
234
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
235
|
+
color: import("@powersync/common").BaseColumnType<string | null>;
|
|
236
|
+
priority: import("@powersync/common").BaseColumnType<number | null>;
|
|
237
|
+
is_show: import("@powersync/common").BaseColumnType<number | null>;
|
|
238
|
+
cover_url: import("@powersync/common").BaseColumnType<string | null>;
|
|
239
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
240
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
241
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
242
|
+
user_no: import("@powersync/common").BaseColumnType<string | null>;
|
|
243
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
244
|
+
}>;
|
|
245
|
+
c_project: import("@powersync/common").Table<{
|
|
246
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
247
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
248
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
249
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
250
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
251
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
252
|
+
agent_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
253
|
+
memory: import("@powersync/common").BaseColumnType<string | null>;
|
|
254
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
255
|
+
priority: import("@powersync/common").BaseColumnType<number | null>;
|
|
256
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
257
|
+
is_default: import("@powersync/common").BaseColumnType<number | null>;
|
|
258
|
+
}>;
|
|
259
|
+
c_project_board: import("@powersync/common").Table<{
|
|
260
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
261
|
+
project_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
262
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
263
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
264
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
265
|
+
board_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
266
|
+
canvas_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
267
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
268
|
+
schema_version: import("@powersync/common").BaseColumnType<string | null>;
|
|
269
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
270
|
+
}>;
|
|
271
|
+
c_project_item: import("@powersync/common").Table<{
|
|
272
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
273
|
+
project_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
274
|
+
kind: import("@powersync/common").BaseColumnType<string | null>;
|
|
275
|
+
ref_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
276
|
+
rank: import("@powersync/common").BaseColumnType<number | null>;
|
|
277
|
+
is_check: import("@powersync/common").BaseColumnType<number | null>;
|
|
278
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
279
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
280
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
281
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
282
|
+
payload: import("@powersync/common").BaseColumnType<string | null>;
|
|
283
|
+
pinned_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
284
|
+
dedupe_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
285
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
286
|
+
}>;
|
|
287
|
+
c_thread: import("@powersync/common").Table<{
|
|
288
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
289
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
290
|
+
messages: import("@powersync/common").BaseColumnType<string | null>;
|
|
291
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
292
|
+
project_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
293
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
294
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
295
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
296
|
+
cmd_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
297
|
+
filter_condition: import("@powersync/common").BaseColumnType<string | null>;
|
|
298
|
+
config: import("@powersync/common").BaseColumnType<string | null>;
|
|
299
|
+
snapshot: import("@powersync/common").BaseColumnType<string | null>;
|
|
300
|
+
memory: import("@powersync/common").BaseColumnType<string | null>;
|
|
301
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
302
|
+
}>;
|
|
303
|
+
c_chat_message: import("@powersync/common").Table<{
|
|
304
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
305
|
+
role: import("@powersync/common").BaseColumnType<string | null>;
|
|
306
|
+
type: import("@powersync/common").BaseColumnType<string | null>;
|
|
307
|
+
source_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
308
|
+
parent_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
309
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
310
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
311
|
+
deleted_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
312
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
313
|
+
version: import("@powersync/common").BaseColumnType<string | null>;
|
|
314
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
315
|
+
}>;
|
|
316
|
+
c_resource: import("@powersync/common").Table<{
|
|
317
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
318
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
319
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
320
|
+
mime_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
321
|
+
size_bytes: import("@powersync/common").BaseColumnType<number | null>;
|
|
322
|
+
storage_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
323
|
+
storage_url: import("@powersync/common").BaseColumnType<string | null>;
|
|
324
|
+
storage_provider: import("@powersync/common").BaseColumnType<string | null>;
|
|
325
|
+
bucket: import("@powersync/common").BaseColumnType<string | null>;
|
|
326
|
+
is_public: import("@powersync/common").BaseColumnType<number | null>;
|
|
327
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
328
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
329
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
330
|
+
status: import("@powersync/common").BaseColumnType<string | null>;
|
|
331
|
+
uploaded_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
332
|
+
etag: import("@powersync/common").BaseColumnType<string | null>;
|
|
333
|
+
checksum: import("@powersync/common").BaseColumnType<string | null>;
|
|
334
|
+
category: import("@powersync/common").BaseColumnType<string | null>;
|
|
335
|
+
width: import("@powersync/common").BaseColumnType<number | null>;
|
|
336
|
+
height: import("@powersync/common").BaseColumnType<number | null>;
|
|
337
|
+
duration: import("@powersync/common").BaseColumnType<number | null>;
|
|
338
|
+
endpoint: import("@powersync/common").BaseColumnType<string | null>;
|
|
339
|
+
domain: import("@powersync/common").BaseColumnType<string | null>;
|
|
340
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
341
|
+
deleted_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
342
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
343
|
+
summary: import("@powersync/common").BaseColumnType<string | null>;
|
|
344
|
+
}>;
|
|
345
|
+
c_user_config_advanced: import("@powersync/common").Table<{
|
|
346
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
347
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
348
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
349
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
350
|
+
s3_config: import("@powersync/common").BaseColumnType<string | null>;
|
|
351
|
+
global_memory_config: import("@powersync/common").BaseColumnType<string | null>;
|
|
352
|
+
mcp_servers: import("@powersync/common").BaseColumnType<string | null>;
|
|
353
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
354
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
355
|
+
}>;
|
|
356
|
+
note_local_index_meta: import("@powersync/common").Table<{
|
|
357
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
358
|
+
source_hash: import("@powersync/common").BaseColumnType<string | null>;
|
|
359
|
+
indexed_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
360
|
+
note_updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
361
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
362
|
+
}>;
|
|
363
|
+
note_local_index_state: import("@powersync/common").Table<{
|
|
364
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
365
|
+
cursor_updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
366
|
+
cursor_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
367
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
368
|
+
}>;
|
|
369
|
+
}>;
|
|
370
|
+
export type Database = (typeof AppSchema)['types'];
|
|
371
|
+
export type CNoteRecord = Database['c_note'];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Schema } from '@powersync/common';
|
|
2
|
+
import { c_note } from './note.js';
|
|
3
|
+
import { c_note_embed, c_note_history, c_note_link, note_local_history } from './notesExtras.js';
|
|
4
|
+
import { c_card_box, c_card_note, c_cmd, c_note_template, c_zettel_box } from './content.js';
|
|
5
|
+
import { c_local_config, app_local_store, c_config_property, c_user_config, c_user_config_advanced, note_local_index_meta, note_local_index_state, } from './local.js';
|
|
6
|
+
import { c_project, c_project_board, c_project_item, c_thread, c_chat_message, c_resource } from './projects.js';
|
|
7
|
+
import { c_tag, c_tag_node, c_tag_preference } from './tags.js';
|
|
8
|
+
export const AppSchema = new Schema({
|
|
9
|
+
c_local_config,
|
|
10
|
+
app_local_store,
|
|
11
|
+
c_config_property,
|
|
12
|
+
c_note,
|
|
13
|
+
c_note_embed,
|
|
14
|
+
c_note_history,
|
|
15
|
+
note_local_history,
|
|
16
|
+
c_note_link,
|
|
17
|
+
c_card_box,
|
|
18
|
+
c_card_note,
|
|
19
|
+
c_cmd,
|
|
20
|
+
c_note_template,
|
|
21
|
+
c_tag,
|
|
22
|
+
c_tag_node,
|
|
23
|
+
c_tag_preference,
|
|
24
|
+
c_user_config,
|
|
25
|
+
c_zettel_box,
|
|
26
|
+
c_project,
|
|
27
|
+
c_project_board,
|
|
28
|
+
c_project_item,
|
|
29
|
+
c_thread,
|
|
30
|
+
c_chat_message,
|
|
31
|
+
c_resource,
|
|
32
|
+
c_user_config_advanced,
|
|
33
|
+
note_local_index_meta,
|
|
34
|
+
note_local_index_state,
|
|
35
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Table } from '@powersync/common';
|
|
2
|
+
export declare const c_local_config: Table<{
|
|
3
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
4
|
+
local_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
5
|
+
local_value: import("@powersync/common").BaseColumnType<string | null>;
|
|
6
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
7
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
8
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
9
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const app_local_store: Table<{
|
|
12
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
13
|
+
namespace: import("@powersync/common").BaseColumnType<string | null>;
|
|
14
|
+
key: import("@powersync/common").BaseColumnType<string | null>;
|
|
15
|
+
value: import("@powersync/common").BaseColumnType<string | null>;
|
|
16
|
+
value_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
17
|
+
expires_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
18
|
+
metadata: import("@powersync/common").BaseColumnType<string | null>;
|
|
19
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const c_config_property: Table<{
|
|
22
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
23
|
+
c_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
24
|
+
c_value: import("@powersync/common").BaseColumnType<string | null>;
|
|
25
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
26
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
27
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
28
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
29
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const c_user_config: Table<{
|
|
32
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
33
|
+
config: import("@powersync/common").BaseColumnType<string | null>;
|
|
34
|
+
memory: import("@powersync/common").BaseColumnType<string | null>;
|
|
35
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
36
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
37
|
+
hot_words: import("@powersync/common").BaseColumnType<string | null>;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const c_user_config_advanced: Table<{
|
|
40
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
41
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
42
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
43
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
44
|
+
s3_config: import("@powersync/common").BaseColumnType<string | null>;
|
|
45
|
+
global_memory_config: import("@powersync/common").BaseColumnType<string | null>;
|
|
46
|
+
mcp_servers: import("@powersync/common").BaseColumnType<string | null>;
|
|
47
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
48
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Per-note index metadata used for incremental updates.
|
|
52
|
+
*/
|
|
53
|
+
export declare const note_local_index_meta: Table<{
|
|
54
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
55
|
+
source_hash: import("@powersync/common").BaseColumnType<string | null>;
|
|
56
|
+
indexed_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
57
|
+
note_updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
58
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Cursor state for incremental scanning.
|
|
62
|
+
*/
|
|
63
|
+
export declare const note_local_index_state: Table<{
|
|
64
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
65
|
+
cursor_updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
66
|
+
cursor_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
67
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
68
|
+
}>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { column, Table } from '@powersync/common';
|
|
2
|
+
export const c_local_config = new Table({
|
|
3
|
+
id: column.text,
|
|
4
|
+
local_key: column.text,
|
|
5
|
+
local_value: column.text,
|
|
6
|
+
created_at: column.text,
|
|
7
|
+
updated_at: column.text,
|
|
8
|
+
is_del: column.integer,
|
|
9
|
+
description: column.text,
|
|
10
|
+
}, {
|
|
11
|
+
localOnly: true,
|
|
12
|
+
});
|
|
13
|
+
export const app_local_store = new Table({
|
|
14
|
+
id: column.text,
|
|
15
|
+
namespace: column.text,
|
|
16
|
+
key: column.text,
|
|
17
|
+
value: column.text,
|
|
18
|
+
value_type: column.text,
|
|
19
|
+
expires_at: column.text,
|
|
20
|
+
metadata: column.text,
|
|
21
|
+
updated_at: column.text,
|
|
22
|
+
}, {
|
|
23
|
+
localOnly: true,
|
|
24
|
+
});
|
|
25
|
+
export const c_config_property = new Table({
|
|
26
|
+
id: column.text,
|
|
27
|
+
c_key: column.text,
|
|
28
|
+
c_value: column.text,
|
|
29
|
+
created_at: column.text,
|
|
30
|
+
updated_at: column.text,
|
|
31
|
+
is_del: column.integer,
|
|
32
|
+
user_id: column.text,
|
|
33
|
+
description: column.text,
|
|
34
|
+
});
|
|
35
|
+
export const c_user_config = new Table({
|
|
36
|
+
id: column.text,
|
|
37
|
+
config: column.text,
|
|
38
|
+
memory: column.text,
|
|
39
|
+
extra_data: column.text,
|
|
40
|
+
is_del: column.integer,
|
|
41
|
+
hot_words: column.text,
|
|
42
|
+
});
|
|
43
|
+
export const c_user_config_advanced = new Table({
|
|
44
|
+
id: column.text,
|
|
45
|
+
created_at: column.text,
|
|
46
|
+
updated_at: column.text,
|
|
47
|
+
extra_data: column.text,
|
|
48
|
+
s3_config: column.text,
|
|
49
|
+
global_memory_config: column.text,
|
|
50
|
+
mcp_servers: column.text,
|
|
51
|
+
is_del: column.integer,
|
|
52
|
+
user_id: column.text,
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* Per-note index metadata used for incremental updates.
|
|
56
|
+
*/
|
|
57
|
+
export const note_local_index_meta = new Table({
|
|
58
|
+
id: column.text,
|
|
59
|
+
source_hash: column.text,
|
|
60
|
+
indexed_at: column.text,
|
|
61
|
+
note_updated_at: column.text,
|
|
62
|
+
is_del: column.integer,
|
|
63
|
+
}, {
|
|
64
|
+
localOnly: true,
|
|
65
|
+
indexes: {
|
|
66
|
+
index_meta_id: ['id'],
|
|
67
|
+
index_meta_updated: ['note_updated_at', 'id'],
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* Cursor state for incremental scanning.
|
|
72
|
+
*/
|
|
73
|
+
export const note_local_index_state = new Table({
|
|
74
|
+
id: column.text,
|
|
75
|
+
cursor_updated_at: column.text,
|
|
76
|
+
cursor_id: column.text,
|
|
77
|
+
updated_at: column.text,
|
|
78
|
+
}, {
|
|
79
|
+
localOnly: true,
|
|
80
|
+
indexes: {
|
|
81
|
+
index_state_id: ['id'],
|
|
82
|
+
},
|
|
83
|
+
});
|