Changed unit bathrooms to decimal

This commit is contained in:
Franklin 2023-05-03 09:16:48 -04:00
parent faf73034a0
commit 12a2c0ef8f
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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<i16>,
/// Amount of bathrooms in unit
pub bathrooms: Option<i16>,
pub bathrooms: Option<f32>,
/// In meters squared
pub area: Option<f32>,
pub description: Option<String>,