SQLite format 3 @ 5 ) * 5 .� � ��c �|M��xA-�
`���vl �A v!!�7tablemax_seq_idmax_seq_idCREATE TABLE max_seq_id (
segment_id TEXT PRIMARY KEY,
seq_id BLOB NOT NULL
)3G! indexsqlite_autoindex_max_seq_id_1max_seq_id�s11�tableembedding_metadataembedding_metadataCREATE TABLE embedding_metadata (
id INTEGER REFERENCES embeddings(id),
key TEXT NOT NULL,
string_value TEXT,
int_value INTEGER,
float_value REAL,
PRIMARY KEY (id, key)
)CW1 indexsqlite_autoindex_embedding_metadata_1embedding_metadata�!!�qtableembeddingsembeddingsCREATE TABLE embeddings (
id INTEGER PRIMARY KEY,
segment_id TEXT NOT NULL,
embedding_id TEXT NOT NULL,
seq_id BLOB NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE (segment_id, embedding_id)
)3G! indexsqlite_autoindex_embeddings_1embeddings/C indexsqlite_autoindex_segments_1segments�++�atablemaintenance_logmaintenance_logCREATE TABLE maintenance_log (
id INT PRIMARY KEY,
timestamp INT NOT NULL,
operation TEXT NOT NULL
)=Q+ indexsqlite_autoindex_maintenance_log_1maintenance_log
: �2##�+tablecollectionscollectionsCREATE TABLE "collections" (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per database
dimension INTEGER,
database_id TEXT NOT NULL REFERENCES databases(id) ON DELETE CASCADE, config_json_str TEXT,
UNIQUE (name, database_id)
)5I# indexsqlite_autoindex_collections_2collections5I# indexsqlite_autoindex_collections_1collections1E indexsqlite_autoindex_databases_2databases1E indexsqlite_autoindex_databases_1databases�5�9tabledatabasesdatabasesCREATE TABLE databases (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per tenant
tenant_id TEXT NOT NULL REFERENCES tenants(id) ON DELETE CASCADE,
UNIQUE (tenant_id, name) -- Ensure that a tenant has only one database with a given name
)-A indexsqlite_autoindex_tenants_1tenants\�tabletenantstenantsCREATE TABLE tenants (
id TEXT PRIMARY KEY,
UNIQUE (id)
)?
S- indexsqlite_autoindex_segment_metadata_1segment_metadata�--�ktablesegment_metadatasegment_metadata
CREATE TABLE segment_metadata (
segment_id TEXT REFERENCES segments(id) ON DELETE CASCADE,
key TEXT NOT NULL,
str_value TEXT,
int_value INTEGER,
float_value REAL, bool_value INTEGER,
PRIMARY KEY (segment_id, key)
) &C indexsqlite_autoinde�C''�E�9�EtablesegmentssegmentsCREATE TABLE "segments" (
id TEXT PRIMARY KEY,
type TEXT NOT NULL,
scope TEXT NOT NULL,
collection TEXT REFERENCES collection(id) NOT NULL
)E Y3 indexsqlite_autoindex_collection_metadata_1collection_metadata
�-33�tablecollection_metadatacollection_metadata CREATE TABLE collection_metadata (
collection_id TEXT REFERENCES collections(id) ON DELETE CASCADE,
key TEXT NOT NULL,
str_value TEXT,
int_value INTEGER,
float_value REAL, bool_value INTEGER,
PRIMARY KEY (collection_id, key)
)�;;�Gtableembeddings_queue_configembeddings_queue_configCREATE TABLE embeddings_queue_config (
id INTEGER PRIMARY KEY,
config_json_str TEXT
)�0--�tableembeddings_queueembeddings_queueCREATE TABLE embeddings_queue (
seq_id INTEGER PRIMARY KEY,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
operation INTEGER NOT NULL,
topic TEXT NOT NULL,
id TEXT NOT NULL,
vector BLOB,
encoding TEXT,
metadata TEXT
)3G! indexsqlite_autoindex_migrations_1migrations�g!!�tablemigrationsmigrationsCREATE TABLE migrations (
dir TEXT NOT NULL,
version INTEGER NOT NULL,
filename TEXT NOT NULL,
sql TEXT NOT NULL,
hash TEXT NOT NULL,
PRIMARY KEY (dir, version)
� �
l ����; �9 Q�aMsysdb00007-collection-config.sqlite.sql-- Stores collection configuration dictionaries.
ALTER TABLE collections ADD COLUMN config_json_str TEXT;
1c7e63bba346a42a18b6ab7f1c989bed�ee�%Msysdb00006-collection-segment-metadata.sqlite.sql-- SQLite does not support adding check with alter table, as a result, adding a check
-- involve creating a new table and copying the data over. It is over kill with adding
-- a boolean type column. The application write to the table needs to ensure the data
-- integrity.
ALTER TABLE collection_metadata ADD COLUMN bool_value INTEGER;
ALTER TABLE segment_metadata ADD COLUMN bool_value INTEGER;
4eea7468935bf25d4604a0fed2366116�bG�=Msysdb00005-remove-topic.sqlite.sql-- Remove the topic column from the Collections and Segments tables
ALTER TABLE collections DROP COLUMN topic;
ALTER TABLE segments DROP COLUMN topic;
b1367c826b8fba5f96f27befdc1d42d2�Q�%Msysdb00004-tenants-databases.sqlite.sqlCREATE TABLE IF NOT EXISTS tenants (
id TEXT PRIMARY KEY,
UNIQUE (id)
);
CREATE TABLE IF NOT EXISTS databases (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per tenant
tenant_id TEXT NOT NULL REFERENCES tenants(id) ON DELETE CASCADE,
UNIQUE (tenant_id, name) -- Ensure that a tenant has only one database with a given name
);
CREATE TABLE IF NOT EXISTS collections_tmp (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per database
topic TEXT NOT NULL,
dimension INTEGER,
database_id TEXT NOT NULL REFERENCES databases(id) ON DELETE CASCADE,
UNIQUE (name, database_id)
);
-- Create default tenant and database
INSERT OR REPLACE INTO tenants (id) VALUES ('default_tenant'); -- The default tenant id is 'default_tenant' others are UUIDs
INSERT OR REPLACE INTO databases (id, name, tenant_id) VALUES ('00000000-0000-0000-0000-000000000000', 'default_database', 'default_tenant');
INSERT OR REPLACE INTO collections_tmp (id, name, topic, dimension, database_id)
SELECT id, name, topic, dimension, '00000000-0000-0000-0000-000000000000' FROM collections;
DROP TABLE collections;
ALTER TABLE collections_tmp RENAME TO collections;
048867ce8fcdefe4023c7110e4433591�WyMsysdb00003-collection-dimension.sqlite.sqlALTER TABLE collections ADD COLUMN dimension INTEGER;
42d22d0574d31d419c2a0e7f625c93aa�G?�Msysdb00002-segments.sqlite.sqlCREATE TABLE segments (
id TEXT PRIMARY KEY,
type TEXT NOT NULL,
scope TEXT NOT NULL,
topic TEXT,
collection TEXT REFERENCES collection(id)
);
CREATE TABLE segment_metadata (
segment_id TEXT REFERENCES segments(id) ON DELETE CASCADE,
key TEXT NOT NULL,
str_value TEXT,
int_value INTEGER,
float_value REAL,
PRIMARY KEY (segment_id, key)
);
2913cb6a503055a95f625448037e8912�+ E�SMsysdb00001-collections.sqlite.sqlCREATE TABLE collections (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
topic TEXT NOT NULL,
UNIQUE (name)
);
CREATE TABLE collection_metadata (
collection_id TEXT REFERENCES collections(id) ON DELETE CASCADE,
key TEXT NOT NULL,
str_value TEXT,
int_value INTEGER,
float_value REAL,
PRIMARY KEY (collection_id, key)
);
38352d725ad1c16074fac420b22b4633�?-]�KMembeddings_queue00002-embeddings-queue-config.sqlite.sqlCREATE TABLE embeddings_queue_config (
id INTEGER PRIMARY KEY,
config_json_str TEXT
);
8fbfe4ffb3e57f1d8bfdc58510a82e85�W- C�Membeddings_queue00001-embeddings.sqlite.sqlCREATE TABLE embeddings_queue (
seq_id INTEGER PRIMARY KEY,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
operation INTEGER NOT NULL,
topic TEXT NOT NULL,
id TEXT NOT NULL,
vector BLOB,
encoding TEXT,
metadata TEXT
);
d3755dfd232be8e8301f4d7fcfb
6 ��]PC6�������ui metadbmetadbmetadb
metadbsysdb sysdb
sysdb sysdbsysdbsysdbsysdbsysdb
sysdb-embeddings_queue- embeddings_queue
� � R �){"automatically_purge": true, "_type": "EmbeddingsQueueConfigurationInternal"}
; �
�6
l ����; �9 Q�aMsysdb00007-collection-config.sqlite.sql-- Stores collection configuration dictionaries.
ALTER TABLE collections ADD COLUMN config_json_str TEXT;
1c7e63bba346a42a18b6ab7f1c989bed�ee�%Msysdb00006-collection-segment-metadata.sqlite.sql-- SQLite does not support adding check with alter table, as a result, adding a check
-- involve creating a new table and copying the data over. It is over kill with adding
-- a boolean type column. The application write to the table needs to ensure the data
-- integrity.
ALTER TABLE collection_metadata ADD COLUMN bool_value INTEGER;
ALTER TABLE segment_metadata ADD COLUMN bool_value INTEGER;
4eea7468935bf25d4604a0fed2366116�bG�=Msysdb00005-remove-topic.sqlite.sql-- Remove the topic column from the Collections and Segments tables
ALTER TABLE collections DROP COLUMN topic;
ALTER TABLE segments DROP COLUMN topic;
b1367c826b8fba5f96f27befdc1d42d2�Q�%Msysdb00004-tenants-databases.sqlite.sqlCREATE TABLE IF NOT EXISTS tenants (
id TEXT PRIMARY KEY,
UNIQUE (id)
);
CREATE TABLE IF NOT EXISTS databases (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per tenant
tenant_id TEXT NOT NULL REFERENCES tenants(id) ON DELETE CASCADE,
UNIQUE (tenant_id, name) -- Ensure that a tenant has only one database with a given name
);
CREATE TABLE IF NOT EXISTS collections_tmp (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per database
topic TEXT NOT NULL,
dimension INTEGER,
database_id TEXT NOT NULL REFERENCES databases(id) ON DELETE CASCADE,
UNIQUE (name, database_id)
);
-- Create default tenant and database
INSERT OR REPLACE INTO tenants (id) VALUES ('default_tenant'); -- The default tenant id is 'default_tenant' others are UUIDs
INSERT OR REPLACE INTO databases (id, name, tenant_id) VALUES ('00000000-0000-0000-0000-000000000000', 'default_database', 'default_tenant');
INSERT OR REPLACE INTO collections_tmp (id, name, topic, dimension, database_id)
SELECT id, name, topic, dimension, '00000000-0000-0000-0000-000000000000' FROM collections;
DROP TABLE collections;
ALTER TABLE collections_tmp RENAME TO collections;
048867ce8fcdefe4023c7110e4433591�WyMsysdb00003-collection-dimension.sqlite.sqlALTER TABLE collections ADD COLUMN dimension INTEGER;
42d22d0574d31d419c2a0e7f625c93aa�G?�Msysdb00002-segments.sqlite.sqlCREATE TABLE segments (
id TEXT PRIMARY KEY,
type TEXT NOT NULL,
scope TEXT NOT NULL,
topic TEXT,
collection TEXT REFERENCES collection(id)
);
CREATE TABLE segment_metadata (
segment_id TEXT REFERENCES segments(id) ON DELETE CASCADE,
key TEXT NOT NULL,
str_value TEXT,
int_value INTEGER,
float_value REAL,
PRIMARY KEY (segment_id, key)
);
2913cb6a503055a95f625448037e8912�+ E�SMsysdb00001-collections.sqlite.sqlCREATE TABLE collections (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
topic TEXT NOT NULL,
UNIQUE (name)
);
CREATE TABLE collection_metadata (
collection_id TEXT REFERENCES collections(id) ON DELETE CASCADE,
key TEXT NOT NULL,
str_value TEXT,
int_value INTEGER,
float_value REAL,
PRIMARY KEY (collection_id, key)
);
38352d725ad1c16074fac420b22b4633�?-]�KMembeddings_queue00002-embeddings-queue-config.sqlite.sqlCREATE TABLE embeddings_queue_config (
id INTEGER PRIMARY KEY,
config_json_str TEXT
);
8fbfe4ffb3e57f1d8bfdc58510a82e85�W- C�Membeddings_queue00001-embeddings.sqlite.sqlCREATE TABLE embeddings_queue (
seq_id INTEGER PRIMARY KEY,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
operation INTEGER NOT NULL,
topic TEXT NOT NULL,
id TEXT NOT NULL,
vector BLOB,
encoding TEXT,
metadata TEXT
);
d3755dfd232be8e8301f4d7fcfb3a486
� �� >U) e8f9f4d1-8476-4a37-ac73-5d782cd43bb0schema_version1.0.0;U! e8f9f4d1-8476-4a37-ac73-5d782cd43bb0hnsw:spacecosine
� �� 7U)e8f9f4d1-8476-4a37-ac73-5d782cd43bb0schema_version2U! e8f9f4d1-8476-4a37-ac73-5d782cd43bb0hnsw:space
� � ;U! 32333f2b-b93a-4326-bbbf-3a58de3a0254hnsw:spacecosine
� � 2U! 32333f2b-b93a-4326-bbbf-3a58de3a0254hnsw:space
� � )default_tenant
� � ) default_tenant
� � FU-)00000000-0000-0000-0000-000000000000default_databasedefault_tenant
� � 'U 00000000-0000-0000-0000-000000000000
� � ")- default_tenantdefault_database
� � �\U'