Open scybwdf opened 2 months ago
//!
SeaORM` Entity. Generated by sea-orm-codegen 0.12.15
use sea_orm :: entity :: prelude :: * ; use serde :: { Deserialize , Serialize } ;
impl EntityName for Entity { fn table_name (& self) -> & str { "wms_warehouse" } }
impl PrimaryKeyTrait for PrimaryKey { type ValueType = ; fn auto_increment () -> bool { false } }
impl ColumnTrait for Column { type EntityName = Entity ; fn def (& self) -> ColumnDef { match self { Self :: WarehouseId => ColumnType :: String (Some (64u32)) . def () , Self :: WarehouseName => ColumnType :: String (Some (255u32)) . def () . null () , Self :: WarehouseCode => ColumnType :: String (Some (255u32)) . def () . null () , Self :: WarehouseType => ColumnType :: String (Some (255u32)) . def () . null () , Self :: Address => ColumnType :: String (Some (255u32)) . def () . null () , Self :: AddressDetail => ColumnType :: String (Some (255u32)) . def () . null () , Self :: AddressIds => ColumnType :: String (Some (64u32)) . def () . null () , Self :: Remark => ColumnType :: String (Some (500u32)) . def () . null () , Self :: Status => ColumnType :: Char (Some (1u32)) . def () . null () , } } }
impl RelationTrait for Relation { fn def (& self) -> RelationDef { panic ! ("No RelationDef") } }
impl ActiveModelBehavior for ActiveModel { }`
When I use a primary key of type string, there is no normal entity generation
sea-orm-cli version:0.12.15 rust:1.77.1
` sea-orm-cli generate entity -s public -o test --expanded-format --with-serde both -t wms_warehouse Connecting to Postgres ... Discovering schema ... ... discovered. Generating wms_warehouse.rs
Fail to format file
wms_warehouse.rs
`