From fbe11455eb121504cd5d41b43a3b26b2a4a38614 Mon Sep 17 00:00:00 2001 From: serxoz Date: Wed, 14 Sep 2022 15:29:15 +0200 Subject: [PATCH] npc model --- src/models.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/models.rs b/src/models.rs index 91b5dbf..2f79d21 100644 --- a/src/models.rs +++ b/src/models.rs @@ -21,3 +21,14 @@ pub struct RObject { pub location: String, pub peso: i32, } + +#[derive(Queryable)] +pub struct Rnpc { + pub tag: String, + pub nombre: String, + pub descripcion: String, + pub location: String, + pub ca: i32, + pub ba: i32, + pub hp: i32, +}