Files
mtusi2026lab5/backend/internal/domain/model/job.go
T

25 lines
680 B
Go

package model
import (
"github.com/google/uuid"
"time"
)
type Variant struct {
Name string `json:"name"`
ContentType string `json:"content_type"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
Width int `json:"width"`
Height int `json:"height"`
}
type Job struct {
ID uuid.UUID `json:"job_id"`
AttachmentID uuid.UUID `json:"attachment_id"`
PipelineVersion int32 `json:"pipeline_version"`
Attempt int32 `json:"attempt"`
CreatedAt time.Time `json:"created_at"`
Traceparent string `json:"traceparent,omitempty"`
Tracestate string `json:"tracestate,omitempty"`
}