diff options
author | cel 🌸 <cel@blos.sm> | 2023-12-12 14:14:30 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-12-12 14:14:30 +0000 |
commit | 370a25e5a0cbb95e2aa1cec55305b22aeaf99aa0 (patch) | |
tree | 665163bc58c8e94320b843b1983376d9a67f99bf /src/users.rs | |
parent | 5dc4774ed3380762b4d7aadc86193af6073c456a (diff) | |
download | pinussy-370a25e5a0cbb95e2aa1cec55305b22aeaf99aa0.tar.gz pinussy-370a25e5a0cbb95e2aa1cec55305b22aeaf99aa0.tar.bz2 pinussy-370a25e5a0cbb95e2aa1cec55305b22aeaf99aa0.zip |
initial refactor
Diffstat (limited to '')
-rw-r--r-- | src/users.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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<String>, + pub bio: Option<String>, + pub site: Option<String>, + pub privacy: Privacy, + pub admin: bool, +} |