reentrada/src/models.rs

23 lines
536 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,
pub nombre: Option<String>,
pub descripcion: String,
pub location_tag: String,
}