Replies: 2 comments
-
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 smes and 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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our database has multiple schemas, and some tables' foreign key constraints exist across schemas.
The generated entries referencing
super::table::entry
will 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