2026-07-18 21:58:15 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
type SaProjectEvent struct {
|
2026-07-19 00:06:21 +08:00
|
|
|
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
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
func (SaProjectEvent) TableName() string {
|
|
|
|
|
return "sa_project_events"
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|