198 lines
3.7 KiB
Rust
Raw Normal View History

// @generated automatically by Diesel CLI.
diesel::table! {
2021-07-13 17:19:39 +08:00
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,
is_trash -> Bool,
2021-07-13 17:19:39 +08:00
}
}
diesel::table! {
document_rev_snapshot (snapshot_id) {
snapshot_id -> Text,
object_id -> Text,
rev_id -> BigInt,
base_rev_id -> BigInt,
timestamp -> BigInt,
data -> Binary,
}
}
diesel::table! {
2022-10-22 21:57:44 +08:00
document_rev_table (id) {
id -> Integer,
document_id -> Text,
base_rev_id -> BigInt,
rev_id -> BigInt,
data -> Binary,
state -> Integer,
}
}
diesel::table! {
folder_rev_snapshot (snapshot_id) {
snapshot_id -> Text,
object_id -> Text,
rev_id -> BigInt,
base_rev_id -> BigInt,
timestamp -> BigInt,
data -> Binary,
}
}
diesel::table! {
2022-04-05 14:25:07 +08:00
grid_block_index_table (row_id) {
row_id -> Text,
block_id -> Text,
}
}
diesel::table! {
2022-03-11 21:36:00 +08:00
grid_meta_rev_table (id) {
id -> Integer,
object_id -> Text,
base_rev_id -> BigInt,
rev_id -> BigInt,
data -> Binary,
state -> Integer,
}
}
diesel::table! {
grid_rev_snapshot (snapshot_id) {
snapshot_id -> Text,
object_id -> Text,
rev_id -> BigInt,
base_rev_id -> BigInt,
timestamp -> BigInt,
data -> Binary,
}
}
diesel::table! {
2022-03-10 22:27:19 +08:00
grid_rev_table (id) {
id -> Integer,
object_id -> Text,
base_rev_id -> BigInt,
rev_id -> BigInt,
data -> Binary,
state -> Integer,
}
}
diesel::table! {
2022-08-15 20:07:01 +08:00
grid_view_rev_table (id) {
2022-08-15 10:08:05 +08:00
id -> Integer,
object_id -> Text,
base_rev_id -> BigInt,
rev_id -> BigInt,
data -> Binary,
state -> Integer,
}
}
diesel::table! {
2022-03-04 21:26:32 +08:00
kv_table (key) {
key -> Text,
value -> Binary,
}
}
diesel::table! {
2022-06-10 22:27:19 +08:00
rev_snapshot (id) {
id -> Integer,
object_id -> Text,
rev_id -> BigInt,
data -> Binary,
}
}
diesel::table! {
rev_table (id) {
id -> Integer,
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
}
}
diesel::table! {
2021-10-12 22:31:38 +08:00
trash_table (id) {
id -> Text,
name -> Text,
desc -> Text,
modified_time -> BigInt,
create_time -> BigInt,
ty -> Integer,
2021-10-12 22:31:38 +08:00
}
}
diesel::table! {
user_table (id) {
id -> Text,
name -> Text,
2021-08-31 17:25:08 +08:00
token -> Text,
email -> Text,
workspace -> Text,
2022-08-08 22:19:05 +08:00
icon_url -> Text,
}
}
2021-07-13 17:19:39 +08:00
diesel::table! {
2021-07-13 17:19:39 +08:00
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,
is_trash -> Bool,
2022-06-11 17:13:52 +08:00
ext_data -> Text,
2021-07-13 17:19:39 +08:00
}
}
diesel::table! {
2021-07-13 17:19:39 +08:00
workspace_table (id) {
id -> Text,
name -> Text,
desc -> Text,
modified_time -> BigInt,
create_time -> BigInt,
user_id -> Text,
version -> BigInt,
}
}
diesel::allow_tables_to_appear_in_same_query!(
app_table,
document_rev_snapshot,
document_rev_table,
folder_rev_snapshot,
grid_block_index_table,
grid_meta_rev_table,
grid_rev_snapshot,
grid_rev_table,
grid_view_rev_table,
kv_table,
rev_snapshot,
rev_table,
trash_table,
user_table,
view_table,
workspace_table,
2021-10-12 22:31:38 +08:00
);