|
@@ -1,6 +1,7 @@
|
|
|
package schema
|
|
|
|
|
|
import (
|
|
|
+ "entgo.io/ent/schema/index"
|
|
|
"wechat-api/ent/schema/localmixin"
|
|
|
|
|
|
"entgo.io/ent"
|
|
@@ -37,7 +38,9 @@ func (Agent) Edges() []ent.Edge {
|
|
|
}
|
|
|
|
|
|
func (Agent) Indexes() []ent.Index {
|
|
|
- return []ent.Index{}
|
|
|
+ return []ent.Index{
|
|
|
+ index.Fields("organization_id"),
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func (Agent) Annotations() []schema.Annotation {
|