mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-04 15:42:44 +08:00
20 lines
519 B
Go
20 lines
519 B
Go
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"
|
|
}
|