Warning
ts-rs does not yet support HasOne and HasMany relations for SeaORM 2.0. We are currently waiting for the official release of SeaORM 2.0 before submitting the necessary Pull Request.
To run this example, we must use the patched versions of these libraries.
[patch.crates-io]
sea-orm = { git = "https://github.com/mcitem/sea-orm" }
ts-rs = { git = "https://github.com/mcitem/ts-rs" }