package repository

import (
	"context"

	"haixun-backend/internal/model/job/domain/entity"
)

type EventRepository interface {
	EnsureIndexes(ctx context.Context) error
	Append(ctx context.Context, event *entity.Event) error
	ListByJobID(ctx context.Context, jobID string, limit int64) ([]*entity.Event, error)
}
