kaiiak

Results 3 comments of kaiiak

自定义外键字段名只需要定义在`ent.From`上 --- Custom foreign key field names only need to be defined on `ent.From` ```go func (TUser) Fields() []ent.Field { return []ent.Field{ field.Uint64("id"). Annotations(entsql.WithComments(true)). Comment("主键"), field.String("user_id").MaxLen(20).Unique(). Annotations(entsql.WithComments(true)). Comment("用户id, 唯一"), }...