Bootstrap db

This commit is contained in:
Andras Schmelczer 2024-12-08 15:17:29 +00:00
parent d70c8df80c
commit fe131e7103
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS documents (
vault_id TEXT NOT NULL,
document_id TEXT NOT NULL,
version_id INTEGER NOT NULL,
created_date TIMESTAMP NOT NULL,
updated_date TIMESTAMP NOT NULL,
relative_path TEXT NOT NULL,
content BLOB NOT NULL,
is_binary BOOLEAN NOT NULL,
is_deleted BOOLEAN NOT NULL,
PRIMARY KEY (vault_id, document_id, version_id)
);