model-registry/internal/model/db/event.gen.go

26 lines
966 B
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package db
const TableNameEvent = "Event"
// Event mapped from table <Event>
type Event struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
ArtifactID int64 `gorm:"column:artifact_id;not null;uniqueIndex:UniqueEvent,priority:1" json:"-"`
ExecutionID int64 `gorm:"column:execution_id;not null;uniqueIndex:UniqueEvent,priority:2;index:idx_event_execution_id,priority:1" json:"-"`
Type int64 `gorm:"column:type;not null;uniqueIndex:UniqueEvent,priority:3" json:"-"`
MillisecondsSinceEpoch *int64 `gorm:"autoCreateTime:milli;column:milliseconds_since_epoch;not null" json:"-"`
// relationships
Artifact Artifact
Execution Execution
}
// TableName Event's table name
func (*Event) TableName() string {
return TableNameEvent
}