Revert adding #[sea_orm(ignore)]
to tests entities
This commit is contained in:
parent
beca48d48e
commit
5fe8c7c9c4
@ -8,8 +8,6 @@ pub struct Model {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
pub contact_details: Json,
|
pub contact_details: Json,
|
||||||
pub bakery_id: Option<i32>,
|
pub bakery_id: Option<i32>,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -7,8 +7,6 @@ pub struct Model {
|
|||||||
pub id: i32,
|
pub id: i32,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub profit_margin: f64,
|
pub profit_margin: f64,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -11,8 +11,6 @@ pub struct Model {
|
|||||||
pub bakery_id: Option<i32>,
|
pub bakery_id: Option<i32>,
|
||||||
pub gluten_free: bool,
|
pub gluten_free: bool,
|
||||||
pub serial: Uuid,
|
pub serial: Uuid,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -7,8 +7,6 @@ pub struct Model {
|
|||||||
pub cake_id: i32,
|
pub cake_id: i32,
|
||||||
#[sea_orm(primary_key)]
|
#[sea_orm(primary_key)]
|
||||||
pub baker_id: i32,
|
pub baker_id: i32,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -8,8 +8,6 @@ pub struct Model {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
#[sea_orm(column_type = "Text", nullable)]
|
#[sea_orm(column_type = "Text", nullable)]
|
||||||
pub notes: Option<String>,
|
pub notes: Option<String>,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -10,8 +10,6 @@ pub struct Model {
|
|||||||
pub quantity: i32,
|
pub quantity: i32,
|
||||||
pub order_id: i32,
|
pub order_id: i32,
|
||||||
pub cake_id: i32,
|
pub cake_id: i32,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -10,8 +10,6 @@ pub struct Model {
|
|||||||
pub bakery_id: i32,
|
pub bakery_id: i32,
|
||||||
pub customer_id: i32,
|
pub customer_id: i32,
|
||||||
pub placed_at: DateTime,
|
pub placed_at: DateTime,
|
||||||
#[sea_orm(ignore)]
|
|
||||||
pub ignored_attr: i32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user