Testing
This commit is contained in:
parent
16e41be9df
commit
4e7bf8b836
@ -19,6 +19,8 @@ pub struct Model {
|
||||
pub cake_id: i32,
|
||||
pub filling_id: i32,
|
||||
pub price: Decimal,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
|
||||
|
@ -9,6 +9,8 @@ pub struct Entity;
|
||||
pub struct Model {
|
||||
pub id: i32,
|
||||
pub name: String,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
// If your column names are not in snake-case, derive `DeriveCustomColumn` here.
|
||||
|
@ -8,6 +8,8 @@ pub struct Model {
|
||||
pub name: String,
|
||||
pub contact_details: Json,
|
||||
pub bakery_id: Option<i32>,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -7,6 +7,8 @@ pub struct Model {
|
||||
pub id: i32,
|
||||
pub name: String,
|
||||
pub profit_margin: f64,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -11,6 +11,8 @@ pub struct Model {
|
||||
pub bakery_id: Option<i32>,
|
||||
pub gluten_free: bool,
|
||||
pub serial: Uuid,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -7,6 +7,8 @@ pub struct Model {
|
||||
pub cake_id: i32,
|
||||
#[sea_orm(primary_key)]
|
||||
pub baker_id: i32,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -8,6 +8,8 @@ pub struct Model {
|
||||
pub name: String,
|
||||
#[sea_orm(column_type = "Text", nullable)]
|
||||
pub notes: Option<String>,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -10,6 +10,8 @@ pub struct Model {
|
||||
pub quantity: i32,
|
||||
pub order_id: i32,
|
||||
pub cake_id: i32,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -10,6 +10,8 @@ pub struct Model {
|
||||
pub bakery_id: i32,
|
||||
pub customer_id: i32,
|
||||
pub placed_at: DateTime,
|
||||
#[sea_orm(ignore)]
|
||||
pub ignored_attr: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user