Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

I think you can define it like this:

#[derive(DerivePartialModel)]
#[sea_orm(entity = "user::Entity")]
struct UserWithCredentials {
    #[sea_orm(nested)]
    user: user::Model,
    #[sea_orm(nested)]
    credentials: UserCredentials,
}

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by youpie
Comment options

You must be logged in to vote
5 replies
@tyt2y3
Comment options

@tyt2y3
Comment options

@youpie
Comment options

@youpie
Comment options

@tyt2y3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants