2023-01-12 22:31:39 +08:00
|
|
|
// @generated automatically by Diesel CLI.
|
|
|
|
|
2023-06-06 16:03:29 +08:00
|
|
|
diesel::table! {
|
|
|
|
collab_snapshot (id) {
|
|
|
|
id -> Text,
|
|
|
|
object_id -> Text,
|
2023-06-07 00:05:27 +08:00
|
|
|
title -> Text,
|
2023-06-06 16:03:29 +08:00
|
|
|
desc -> Text,
|
2023-06-07 00:05:27 +08:00
|
|
|
collab_type -> Text,
|
2023-06-06 16:03:29 +08:00
|
|
|
timestamp -> BigInt,
|
|
|
|
data -> Binary,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-03 09:14:52 +08:00
|
|
|
diesel::table! {
|
|
|
|
user_data_migration_records (id) {
|
|
|
|
id -> Integer,
|
|
|
|
migration_name -> Text,
|
|
|
|
executed_at -> Timestamp,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-12 22:31:39 +08:00
|
|
|
diesel::table! {
|
2021-07-09 16:34:50 +08:00
|
|
|
user_table (id) {
|
|
|
|
id -> Text,
|
|
|
|
name -> Text,
|
2021-07-14 21:12:52 +08:00
|
|
|
workspace -> Text,
|
2022-08-08 22:19:05 +08:00
|
|
|
icon_url -> Text,
|
2023-02-14 10:04:36 +08:00
|
|
|
openai_key -> Text,
|
2023-06-05 18:30:14 +08:00
|
|
|
token -> Text,
|
|
|
|
email -> Text,
|
2023-07-14 13:37:13 +08:00
|
|
|
auth_type -> Integer,
|
2023-08-17 23:46:39 +08:00
|
|
|
encryption_type -> Text,
|
2021-07-09 16:34:50 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-06 16:03:29 +08:00
|
|
|
|
2023-07-29 09:46:24 +08:00
|
|
|
diesel::table! {
|
|
|
|
user_workspace_table (id) {
|
|
|
|
id -> Text,
|
|
|
|
name -> Text,
|
|
|
|
uid -> BigInt,
|
|
|
|
created_at -> BigInt,
|
|
|
|
database_storage_id -> Text,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-03 09:14:52 +08:00
|
|
|
diesel::allow_tables_to_appear_in_same_query!(
|
|
|
|
collab_snapshot,
|
|
|
|
user_data_migration_records,
|
|
|
|
user_table,
|
|
|
|
user_workspace_table,
|
|
|
|
);
|