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

     1  package apptemplateversion
     2  
     3  import (
     4  	"database/sql"
     5  	"time"
     6  )
     7  
     8  // Entity missing godoc
     9  type Entity struct {
    10  	ID                    string         `db:"id"`
    11  	Version               string         `db:"version"`
    12  	Title                 sql.NullString `db:"title"`
    13  	ReleaseDate           sql.NullString `db:"release_date"`
    14  	CorrelationIDs        sql.NullString `db:"correlation_ids"`
    15  	CreatedAt             time.Time      `db:"created_at"`
    16  	ApplicationTemplateID string         `db:"app_template_id"`
    17  }
    18  
    19  // EntityCollection missing godoc
    20  type EntityCollection []Entity
    21  
    22  // Len missing godoc
    23  func (a EntityCollection) Len() int {
    24  	return len(a)
    25  }