golang.org/x/build@v0.0.0-20240506185731-218518f32b70/internal/relui/db/models.go (about) 1 // Code generated by sqlc. DO NOT EDIT. 2 // versions: 3 // sqlc v1.15.0 4 5 package db 6 7 import ( 8 "database/sql" 9 "time" 10 11 "github.com/google/uuid" 12 ) 13 14 type Schedule struct { 15 ID int32 16 WorkflowName string 17 WorkflowParams sql.NullString 18 Spec string 19 Once time.Time 20 IntervalMinutes int32 21 CreatedAt time.Time 22 UpdatedAt time.Time 23 } 24 25 type Task struct { 26 WorkflowID uuid.UUID 27 Name string 28 Finished bool 29 Result sql.NullString 30 Error sql.NullString 31 CreatedAt time.Time 32 UpdatedAt time.Time 33 ApprovedAt sql.NullTime 34 ReadyForApproval bool 35 Started bool 36 RetryCount int32 37 } 38 39 type TaskLog struct { 40 ID int32 41 WorkflowID uuid.UUID 42 TaskName string 43 Body string 44 CreatedAt time.Time 45 UpdatedAt time.Time 46 } 47 48 type Workflow struct { 49 ID uuid.UUID 50 Params sql.NullString 51 Name sql.NullString 52 CreatedAt time.Time 53 UpdatedAt time.Time 54 Finished bool 55 Output string 56 Error string 57 ScheduleID sql.NullInt32 58 }