mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
type EventModel struct {
|
||||
UUID string `gorm:"primaryKey" json:"uuid"`
|
||||
SourceID string `gorm:"index" json:"source_id"`
|
||||
Name string `json:"name"`
|
||||
Properties string `gorm:"serializer:json" json:"properties"`
|
||||
Timestamp int64 `gorm:"autoCreateTime:milli" json:"timestamp"`
|
||||
}
|
||||
|
||||
func (p *EventModel) TableName() string {
|
||||
return "events"
|
||||
}
|
||||
Reference in New Issue
Block a user