2021-07-13 17:19:39 +08:00
|
|
|
table! {
|
|
|
|
app_table (id) {
|
|
|
|
id -> Text,
|
|
|
|
workspace_id -> Text,
|
|
|
|
name -> Text,
|
|
|
|
desc -> Text,
|
|
|
|
color_style -> Binary,
|
|
|
|
last_view_id -> Nullable<Text>,
|
|
|
|
modified_time -> BigInt,
|
|
|
|
create_time -> BigInt,
|
|
|
|
version -> BigInt,
|
2021-07-29 17:27:59 +08:00
|
|
|
is_trash -> Bool,
|
2021-07-13 17:19:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-23 08:14:45 +08:00
|
|
|
table! {
|
|
|
|
doc_table (id) {
|
|
|
|
id -> Text,
|
2021-09-26 16:39:57 +08:00
|
|
|
data -> Text,
|
2021-09-27 14:49:05 +08:00
|
|
|
rev_id -> BigInt,
|
2021-07-23 08:14:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-23 13:15:35 +08:00
|
|
|
table! {
|
2021-09-27 14:49:05 +08:00
|
|
|
rev_table (id) {
|
|
|
|
id -> Integer,
|
2021-09-25 21:47:02 +08:00
|
|
|
doc_id -> Text,
|
2021-09-23 15:49:10 +08:00
|
|
|
base_rev_id -> BigInt,
|
|
|
|
rev_id -> BigInt,
|
2021-09-23 13:15:35 +08:00
|
|
|
data -> Binary,
|
|
|
|
state -> Integer,
|
2021-09-26 16:39:57 +08:00
|
|
|
ty -> Integer,
|
2021-09-23 13:15:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-12 22:31:38 +08:00
|
|
|
table! {
|
|
|
|
trash_table (id) {
|
|
|
|
id -> Text,
|
|
|
|
name -> Text,
|
|
|
|
desc -> Text,
|
|
|
|
modified_time -> BigInt,
|
|
|
|
create_time -> BigInt,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-09 16:34:50 +08:00
|
|
|
table! {
|
|
|
|
user_table (id) {
|
|
|
|
id -> Text,
|
|
|
|
name -> Text,
|
2021-08-31 17:25:08 +08:00
|
|
|
token -> Text,
|
2021-07-09 16:34:50 +08:00
|
|
|
email -> Text,
|
2021-07-14 21:12:52 +08:00
|
|
|
workspace -> Text,
|
2021-07-09 16:34:50 +08:00
|
|
|
}
|
|
|
|
}
|
2021-07-13 17:19:39 +08:00
|
|
|
|
|
|
|
table! {
|
|
|
|
view_table (id) {
|
|
|
|
id -> Text,
|
2021-07-28 13:41:39 +08:00
|
|
|
belong_to_id -> Text,
|
2021-07-13 17:19:39 +08:00
|
|
|
name -> Text,
|
|
|
|
desc -> Text,
|
|
|
|
modified_time -> BigInt,
|
|
|
|
create_time -> BigInt,
|
|
|
|
thumbnail -> Text,
|
|
|
|
view_type -> Integer,
|
|
|
|
version -> BigInt,
|
2021-07-29 17:27:59 +08:00
|
|
|
is_trash -> Bool,
|
2021-07-13 17:19:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table! {
|
|
|
|
workspace_table (id) {
|
|
|
|
id -> Text,
|
|
|
|
name -> Text,
|
|
|
|
desc -> Text,
|
|
|
|
modified_time -> BigInt,
|
|
|
|
create_time -> BigInt,
|
|
|
|
user_id -> Text,
|
|
|
|
version -> BigInt,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-12 22:31:38 +08:00
|
|
|
allow_tables_to_appear_in_same_query!(
|
|
|
|
app_table,
|
|
|
|
doc_table,
|
|
|
|
rev_table,
|
|
|
|
trash_table,
|
|
|
|
user_table,
|
|
|
|
view_table,
|
|
|
|
workspace_table,
|
|
|
|
);
|