diff options
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs new file mode 100644 index 0000000..b367f4f --- /dev/null +++ b/src/models.rs @@ -0,0 +1,12 @@ +use sqlx::FromRow; + + + +#[derive(Debug, FromRow)] +pub struct DbUser { + pub id: String, + pub email: String, + pub pref_name: String, + pub pw_hash: String, + pub last_login: chrono::NaiveDateTime +} |