newuser structure for those that use an invite link
This commit is contained in:
parent
57db968568
commit
6c10c2160b
@ -1,4 +1,4 @@
|
||||
use crate::schema::invites;
|
||||
use crate::schema::{invites, new_users};
|
||||
#[derive(Insertable, Serialize, Deserialize, Queryable, Debug)]
|
||||
#[table_name = "invites"]
|
||||
pub struct Invite {
|
||||
@ -15,3 +15,9 @@ pub struct UserView {
|
||||
pub password: String,
|
||||
pub email: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Queryable, Insertable)]
|
||||
pub struct NewUser {
|
||||
pub token: String,
|
||||
pub invite_id: u64
|
||||
}
|
Loading…
Reference in New Issue
Block a user