mi/backend/src/models.rs

16 lines
287 B
Rust
Raw Normal View History

2020-09-13 16:55:29 +00:00
#[derive(Queryable, Debug)]
2020-09-13 16:07:06 +00:00
pub struct Member {
pub id: i32,
pub cmene: String,
pub picurl: String,
}
#[derive(Queryable)]
pub struct Switch {
pub id: String,
pub who: String,
pub started_at: String,
pub ended_at: Option<String>,
pub duration: String,
}