models module

This commit is contained in:
shockrah 2020-02-05 15:11:56 -08:00
parent f08d256f4e
commit 8978b92efd

15
server/src/models.rs Normal file
View File

@ -0,0 +1,15 @@
#[derive(Serialize, Deserialize, Queryable)]
pub struct InviteView {
pub id: u64,
expire: u64,
uses: Option<i32>,
}
#[derive(Serialize, Deserialize, Queryable)]
pub struct UserView {
id: i64,
username: String,
display: Option<String>,
password: String,
email: Option<String>,
}