Changelog
This commit is contained in:
parent
fb8627dab6
commit
a9f5a7933a
23
CHANGELOG.md
23
CHANGELOG.md
@ -190,27 +190,20 @@ enum ConnAcquireErr {
|
|||||||
#### Seaography
|
#### Seaography
|
||||||
|
|
||||||
* Add generation of `seaography` related information to `sea-orm-codegen` https://github.com/SeaQL/sea-orm/pull/1599
|
* Add generation of `seaography` related information to `sea-orm-codegen` https://github.com/SeaQL/sea-orm/pull/1599
|
||||||
|
The `RelatedEntity` enum is added in entities files by `sea-orm-cli` when flag `seaography` is set:
|
||||||
The following information is added in entities files by `sea-orm-cli` when flag `seaography` is `true`
|
|
||||||
```rust
|
```rust
|
||||||
/// ... Entity File ...
|
/// ... Entity File ...
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelatedEntity)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelatedEntity)]
|
||||||
pub enum RelatedEntity {
|
pub enum RelatedEntity {
|
||||||
#[sea_orm(entity = "super::address::Entity")]
|
#[sea_orm(entity = "super::bakery::Entity")]
|
||||||
Address,
|
Bakery,
|
||||||
#[sea_orm(entity = "super::payment::Entity")]
|
#[sea_orm(entity = "super::cake_baker::Entity")]
|
||||||
Payment,
|
CakeBaker,
|
||||||
#[sea_orm(entity = "super::rental::Entity")]
|
#[sea_orm(entity = "super::cake::Entity")]
|
||||||
Rental,
|
Cake,
|
||||||
#[sea_orm(entity = "Entity", def = "Relation::SelfRef.def()")]
|
|
||||||
SelfRef,
|
|
||||||
#[sea_orm(entity = "super::store::Entity")]
|
|
||||||
Store,
|
|
||||||
#[sea_orm(entity = "Entity", def = "Relation::SelfRef.def().rev()")]
|
|
||||||
SelfRefRev,
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
* Added `seaography_example`
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user