Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { ID string `gorm:"primaryKey"` ProjectID string `gorm:"column:project_id;not null;index" sql:"type:uuid"` ArtifactID string `gorm:"column:artifact_id;not null;index"` Size int `gorm:"column:size;not null"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` }
type Project ¶
type Project struct { ID string `gorm:"primaryKey;" sql:"type:uuid;"` Name string `gorm:"column:name;not null"` Description string `gorm:"column:description;not null"` Artifacts []*Artifact `gorm:"foreignKey:ProjectID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` }
Click to show internal directories.
Click to hide internal directories.