add event

This commit is contained in:
lzh
2025-08-29 16:25:43 +08:00
parent 1dc2d77e82
commit 143cf61a57
50 changed files with 800 additions and 250 deletions

View File

@@ -0,0 +1,19 @@
package model
import (
"time"
"github.com/lzh-1625/go_process_manager/internal/app/eum"
)
type Event struct {
Id uint64 `gorm:"primaryKey;autoIncrement;column:id" json:"id"`
Name string `gorm:"column:name" json:"name"`
Type eum.EventType `gorm:"column:type" json:"type"`
Additional string `gorm:"column:additional" json:"additional"`
CreatedTime time.Time `gorm:"column:created_time" json:"createdTime"`
}
func (*Event) TableName() string {
return "event"
}