mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 23:27:57 +01:00
16 lines
315 B
Rust
16 lines
315 B
Rust
use diesel::{Insertable, Queryable};
|
|
use super::schema::users;
|
|
|
|
#[derive(Queryable)]
|
|
pub struct User {
|
|
pub id: i32,
|
|
pub name: String,
|
|
pub password: Option<String>,
|
|
}
|
|
|
|
#[derive(Insertable)]
|
|
#[diesel(table_name = users)]
|
|
pub struct NewUser<'a> {
|
|
pub name: &'a str,
|
|
pub password: Option<&'a str>,
|
|
} |