models module
This commit is contained in:
parent
f08d256f4e
commit
8978b92efd
15
server/src/models.rs
Normal file
15
server/src/models.rs
Normal 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>,
|
||||
}
|
Loading…
Reference in New Issue
Block a user