package event

import "time"

type EventType string

func (t EventType) String() string {
	return string(t)
}

type BaseEvent struct {
	ID            uint64     `json:"id"`
	OperatorEmail string     `json:"operator_email"`
	OperateAt     *time.Time `json:"operate_at"` // time.Datetime
	EventType     EventType  `json:"event_type"`
}

type UpdatedField struct {
	Field string  `json:"field"`
	From  *string `json:"from"`
	To    *string `json:"to"`
}
