* Add DeriveRelatedEntity macro
* Add generation for related enum and seaography
* Add seaography cli param
* update codegen tests
* Fix DeriveRelatedEntity macro doc and includes
* Fix all RelatedEntity variants for RelationBuilder
* Add tests for code
* Cargo format
* Fix clippy code
* Fix format
* Fix unit tests
* Fix unit tests
* Provide default for seaography::RelationBuilder
* Update changelog
* Update tests
* Modify code to match feedback
* Bring old Related Impl trait generation
* Modify DeriveRelatedEntity to gen impl seaography::RelationBuilder
* Generate RelatedEntity enum when seaography flag is enabled
* Update documentation
* Update Changelog
* Fix format errors
* Fix code generation
* relations with suffix are definition based
* Rev => Reverse easier to read
* snake_case to cameCase for name generation
* Fix unit tests
* Update lib.rs
* derive `seaography::RelationBuilder` only when `seaography` feature is enabled
* Try constructing async-graphql root for "related entity" and "entity" without relation
* Update demo
* CHANGELOG
* Update Cargo.toml
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Revert "Update Cargo.toml"
This reverts commit 6b1669836a4fb5040bfb08999f0cf640c74dc64d.
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Noop when update without providing any values
* Add tests
* Update Cargo.toml
* Bump SeaQuery's version
* Fixup
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* sea-orm-cli Implement derives & attributes parameters for entity generation (#1124)
* implement derives & attributes for cli
* fmt and clippy fix
* use comma delimiter for attributes arg
* Update help message use `'` instead of `"` to quote
* Refactoring
* remove unnecessary cloning
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* [CLI] generate model with extra derives and attributes
* clippy
Co-authored-by: Isaiah Gamble <77396670+tsar-boomba@users.noreply.github.com>
* Add serde skip options for hidden columns to the CLI (#1171)
* Add serde skip options for hidden columns to the CLI
* Resolve rustfmt and clippy issues
* Use SerdeDeriveOptions instead of WithSerde in tests
* Resolve upstream conflict
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* [CLI] serde_skip_hidden_column
* clippy
* clippy
Co-authored-by: Jacob Trueb <jtrueb@northwestern.edu>