SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.02k stars 492 forks source link

CLI: generate `has_one` relation for foreign key of unique index / constraint #2254

Closed billy1624 closed 3 months ago

billy1624 commented 3 months ago

PR Info

Bug Fixes


Install sea-orm-cli and try it on your local machine:

cargo install sea-orm-cli --force --git https://github.com/SeaQL/sea-orm --branch cli-gen-has-one-relation
SZenglein commented 3 months ago

This does fix my issue I tried to fix in https://github.com/SeaQL/sea-orm/pull/2236

github-actions[bot] commented 3 months ago

:tada: Released In 1.0.0-rc.6 :tada:

Thank you everyone for the contribution! This feature is now available in the latest release. Now is a good time to upgrade! Your participation is what makes us unique; your adoption is what drives us forward. You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

github-actions[bot] commented 1 month ago

:tada: Released In 1.0.0 :tada:

Thank you everyone for the contribution! This feature is now available in the latest release. Now is a good time to upgrade! Your participation is what makes us unique; your adoption is what drives us forward. You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.