package entity

import "go.mongodb.org/mongo-driver/bson/primitive"

const EventCollectionName = "job_events"

type Event struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	JobID    string             `bson:"job_id"`
	Type     string             `bson:"type"`
	From     string             `bson:"from,omitempty"`
	To       string             `bson:"to,omitempty"`
	Message  string             `bson:"message"`
	Metadata map[string]any     `bson:"metadata,omitempty"`
	CreateAt int64              `bson:"create_at"`
}
