-
-
Notifications
You must be signed in to change notification settings - Fork 648
Open
Description
I define my Model struct by this code
#[sea_orm::model] #[derive(Clone, Debug, PartialEq, DeriveEntityModel)] #[sea_orm(table_name = "user")] pub struct Model { #[sea_orm(primary_key)] pub id: i64, pub username: String, pub password: String, pub user_type: UserType, #[sea_orm(has_many)] pub models: HasMany<super::model::Entity>, //identifier `models` is bound more than once in the same patternused in a pattern more than once #[sea_orm(has_many)] pub providers: HasMany<super::provider::Entity>, }@Moeweb647252 Which macros did you use?
Originally posted by @Moeweb647252 in #2153