Skip to content

Commit

Permalink
fixup! feat: Implements the basic schema for Policy
Browse files Browse the repository at this point in the history
Signed-off-by: Kairo Araujo <[email protected]>
  • Loading branch information
kairoaraujo committed Apr 12, 2024
1 parent ac5e1d2 commit 9b7918e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ent/schema/attestationpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (AttestationPolicy) Fields() []ent.Field {
func (AttestationPolicy) Edges() []ent.Edge {
return []ent.Edge{
edge.From("statement", Statement.Type).
Ref("policies").Unique(),
Ref("policy").Unique(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion ent/schema/statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (Statement) Fields() []ent.Field {
func (Statement) Edges() []ent.Edge {
return []ent.Edge{
edge.To("subjects", Subject.Type).Annotations(entgql.RelayConnection()),
edge.To("policies", AttestationPolicy.Type).Annotations(entgql.RelayConnection()),
edge.To("policy", AttestationPolicy.Type).Unique(),
edge.To("attestation_collections", AttestationCollection.Type).Unique(),

edge.From("dsse", Dsse.Type).Ref("statement"),
Expand Down

0 comments on commit 9b7918e

Please sign in to comment.