mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-10 22:56:24 +08:00
05452bb297
Co-authored-by: Alex Yang <himself65@outlook.com>
15 lines
440 B
Rust
15 lines
440 B
Rust
// TODO
|
|
// dynamic create it from JavaScript side
|
|
// and remove this crate then.
|
|
pub const SCHEMA: &str = r#"CREATE TABLE IF NOT EXISTS "updates" (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
data BLOB NOT NULL,
|
|
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
doc_id TEXT
|
|
);
|
|
CREATE TABLE IF NOT EXISTS "blobs" (
|
|
key TEXT PRIMARY KEY NOT NULL,
|
|
data BLOB NOT NULL,
|
|
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
|
|
);"#;
|