diff --git a/server/src/models.rs b/server/src/models.rs index cfcc599..5416f6b 100644 --- a/server/src/models.rs +++ b/server/src/models.rs @@ -7,17 +7,11 @@ pub struct Invite { pub uses: Option, } -#[derive(Serialize, Deserialize, Queryable)] -pub struct UserView { - pub id: i64, - pub username: String, - pub display: Option, - pub password: String, - pub email: Option, -} - -#[derive(Serialize, Deserialize, Queryable, Insertable)] -pub struct NewUser { - pub token: String, - pub invite_id: u64 +#[derive(Serialize, Deserialize, Queryable, Debug] +#[table_name = "users"] +pub struct User { + userid: u64, + username: String, + key_hash: Option, + date: u64, } \ No newline at end of file