blob: ce28ac84594a8b3bbfc39e6c88a44de37260372c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use super::schema::members;
use diesel::{Insertable, Queryable};
use serde::{Deserialize, Serialize};
#[derive(Queryable, Serialize)]
pub struct Member {
pub id: i32,
pub username: String,
pub password: String,
pub phone_number: String,
pub email_id: String,
}
#[derive(Insertable, Deserialize)]
#[table_name = "members"]
pub struct NewMember {
pub username: String,
pub password: String,
pub phone_number: String,
pub email_id: String,
}
|