Files
agent/backend/internal/models/project_event.go

23 lines
695 B
Go

package models
import "time"
type SaProjectEvent struct {
ID uint `gorm:"primaryKey"`
Identity string `gorm:"type:char(36);uniqueIndex"`
ProjectID uint `gorm:"index;not null"`
ProjectIdentity string `gorm:"type:char(36);index"`
ActorID uint `gorm:"index;not null"`
ActorIdentity string `gorm:"type:char(36);index"`
EventType string `gorm:"not null"`
EntityType string `gorm:"not null"`
EntityID uint `gorm:"not null;index"`
EntityIdentity string `gorm:"type:char(36);index"`
Summary string `gorm:"not null"`
CreatedAt time.Time
}
func (SaProjectEvent) TableName() string {
return "sa_project_events"
}