github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formationtemplateconstraintreferences/entity.go (about)

     1  package formationtemplateconstraintreferences
     2  
     3  // Entity represents the formation constraint entity
     4  type Entity struct {
     5  	ConstraintID        string `db:"formation_constraint_id"`
     6  	FormationTemplateID string `db:"formation_template_id"`
     7  }
     8  
     9  // EntityCollection is a collection of formationTemplate-constraint references entities.
    10  type EntityCollection []*Entity
    11  
    12  // Len is implementation of a repo.Collection interface
    13  func (s EntityCollection) Len() int {
    14  	return len(s)
    15  }