fix: change price and sold price to f32s
This commit is contained in:
parent
5dbbe23103
commit
7c7bda5f94
2 changed files with 6 additions and 6 deletions
|
|
@ -1,14 +1,14 @@
|
|||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize, utoipa::ToSchema)]
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize, utoipa::ToSchema)]
|
||||
#[sea_orm(table_name = "BookInstances")]
|
||||
#[schema(title="BookInstance", as=entities::BookInstance)]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key, auto_increment = true)]
|
||||
pub id: u32,
|
||||
pub price: i32,
|
||||
pub sold_price: Option<i32>,
|
||||
pub price: f32,
|
||||
pub sold_price: Option<f32>,
|
||||
pub status: BookStatus,
|
||||
pub book_id: u32,
|
||||
pub owner_id: u32,
|
||||
|
|
|
|||
Reference in a new issue