23 lines
536 B
Rust
23 lines
536 B
Rust
|
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,
|
||
|
}
|