Description
sea-orm-cli generate entity --frontend-format --date-time-crate time
generates structs with
pub created_at: TimeDateTimeWithTimeZone
which is not imported, as it requires sea_orm.
Steps to Reproduce
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "person")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub created_at: TimeDateTimeWithTimeZone,
}
sea-orm-cli generate entity --frontend-format --date-time-crate time
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Model {
pub id: i32,
pub created_at: TimeDateTimeWithTimeZone,
}
Expected Behavior
--date-time-crate time should use and import time::PrimateDateTime, while chrono uses it's equvilant.
Actual Behavior
A non-existant type is included
Reproduces How Often
100%
Workarounds
Versions
sea-orm-cli 2.0.0-rc.30
Description
sea-orm-cli generate entity --frontend-format --date-time-crate timegenerates structs with
pub created_at: TimeDateTimeWithTimeZonewhich is not imported, as it requires sea_orm.
Steps to Reproduce
sea-orm-cli generate entity --frontend-format --date-time-crate timeExpected Behavior
--date-time-crate time should use and import time::PrimateDateTime, while chrono uses it's equvilant.
Actual Behavior
A non-existant type is included
Reproduces How Often
100%
Workarounds
Versions
sea-orm-cli 2.0.0-rc.30