- permit passing custom derives to Model or ModelEx (#2933)
#[sea_orm::model]
#[derive(TS, ...)]
// Apply attributes specifically to the generated Model struct
#[sea_orm(model_attrs(ts(rename = "Fruit")))]
// Apply attributes specifically to the generated ModelEx struct
#[sea_orm(model_ex_attrs(ts(rename = "FruitEx")))]
struct Model {
// ...
}The code above expands to:
// ...
#[derive(TS, ...)]
#[ts(rename = "Fruit")]
struct Model {
// ...
}
// ...
#[derive(TS, ...)]
#[ts(rename = "FruitEx")]
struct ModelEx {
// ...
}