summaryrefslogtreecommitdiffstats
path: root/src/users.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.rs')
-rw-r--r--src/users.rs13
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,
+}