1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
7� -� ���i����>q���(� ���i����;�-$�YSQLite format 3 @ * .��
� � ��Wj�;
�
�� l���7�R��� � r11�table_fts5_probe_config_fts5_probe_configCREATE TABLE '_fts5_probe_config'(k PRIMARY KEY, v) WITHOUT ROWIDv33�table_fts5_probe_docsize_fts5_probe_docsizeCREATE TABLE '_fts5_probe_docsize'(id INTEGER PRIMARY KEY, sz BLOB)q33� table_fts5_probe_content_fts5_probe_contentCREATE TABLE '_fts5_probe_content'(id INTEGER PRIMARY KEY, c0)�++�?table_fts5_probe_idx_fts5_probe_idxCREATE TABLE '_fts5_probe_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWIDp--�table_fts5_probe_data_fts5_probe_dataCREATE TABLE '_fts5_probe_data'(id INTEGER PRIMARY KEY, block BLOB)V##wtable_fts5_probe_fts5_probeCREATE VIRTUAL TABLE _fts5_probe USING fts5(test_col)xC%�indexidx_observations_created_atobservationsCREATE INDEX idx_observations_created_at ON observations(created_at)i9%�indexidx_observations_topicobservationsCREATE INDEX idx_observations_topic ON observations(topic)e7%}indexidx_observations_typeobservations
CREATE INDEX idx_observations_type ON observations(type)xC%�indexidx_observations_session_idobservationsCREATE INDEX idx_observations_session_id ON observations(session_id)�;%�3triggerobservations_fts_updateobservationsCREATE TRIGGER observations_fts_update
AFTER UPDATE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�
;%�Itriggerobservations_fts_deleteobservationsCREATE TRIGGER observations_fts_delete
AFTER DELETE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
END�s;%�triggerobservations_fts_insertobservationsCREATE TRIGGER observations_fts_insert
AFTER INSERT ON observations BEGIN
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�B
�_tabletopicstopics
CREATE TABLE topics (
topic TEXT PRIMARY KEY,
observation_count INTEGER NOT NULL DEFAULT 0,
last_activity TEXT NOT NULL,
summary TEXT
)+? indexsqlite_autoindex_topics_1topics� ;;�tableobservations_fts_configobservations_fts_config CREATE TABLE 'observations_fts_config'(k PRIMARY KEY, v) WITHOUT ROWID�==�tableobservations_fts_docsizeobservations_fts_docsizeCREATE TABLE 'observations_fts_docsize'(id INTEGER PRIMARY KEY, sz BLOB)�55�Itableobservations_fts_idxobservations_fts_idxCREATE TABLE 'observations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID77�tableobservations_fts_dataobservations_fts_dataCREATE TABLE 'observations_fts_data'(id INTEGER PRIMARY KEY, block BLOB)�+--�tableobservations_ftsobservations_ftsCREATE VIRTUAL TABLE observations_fts USING fts5(
title,
content,
topic,
content='observations',
content_rowid='id'
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�%%�stableobservationsobservationsCREATE TABLE observations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL,
type TEXT NOT NULL CHECK(type IN ('decision', 'discovery', 'error_fix', 'preference', 'architecture', 'context')),
topic TEXT NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
importance INTEGER NOT NULL DEFAULT 5 CHECK(importance BETWEEN 1 AND 10),
tags TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
accessed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
)7K% indexsqlite_autoindex_observations_1observations f))�tableschema_versionschema_versionCREATE TABLE schema_version (
version INTEGER PRIMARY KEY
) ���i�����h�̜��
� �
version ���i����F�����
� ��
���i�����%��CJ�
���i����R�H��)
���i����N�����|
���i����O]��ZX�uSQLite format 3 @ + .��
� R ��Wj�;
�
�� l���7�R� � � � � r11�table_fts5_probe_config_fts5_probe_configCREATE TABLE '_fts5_probe_config'(k PRIMARY KEY, v) WITHOUT ROWIDv33�table_fts5_probe_docsize_fts5_probe_docsizeCREATE TABLE '_fts5_probe_docsize'(id INTEGER PRIMARY KEY, sz BLOB)q33� table_fts5_probe_content_fts5_probe_contentCREATE TABLE '_fts5_probe_content'(id INTEGER PRIMARY KEY, c0)�Q++�?table_fts5_probe_idx_fts5_probe_idxCREATE TABLE '_fts5_probe_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID� �--�table_fts5_probe_data_fts5_probe_dataCREATE TABLE '_fts5_probe_data'(id INTEGER PRIMARY KEY, block BLOB)� X##wtable_fts5_probe_fts5_probeCREATE VIRTUAL TABLE _fts5_probe USING fts5(test_col)xC%�indexidx_observations_created_atobservationsCREATE INDEX idx_observations_created_at ON observations(created_at)i9%�indexidx_observations_topicobservationsCREATE INDEX idx_observations_topic ON observations(topic)e7%}indexidx_observations_typeobservations
CREATE INDEX idx_observations_type ON observations(type)xC%�indexidx_observations_session_idobservationsCREATE INDEX idx_observations_session_id ON observations(session_id)�;%�3triggerobservations_fts_updateobservationsCREATE TRIGGER observations_fts_update
AFTER UPDATE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�
;%�Itriggerobservations_fts_deleteobservationsCREATE TRIGGER observations_fts_delete
AFTER DELETE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
END�s;%�triggerobservations_fts_insertobservationsCREATE TRIGGER observations_fts_insert
AFTER INSERT ON observations BEGIN
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�B
�_tabletopicstopics
CREATE TABLE topics (
topic TEXT PRIMARY KEY,
observation_count INTEGER NOT NULL DEFAULT 0,
last_activity TEXT NOT NULL,
summary TEXT
)+? indexsqlite_autoindex_topics_1topics� ;;�tableobservations_fts_configobservations_fts_config CREATE TABLE 'observations_fts_config'(k PRIMARY KEY, v) WITHOUT ROWID�==�tableobservations_fts_docsizeobservations_fts_docsizeCREATE TABLE 'observations_fts_docsize'(id INTEGER PRIMARY KEY, sz BLOB)�55�Itableobservations_fts_idxobservations_fts_idxCREATE TABLE 'observations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID77�tableobservations_fts_dataobservations_fts_dataCREATE TABLE 'observations_fts_data'(id INTEGER PRIMARY KEY, block BLOB)�+--�tableobservations_ftsobservations_ftsCREATE VIRTUAL TABLE observations_fts USING fts5(
title,
content,
topic,
content='observations',
content_rowid='id'
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�%%�stableobservationsobservationsCREATE TABLE observations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL,
type TEXT NOT NULL CHECK(type IN ('decision', 'discovery', 'error_fix', 'preference', 'architecture', 'context')),
topic TEXT NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
importance INTEGER NOT NULL DEFAULT 5 CHECK(importance BETWEEN 1 AND 10),
tags TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
accessed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
)7K% indexsqlite_autoindex_observations_1observations f))�tableschema_versionschema_versionCREATE TABLE schema_version (
version INTEGER PRIMARY KEY
) ���i�����#�=��V�
�
version ���i����жwG�T
���i�����+��E�
���i�����h�K�\�)
���i���%��k �
���i����0��.> �SQLite format 3 @ 1 .��
� � ��Wj�;
�
�� l���7�R��� � r11�table_fts5_probe_config_fts5_probe_configCREATE TABLE '_fts5_probe_config'(k PRIMARY KEY, v) WITHOUT ROWIDv33�table_fts5_probe_docsize_fts5_probe_docsizeCREATE TABLE '_fts5_probe_docsize'(id INTEGER PRIMARY KEY, sz BLOB)q33� table_fts5_probe_content_fts5_probe_contentCREATE TABLE '_fts5_probe_content'(id INTEGER PRIMARY KEY, c0)�++�?table_fts5_probe_idx_fts5_probe_idxCREATE TABLE '_fts5_probe_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWIDp--�table_fts5_probe_data_fts5_probe_dataCREATE TABLE '_fts5_probe_data'(id INTEGER PRIMARY KEY, block BLOB)V##wtable_fts5_probe_fts5_probeCREATE VIRTUAL TABLE _fts5_probe USING fts5(test_col)xC%�indexidx_observations_created_atobservationsCREATE INDEX idx_observations_created_at ON observations(created_at)i9%�indexidx_observations_topicobservationsCREATE INDEX idx_observations_topic ON observations(topic)e7%}indexidx_observations_typeobservations
CREATE INDEX idx_observations_type ON observations(type)xC%�indexidx_observations_session_idobservationsCREATE INDEX idx_observations_session_id ON observations(session_id)�;%�3triggerobservations_fts_updateobservationsCREATE TRIGGER observations_fts_update
AFTER UPDATE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�
;%�Itriggerobservations_fts_deleteobservationsCREATE TRIGGER observations_fts_delete
AFTER DELETE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
END�s;%�triggerobservations_fts_insertobservationsCREATE TRIGGER observations_fts_insert
AFTER INSERT ON observations BEGIN
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�B
�_tabletopicstopics
CREATE TABLE topics (
topic TEXT PRIMARY KEY,
observation_count INTEGER NOT NULL DEFAULT 0,
last_activity TEXT NOT NULL,
summary TEXT
)+? indexsqlite_autoindex_topics_1topics� ;;�tableobservations_fts_configobservations_fts_config CREATE TABLE 'observations_fts_config'(k PRIMARY KEY, v) WITHOUT ROWID�==�tableobservations_fts_docsizeobservations_fts_docsizeCREATE TABLE 'observations_fts_docsize'(id INTEGER PRIMARY KEY, sz BLOB)�55�Itableobservations_fts_idxobservations_fts_idxCREATE TABLE 'observations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID77�tableobservations_fts_dataobservations_fts_dataCREATE TABLE 'observations_fts_data'(id INTEGER PRIMARY KEY, block BLOB)�+--�tableobservations_ftsobservations_ftsCREATE VIRTUAL TABLE observations_fts USING fts5(
title,
content,
topic,
content='observations',
content_rowid='id'
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�%%�stableobservationsobservationsCREATE TABLE observations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL,
type TEXT NOT NULL CHECK(type IN ('decision', 'discovery', 'error_fix', 'preference', 'architecture', 'context')),
topic TEXT NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
importance INTEGER NOT NULL DEFAULT 5 CHECK(importance BETWEEN 1 AND 10),
tags TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
accessed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
)7K% indexsqlite_autoindex_observations_1observations f))�tableschema_versionschema_versionCREATE TABLE schema_version (
version INTEGER PRIMARY KEY
) ���i����Q�i�n��
� ��
���i����������
� �
version ���i�����v5b>LOT
���i�����XtRRV
���i����3x�&s��
���i�����<O��ϨSQLite format 3 @ 2 .��
� R ��Wj�;
�
�� l���7�R� � � � � r11�table_fts5_probe_config_fts5_probe_configCREATE TABLE '_fts5_probe_config'(k PRIMARY KEY, v) WITHOUT ROWIDv33�table_fts5_probe_docsize_fts5_probe_docsizeCREATE TABLE '_fts5_probe_docsize'(id INTEGER PRIMARY KEY, sz BLOB)q33� table_fts5_probe_content_fts5_probe_contentCREATE TABLE '_fts5_probe_content'(id INTEGER PRIMARY KEY, c0)�Q++�?table_fts5_probe_idx_fts5_probe_idxCREATE TABLE '_fts5_probe_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID� �--�table_fts5_probe_data_fts5_probe_dataCREATE TABLE '_fts5_probe_data'(id INTEGER PRIMARY KEY, block BLOB)� X##wtable_fts5_probe_fts5_probeCREATE VIRTUAL TABLE _fts5_probe USING fts5(test_col)xC%�indexidx_observations_created_atobservationsCREATE INDEX idx_observations_created_at ON observations(created_at)i9%�indexidx_observations_topicobservationsCREATE INDEX idx_observations_topic ON observations(topic)e7%}indexidx_observations_typeobservations
CREATE INDEX idx_observations_type ON observations(type)xC%�indexidx_observations_session_idobservationsCREATE INDEX idx_observations_session_id ON observations(session_id)�;%�3triggerobservations_fts_updateobservationsCREATE TRIGGER observations_fts_update
AFTER UPDATE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�
;%�Itriggerobservations_fts_deleteobservationsCREATE TRIGGER observations_fts_delete
AFTER DELETE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
END�s;%�triggerobservations_fts_insertobservationsCREATE TRIGGER observations_fts_insert
AFTER INSERT ON observations BEGIN
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�B
�_tabletopicstopics
CREATE TABLE topics (
topic TEXT PRIMARY KEY,
observation_count INTEGER NOT NULL DEFAULT 0,
last_activity TEXT NOT NULL,
summary TEXT
)+? indexsqlite_autoindex_topics_1topics� ;;�tableobservations_fts_configobservations_fts_config CREATE TABLE 'observations_fts_config'(k PRIMARY KEY, v) WITHOUT ROWID�==�tableobservations_fts_docsizeobservations_fts_docsizeCREATE TABLE 'observations_fts_docsize'(id INTEGER PRIMARY KEY, sz BLOB)�55�Itableobservations_fts_idxobservations_fts_idxCREATE TABLE 'observations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID77�tableobservations_fts_dataobservations_fts_dataCREATE TABLE 'observations_fts_data'(id INTEGER PRIMARY KEY, block BLOB)�+--�tableobservations_ftsobservations_ftsCREATE VIRTUAL TABLE observations_fts USING fts5(
title,
content,
topic,
content='observations',
content_rowid='id'
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�%%�stableobservationsobservationsCREATE TABLE observations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL,
type TEXT NOT NULL CHECK(type IN ('decision', 'discovery', 'error_fix', 'preference', 'architecture', 'context')),
topic TEXT NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
importance INTEGER NOT NULL DEFAULT 5 CHECK(importance BETWEEN 1 AND 10),
tags TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
accessed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
)7K% indexsqlite_autoindex_observations_1observations f))�tableschema_versionschema_versionCREATE TABLE schema_version (
version INTEGER PRIMARY KEY
) ���i���ޣ�+``Vf�
���i�����$!��� K
�
version ���i���ޛ��t�R��
���i����a�?���8
���i���ތ�e���'
���i���ީYF�#L�SQLite format 3 @ 8 .��
� � ��Wj�;
�
�� l���7�R��� � r11�table_fts5_probe_config_fts5_probe_configCREATE TABLE '_fts5_probe_config'(k PRIMARY KEY, v) WITHOUT ROWIDv33�table_fts5_probe_docsize_fts5_probe_docsizeCREATE TABLE '_fts5_probe_docsize'(id INTEGER PRIMARY KEY, sz BLOB)q33� table_fts5_probe_content_fts5_probe_contentCREATE TABLE '_fts5_probe_content'(id INTEGER PRIMARY KEY, c0)�++�?table_fts5_probe_idx_fts5_probe_idxCREATE TABLE '_fts5_probe_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWIDp--�table_fts5_probe_data_fts5_probe_dataCREATE TABLE '_fts5_probe_data'(id INTEGER PRIMARY KEY, block BLOB)V##wtable_fts5_probe_fts5_probeCREATE VIRTUAL TABLE _fts5_probe USING fts5(test_col)xC%�indexidx_observations_created_atobservationsCREATE INDEX idx_observations_created_at ON observations(created_at)i9%�indexidx_observations_topicobservationsCREATE INDEX idx_observations_topic ON observations(topic)e7%}indexidx_observations_typeobservations
CREATE INDEX idx_observations_type ON observations(type)xC%�indexidx_observations_session_idobservationsCREATE INDEX idx_observations_session_id ON observations(session_id)�;%�3triggerobservations_fts_updateobservationsCREATE TRIGGER observations_fts_update
AFTER UPDATE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�
;%�Itriggerobservations_fts_deleteobservationsCREATE TRIGGER observations_fts_delete
AFTER DELETE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
END�s;%�triggerobservations_fts_insertobservationsCREATE TRIGGER observations_fts_insert
AFTER INSERT ON observations BEGIN
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�B
�_tabletopicstopics
CREATE TABLE topics (
topic TEXT PRIMARY KEY,
observation_count INTEGER NOT NULL DEFAULT 0,
last_activity TEXT NOT NULL,
summary TEXT
)+? indexsqlite_autoindex_topics_1topics� ;;�tableobservations_fts_configobservations_fts_config CREATE TABLE 'observations_fts_config'(k PRIMARY KEY, v) WITHOUT ROWID�==�tableobservations_fts_docsizeobservations_fts_docsizeCREATE TABLE 'observations_fts_docsize'(id INTEGER PRIMARY KEY, sz BLOB)�55�Itableobservations_fts_idxobservations_fts_idxCREATE TABLE 'observations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID77�tableobservations_fts_dataobservations_fts_dataCREATE TABLE 'observations_fts_data'(id INTEGER PRIMARY KEY, block BLOB)�+--�tableobservations_ftsobservations_ftsCREATE VIRTUAL TABLE observations_fts USING fts5(
title,
content,
topic,
content='observations',
content_rowid='id'
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�%%�stableobservationsobservationsCREATE TABLE observations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL,
type TEXT NOT NULL CHECK(type IN ('decision', 'discovery', 'error_fix', 'preference', 'architecture', 'context')),
topic TEXT NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
importance INTEGER NOT NULL DEFAULT 5 CHECK(importance BETWEEN 1 AND 10),
tags TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
accessed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
)7K% indexsqlite_autoindex_observations_1observations f))�tableschema_versionschema_versionCREATE TABLE schema_version (
version INTEGER PRIMARY KEY
) ���i����\V�Q��C
� �
version ���i�����Ub;�5�
� ��
���i�����eG�%Ku^
���i����w����t�
���i����'��H�
���i����,��Q�T�SQLite format 3 @ 9 .��
� R ��Wj�;
�
�� l���7�R� � � � � r11�table_fts5_probe_config_fts5_probe_configCREATE TABLE '_fts5_probe_config'(k PRIMARY KEY, v) WITHOUT ROWIDv33�table_fts5_probe_docsize_fts5_probe_docsizeCREATE TABLE '_fts5_probe_docsize'(id INTEGER PRIMARY KEY, sz BLOB)q33� table_fts5_probe_content_fts5_probe_contentCREATE TABLE '_fts5_probe_content'(id INTEGER PRIMARY KEY, c0)�Q++�?table_fts5_probe_idx_fts5_probe_idxCREATE TABLE '_fts5_probe_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID� �--�table_fts5_probe_data_fts5_probe_dataCREATE TABLE '_fts5_probe_data'(id INTEGER PRIMARY KEY, block BLOB)� X##wtable_fts5_probe_fts5_probeCREATE VIRTUAL TABLE _fts5_probe USING fts5(test_col)xC%�indexidx_observations_created_atobservationsCREATE INDEX idx_observations_created_at ON observations(created_at)i9%�indexidx_observations_topicobservationsCREATE INDEX idx_observations_topic ON observations(topic)e7%}indexidx_observations_typeobservations
CREATE INDEX idx_observations_type ON observations(type)xC%�indexidx_observations_session_idobservationsCREATE INDEX idx_observations_session_id ON observations(session_id)�;%�3triggerobservations_fts_updateobservationsCREATE TRIGGER observations_fts_update
AFTER UPDATE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�
;%�Itriggerobservations_fts_deleteobservationsCREATE TRIGGER observations_fts_delete
AFTER DELETE ON observations BEGIN
INSERT INTO observations_fts(observations_fts, rowid, title, content, topic)
VALUES ('delete', old.id, old.title, old.content, old.topic);
END�s;%�triggerobservations_fts_insertobservationsCREATE TRIGGER observations_fts_insert
AFTER INSERT ON observations BEGIN
INSERT INTO observations_fts(rowid, title, content, topic)
VALUES (new.id, new.title, new.content, new.topic);
END�B
�_tabletopicstopics
CREATE TABLE topics (
topic TEXT PRIMARY KEY,
observation_count INTEGER NOT NULL DEFAULT 0,
last_activity TEXT NOT NULL,
summary TEXT
)+? indexsqlite_autoindex_topics_1topics� ;;�tableobservations_fts_configobservations_fts_config CREATE TABLE 'observations_fts_config'(k PRIMARY KEY, v) WITHOUT ROWID�==�tableobservations_fts_docsizeobservations_fts_docsizeCREATE TABLE 'observations_fts_docsize'(id INTEGER PRIMARY KEY, sz BLOB)�55�Itableobservations_fts_idxobservations_fts_idxCREATE TABLE 'observations_fts_idx'(segid, term, pgno, PRIMARY KEY(segid, term)) WITHOUT ROWID77�tableobservations_fts_dataobservations_fts_dataCREATE TABLE 'observations_fts_data'(id INTEGER PRIMARY KEY, block BLOB)�+--�tableobservations_ftsobservations_ftsCREATE VIRTUAL TABLE observations_fts USING fts5(
title,
content,
topic,
content='observations',
content_rowid='id'
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�%%�stableobservationsobservationsCREATE TABLE observations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL,
type TEXT NOT NULL CHECK(type IN ('decision', 'discovery', 'error_fix', 'preference', 'architecture', 'context')),
topic TEXT NOT NULL,
title TEXT NOT NULL,
content TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
importance INTEGER NOT NULL DEFAULT 5 CHECK(importance BETWEEN 1 AND 10),
tags TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
accessed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))
)7K% indexsqlite_autoindex_observations_1observations f))�tableschema_versionschema_versionCREATE TABLE schema_version (
version INTEGER PRIMARY KEY
) ���i������u٩U
�
version ���i����k����v0
���i����'Y�MHj�
���i����sV �~��
���i����d�I%��p