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

     1  package labeldef
     2  
     3  import "database/sql"
     4  
     5  // Entity missing godoc
     6  type Entity struct {
     7  	ID         string         `db:"id"`
     8  	TenantID   string         `db:"tenant_id"`
     9  	Key        string         `db:"key"`
    10  	SchemaJSON sql.NullString `db:"schema"`
    11  	Version    int            `db:"version"`
    12  }
    13  
    14  // EntityCollection missing godoc
    15  type EntityCollection []Entity
    16  
    17  // Len missing godoc
    18  func (a EntityCollection) Len() int {
    19  	return len(a)
    20  }