mirror of
https://github.com/actix/actix-web.git
synced 2024-10-21 09:23:54 +00:00
14 lines
239 B
Rust
14 lines
239 B
Rust
use super::schema::users;
|
|
|
|
#[derive(Serialize, Queryable)]
|
|
pub struct User {
|
|
pub id: String,
|
|
pub name: String,
|
|
}
|
|
|
|
#[derive(Insertable)]
|
|
#[table_name = "users"]
|
|
pub struct NewUser<'a> {
|
|
pub id: &'a str,
|
|
pub name: &'a str,
|
|
}
|