From 12a2c0ef8f88449e1a2885033da4dcd576a66b2e Mon Sep 17 00:00:00 2001 From: Franklin Date: Wed, 3 May 2023 09:16:48 -0400 Subject: [PATCH] Changed unit bathrooms to decimal --- src/domain/unit.rs | 2 +- src/dto/payloads/unit.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/unit.rs b/src/domain/unit.rs index 7427afb..e8dff5d 100644 --- a/src/domain/unit.rs +++ b/src/domain/unit.rs @@ -17,7 +17,7 @@ pub struct Unit { /// Amount of rooms in unit pub rooms: i16, /// Amount of bathrooms in unit - pub bathrooms: i16, + pub bathrooms: f32, /// In meters squared pub area: f32, pub description: String, diff --git a/src/dto/payloads/unit.rs b/src/dto/payloads/unit.rs index 81801ed..fc80384 100644 --- a/src/dto/payloads/unit.rs +++ b/src/dto/payloads/unit.rs @@ -16,7 +16,7 @@ pub struct NewUnitPayload { /// Amount of rooms in unit pub rooms: i16, /// Amount of bathrooms in unit - pub bathrooms: i16, + pub bathrooms: f32, /// In meters squared pub area: f32, pub description: String, @@ -35,7 +35,7 @@ pub struct UpdateUnitPayload { /// Amount of rooms in unit pub rooms: Option, /// Amount of bathrooms in unit - pub bathrooms: Option, + pub bathrooms: Option, /// In meters squared pub area: Option, pub description: Option,