-
Notifications
You must be signed in to change notification settings - Fork 127
/
models.go
55 lines (50 loc) · 2.1 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.22.0
package database
import (
"github.com/jackc/pgx/v5/pgtype"
)
type Job struct {
JobID string `db:"job_id"`
Queue string `db:"queue"`
Owner string `db:"owner"`
Jobset string `db:"jobset"`
Cpu int64 `db:"cpu"`
Memory int64 `db:"memory"`
EphemeralStorage int64 `db:"ephemeral_storage"`
Gpu int64 `db:"gpu"`
Priority int64 `db:"priority"`
Submitted pgtype.Timestamp `db:"submitted"`
Cancelled pgtype.Timestamp `db:"cancelled"`
State int16 `db:"state"`
LastTransitionTime pgtype.Timestamp `db:"last_transition_time"`
LastTransitionTimeSeconds int64 `db:"last_transition_time_seconds"`
JobSpec []byte `db:"job_spec"`
Duplicate bool `db:"duplicate"`
PriorityClass *string `db:"priority_class"`
LatestRunID *string `db:"latest_run_id"`
CancelReason *string `db:"cancel_reason"`
Namespace *string `db:"namespace"`
Annotations []byte `db:"annotations"`
}
type JobRun struct {
RunID string `db:"run_id"`
JobID string `db:"job_id"`
Cluster string `db:"cluster"`
Node *string `db:"node"`
Pending pgtype.Timestamp `db:"pending"`
Started pgtype.Timestamp `db:"started"`
Finished pgtype.Timestamp `db:"finished"`
JobRunState int16 `db:"job_run_state"`
Error []byte `db:"error"`
ExitCode *int32 `db:"exit_code"`
Leased pgtype.Timestamp `db:"leased"`
}
type UserAnnotationLookup struct {
JobID string `db:"job_id"`
Key string `db:"key"`
Value string `db:"value"`
Queue string `db:"queue"`
Jobset string `db:"jobset"`
}