trifid/trifid-api/src/models.rs

9 lines
246 B
Rust
Raw Normal View History

2023-11-19 15:49:08 +00:00
use diesel::{Insertable, Queryable, Selectable};
#[derive(Queryable, Selectable, Insertable)]
#[diesel(table_name = crate::schema::users)]
#[diesel(check_for_backend(diesel::pg::Pg))]
pub struct User {
pub id: String,
pub email: String
}