From 5a33fce8bd09e2333787f424c6268f6232e94253 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 10 Feb 2021 11:05:12 -0500 Subject: [PATCH] Listing columns. --- crates/db_schema/src/source/user.rs | 56 ++++++++++++++--------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/crates/db_schema/src/source/user.rs b/crates/db_schema/src/source/user.rs index d72929fa..cb7ae87d 100644 --- a/crates/db_schema/src/source/user.rs +++ b/crates/db_schema/src/source/user.rs @@ -7,34 +7,34 @@ use serde::Serialize; #[derive(Clone, Queryable, Identifiable, PartialEq, Debug, Serialize)] #[table_name = "user_"] pub struct User_ { - pub id: i32, - pub name: String, - pub preferred_username: Option, - pub password_encrypted: String, - pub email: Option, - pub avatar: Option, - pub admin: bool, - pub banned: bool, - pub published: chrono::NaiveDateTime, - pub updated: Option, - pub show_nsfw: bool, - pub theme: String, - pub default_sort_type: i16, - pub default_listing_type: i16, - pub lang: String, - pub show_avatars: bool, - pub send_notifications_to_email: bool, - pub matrix_user_id: Option, - pub actor_id: Url, - pub bio: Option, - pub local: bool, - pub private_key: Option, - pub public_key: Option, - pub last_refreshed_at: chrono::NaiveDateTime, - pub banner: Option, - pub deleted: bool, - pub inbox_url: Url, - pub shared_inbox_url: Option, + pub id: i32, // person + pub name: String, // person + pub preferred_username: Option, // person + pub password_encrypted: String, // local_user + pub email: Option, // local_user + pub avatar: Option, // person + pub admin: bool, // local_user + pub banned: bool, // person? + pub published: chrono::NaiveDateTime, // person + pub updated: Option, // person + pub show_nsfw: bool, // local_user + pub theme: String, // local_user + pub default_sort_type: i16, // local_user + pub default_listing_type: i16, // local_user + pub lang: String, // local_user + pub show_avatars: bool, // local_user + pub send_notifications_to_email: bool, // local_user + pub matrix_user_id: Option, // local_user + pub actor_id: Url, // person + pub bio: Option, // person + pub local: bool, // person + pub private_key: Option, // person + pub public_key: Option, // person + pub last_refreshed_at: chrono::NaiveDateTime, // person + pub banner: Option, // person + pub deleted: bool, // local_user + pub inbox_url: Url, // person + pub shared_inbox_url: Option, // person } /// A safe representation of user, without the sensitive info -- 2.44.1