2025-01-17 20:51:50 +01:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.23.0
|
|
|
|
|
|
|
|
package repositories
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/google/uuid"
|
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
|
|
)
|
|
|
|
|
2025-01-19 11:33:38 +01:00
|
|
|
type DeadLetter struct {
|
|
|
|
ScheduleID uuid.UUID `json:"schedule_id"`
|
|
|
|
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
|
|
|
}
|
|
|
|
|
2025-01-18 01:46:37 +01:00
|
|
|
type ModelSchedule struct {
|
|
|
|
ModelName string `json:"model_name"`
|
|
|
|
LastRun pgtype.Timestamptz `json:"last_run"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WorkSchedule struct {
|
|
|
|
ScheduleID uuid.UUID `json:"schedule_id"`
|
|
|
|
WorkerID uuid.UUID `json:"worker_id"`
|
|
|
|
StartRun pgtype.Timestamptz `json:"start_run"`
|
|
|
|
EndRun pgtype.Timestamptz `json:"end_run"`
|
|
|
|
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
|
|
|
State string `json:"state"`
|
|
|
|
}
|
|
|
|
|
2025-01-17 20:51:50 +01:00
|
|
|
type WorkerRegister struct {
|
|
|
|
WorkerID uuid.UUID `json:"worker_id"`
|
2025-01-18 01:46:37 +01:00
|
|
|
Capacity int32 `json:"capacity"`
|
2025-01-17 20:51:50 +01:00
|
|
|
HeartBeat pgtype.Timestamptz `json:"heart_beat"`
|
|
|
|
}
|