Edges of the Project.
()
| 54 | |
| 55 | // Edges of the Project. |
| 56 | func (Project) Edges() []ent.Edge { |
| 57 | return []ent.Edge{ |
| 58 | edge.From("organization", Organization.Type).Field("organization_id").Ref("projects").Unique().Required().Immutable(), |
| 59 | edge.To("workflows", Workflow.Type), |
| 60 | edge.To("versions", ProjectVersion.Type).Annotations(entsql.Annotation{OnDelete: entsql.Cascade}), |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func (Project) Indexes() []ent.Index { |
| 65 | return []ent.Index{ |
no test coverage detected