mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-05 03:25:10 +08:00
00489dc571
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
(cherry picked from commit d28c887237)
14 lines
425 B
Rust
14 lines
425 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
|
|
);
|
|
CREATE TABLE IF NOT EXISTS "blobs" (
|
|
key TEXT PRIMARY KEY NOT NULL,
|
|
data BLOB NOT NULL,
|
|
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
|
|
);"#;
|