24 lines
543 B
Rust
24 lines
543 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: String,
|
|
pub descripcion: String,
|
|
pub location: String,
|
|
pub peso: i32,
|
|
}
|