mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
* feat: implement encrypt and decrypt * feat: encrypt and decrypt * feat: update user profile with encrypt * chore: store encryption sign * fix: login in setting menu * chore: show encryption account name * chore: fix test * ci: fix warnings * test: enable supabase test * chore: fix test and rename column * fix: update user profile after set the secret * fix: encryption with wrong secret * fix: don't save user data if the return value of did_sign_up is err * chore: encrypt snapshot data * chore: refactor snapshots interface * ci: add tests * chore: update collab rev
53 lines
1.0 KiB
Rust
53 lines
1.0 KiB
Rust
// @generated automatically by Diesel CLI.
|
|
|
|
diesel::table! {
|
|
collab_snapshot (id) {
|
|
id -> Text,
|
|
object_id -> Text,
|
|
title -> Text,
|
|
desc -> Text,
|
|
collab_type -> Text,
|
|
timestamp -> BigInt,
|
|
data -> Binary,
|
|
}
|
|
}
|
|
|
|
diesel::table! {
|
|
user_data_migration_records (id) {
|
|
id -> Integer,
|
|
migration_name -> Text,
|
|
executed_at -> Timestamp,
|
|
}
|
|
}
|
|
|
|
diesel::table! {
|
|
user_table (id) {
|
|
id -> Text,
|
|
name -> Text,
|
|
workspace -> Text,
|
|
icon_url -> Text,
|
|
openai_key -> Text,
|
|
token -> Text,
|
|
email -> Text,
|
|
auth_type -> Integer,
|
|
encryption_type -> Text,
|
|
}
|
|
}
|
|
|
|
diesel::table! {
|
|
user_workspace_table (id) {
|
|
id -> Text,
|
|
name -> Text,
|
|
uid -> BigInt,
|
|
created_at -> BigInt,
|
|
database_storage_id -> Text,
|
|
}
|
|
}
|
|
|
|
diesel::allow_tables_to_appear_in_same_query!(
|
|
collab_snapshot,
|
|
user_data_migration_records,
|
|
user_table,
|
|
user_workspace_table,
|
|
);
|