reentrada/src/models.rs

24 lines
543 B
Rust
Raw Normal View History

2022-09-12 20:52:19 +02:00
use diesel::prelude::*;
#[derive(Queryable)]
pub struct RLocation {
pub tag: String,
pub nombre: Option<String>,
pub descripcion: String,
pub salida_norte: Option<String>,
pub salida_sur: Option<String>,
pub salida_este: Option<String>,
pub salida_oeste: Option<String>,
pub salida_arriba: Option<String>,
pub salida_abajo: Option<String>,
}
#[derive(Queryable)]
pub struct RObject {
pub tag: String,
2022-09-13 18:50:01 +02:00
pub nombre: String,
2022-09-12 20:52:19 +02:00
pub descripcion: String,
2022-09-13 18:50:01 +02:00
pub location: String,
pub peso: i32,
2022-09-12 20:52:19 +02:00
}