From 370a25e5a0cbb95e2aa1cec55305b22aeaf99aa0 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 12 Dec 2023 14:14:30 +0000 Subject: initial refactor --- src/users.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/users.rs (limited to 'src/users.rs') diff --git a/src/users.rs b/src/users.rs new file mode 100644 index 0000000..bf41fd5 --- /dev/null +++ b/src/users.rs @@ -0,0 +1,13 @@ +use crate::Privacy; + +#[derive(sqlx::FromRow)] +pub struct User { + pub id: i32, + pub username: String, + pub password: String, + pub email: Option, + pub bio: Option, + pub site: Option, + pub privacy: Privacy, + pub admin: bool, +} -- cgit