From: Dessalines Date: Wed, 10 Feb 2021 16:05:12 +0000 (-0500) Subject: Listing columns. X-Git-Url: http://these/git/%22https:/nerdica.net/%7B%24%7B%60data:application/static/%24%7B%60data:application/README.md?a=commitdiff_plain;h=5a33fce8bd09e2333787f424c6268f6232e94253;p=lemmy.git Listing columns. --- 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