sqlmodel
sqlmodel copied to clipboard
✨ Add ondelete and cascade options for relationships
📝 Docs preview for commit 65be67cc73b8ead57262c9b7f4015b7b0916913a at: https://09764bb3.sqlmodel.pages.dev
📝 Docs preview for commit 274b7a7be14da6374797ff52e736bf91a05fcf36 at: https://da08e328.sqlmodel.pages.dev
📝 Docs preview for commit d9579f683400cf6bacba116aff8410b1ccca83bf at: https://2593c0e0.sqlmodel.pages.dev
📝 Docs preview for commit 6b40aec0c69439f0a01e54faac75d260fc0c1489 at: https://4cd9105f.sqlmodel.pages.dev
📝 Docs preview for commit 652904523c6bf3d63d05f850551707ebc88b1649 at: https://a46900e5.sqlmodel.pages.dev
📝 Docs preview for commit 6616272852cc3f22642c34563389389822baf076 at: https://bd669c99.sqlmodel.pages.dev
📝 Docs preview for commit 51c5d001b5ad6284cdfe9cb0dfc48cf377b83309 at: https://9a77e0cc.sqlmodel.pages.dev
Great, thank you @estebanx64! :rocket:
I updated the docs and tweaked the implementation to support nullables set with int | None, etc. to avoid needing nullable=True. Also because in most cases nullable=True should not be used, and instead declare the type accepting None.
I also updated/extended the source examples and tests.
This is ready now! :nerd_face:
This will be available in SQLModel 0.0.21, released in the next hours. :tada: