mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
22 lines
687 B
SQL
22 lines
687 B
SQL
-- Your SQL goes here
|
|
CREATE TABLE kv_table (
|
|
key TEXT NOT NULL PRIMARY KEY,
|
|
value BLOB NOT NULL DEFAULT (x'')
|
|
);
|
|
CREATE TABLE grid_rev_table (
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
object_id TEXT NOT NULL DEFAULT '',
|
|
base_rev_id BIGINT NOT NULL DEFAULT 0,
|
|
rev_id BIGINT NOT NULL DEFAULT 0,
|
|
data BLOB NOT NULL DEFAULT (x''),
|
|
state INTEGER NOT NULL DEFAULT 0
|
|
);
|
|
|
|
CREATE TABLE grid_meta_rev_table (
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
object_id TEXT NOT NULL DEFAULT '',
|
|
base_rev_id BIGINT NOT NULL DEFAULT 0,
|
|
rev_id BIGINT NOT NULL DEFAULT 0,
|
|
data BLOB NOT NULL DEFAULT (x''),
|
|
state INTEGER NOT NULL DEFAULT 0
|
|
); |