mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-03-15 23:25:35 +07:00
14 lines
367 B
Go
14 lines
367 B
Go
|
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"
|
||
|
}
|