|
@@ -1,55 +0,0 @@
|
|
|
-//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.0
|
|
|
-
|
|
|
-use sea_orm::entity::prelude::*;
|
|
|
-
|
|
|
-#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
|
|
-#[sea_orm(table_name = "menu_commodity")]
|
|
|
-pub struct Model {
|
|
|
- #[sea_orm(primary_key, auto_increment = true)]
|
|
|
- pub id: i32,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub r#type: Option<String>,
|
|
|
- pub merchant_id: Option<i32>,
|
|
|
- pub store_id: Option<i32>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub name: Option<String>,
|
|
|
- pub cate_id: Option<i32>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub goods_no: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub is_single_spec: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub logo: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub images: Option<String>,
|
|
|
- pub price: Option<Decimal>,
|
|
|
- pub line_price: Option<Decimal>,
|
|
|
- pub stock: Option<i32>,
|
|
|
- pub weight: Option<Decimal>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub coupon_ids: Option<String>,
|
|
|
- pub service_time: Option<i32>,
|
|
|
- pub init_sale: Option<i32>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub sale_point: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub can_use_point: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub is_member_discount: Option<String>,
|
|
|
- pub sort: Option<i32>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub description: Option<String>,
|
|
|
- #[sea_orm(column_type = "custom(\"DATETIME\")", nullable)]
|
|
|
- pub create_time: Option<String>,
|
|
|
- #[sea_orm(column_type = "custom(\"DATETIME\")", nullable)]
|
|
|
- pub update_time: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub operator: Option<String>,
|
|
|
- #[sea_orm(column_type = "Text", nullable)]
|
|
|
- pub status: Option<String>,
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
|
-pub enum Relation {}
|
|
|
-
|
|
|
-impl ActiveModelBehavior for ActiveModel {}
|