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,