MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Edges

Method Edges

app/controlplane/pkg/data/ent/schema/project.go:56–62  ·  view source on GitHub ↗

Edges of the Project.

()

Source from the content-addressed store, hash-verified

54
55// Edges of the Project.
56func (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
64func (Project) Indexes() []ent.Index {
65 return []ent.Index{

Callers 1

IndexesMethod · 0.45

Calls 3

AnnotationsMethod · 0.80
UniqueMethod · 0.45
FieldMethod · 0.45

Tested by

no test coverage detected