()
| 57 | } |
| 58 | |
| 59 | func (Referrer) Indexes() []ent.Index { |
| 60 | return []ent.Index{ |
| 61 | // Two referrers of different kinds can have the same digest |
| 62 | // For now we only guarantee that the digest is unique in the scope of the referrer kind |
| 63 | index.Fields("digest", "kind").Unique(), |
| 64 | } |
| 65 | } |