Replies: 2 comments 1 reply
-
|
For me, I'm using the workaround below. sea-orm-cli generate entity -o crates/db/src/entities/dart -s dart
sea-orm-cli generate entity -o crates/db/src/entities/smes -s smesand create pub mod dart;
pub mod smes; |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
In normal cases, it works But if there are foreign keys and type definitions, an error will be reported that the type is missing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our database has multiple schemas, and some tables' foreign key constraints exist across schemas.
The generated entries referencing
super::table::entrywill show that such table name cannot be found.Is there some generation methods applicable to multiple schemas?
I think path can be:
P.S. I am a backend developer, not a DBA, and I have no right to decide how to design the database.
Beta Was this translation helpful? Give feedback.
All reactions