mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
35 lines
1.1 KiB
MySQL
35 lines
1.1 KiB
MySQL
|
-- Your SQL goes here
|
||
|
CREATE TABLE workspace_table (
|
||
|
id TEXT NOT NULL PRIMARY KEY,
|
||
|
name TEXT NOT NULL DEFAULT '',
|
||
|
desc TEXT NOT NULL DEFAULT '',
|
||
|
modified_time BIGINT NOT NULL DEFAULT 0,
|
||
|
create_time BIGINT NOT NULL DEFAULT 0,
|
||
|
user_id TEXT NOT NULL DEFAULT '',
|
||
|
version BIGINT NOT NULL DEFAULT 0
|
||
|
);
|
||
|
|
||
|
CREATE TABLE app_table (
|
||
|
id TEXT NOT NULL PRIMARY KEY,
|
||
|
workspace_id TEXT NOT NULL DEFAULT '',
|
||
|
name TEXT NOT NULL DEFAULT '',
|
||
|
desc TEXT NOT NULL DEFAULT '',
|
||
|
color_style BLOB NOT NULL DEFAULT (x''),
|
||
|
last_view_id TEXT DEFAULT '',
|
||
|
modified_time BIGINT NOT NULL DEFAULT 0,
|
||
|
create_time BIGINT NOT NULL DEFAULT 0,
|
||
|
version BIGINT NOT NULL DEFAULT 0
|
||
|
);
|
||
|
|
||
|
CREATE TABLE view_table (
|
||
|
id TEXT NOT NULL PRIMARY KEY,
|
||
|
app_id TEXT NOT NULL DEFAULT '',
|
||
|
name TEXT NOT NULL DEFAULT '',
|
||
|
desc TEXT NOT NULL DEFAULT '',
|
||
|
modified_time BIGINT NOT NULL DEFAULT 0,
|
||
|
create_time BIGINT NOT NULL DEFAULT 0,
|
||
|
thumbnail TEXT NOT NULL DEFAULT '',
|
||
|
view_type INTEGER NOT NULL DEFAULT 0,
|
||
|
version BIGINT NOT NULL DEFAULT 0
|
||
|
);
|