-
Notifications
You must be signed in to change notification settings - Fork 0
/
TaskBatchSchedule.go
132 lines (110 loc) · 7.2 KB
/
TaskBatchSchedule.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
package testassets
import (
"encoding/json"
"github.com/macinnir/dvc/core/lib/utils/db"
"github.com/macinnir/dvc/core/lib/utils/query"
)
const (
// TaskBatchSchedule_SchemaName is the name of the schema group this model is in
TaskBatchSchedule_SchemaName = "dvc"
// TaskBatchSchedule_TableName is the name of the table
TaskBatchSchedule_TableName query.TableName = "TaskBatchSchedule"
// Columns
TaskBatchSchedule_Column_TaskBatchScheduleID query.Column = "TaskBatchScheduleID"
TaskBatchSchedule_Column_TaskBatchID query.Column = "TaskBatchID"
TaskBatchSchedule_Column_DOM query.Column = "DOM"
TaskBatchSchedule_Column_DOW query.Column = "DOW"
TaskBatchSchedule_Column_HOD query.Column = "HOD"
TaskBatchSchedule_Column_MOH query.Column = "MOH"
TaskBatchSchedule_Column_DateCreated query.Column = "DateCreated"
TaskBatchSchedule_Column_IsDeleted query.Column = "IsDeleted"
TaskBatchSchedule_Column_IsActive query.Column = "IsActive"
TaskBatchSchedule_Column_CurrentStatus query.Column = "CurrentStatus"
TaskBatchSchedule_Column_LastRunDate query.Column = "LastRunDate"
TaskBatchSchedule_Column_LastSuccessDate query.Column = "LastSuccessDate"
TaskBatchSchedule_Column_LastErrorDate query.Column = "LastErrorDate"
TaskBatchSchedule_Column_NumFailed query.Column = "NumFailed"
TaskBatchSchedule_Column_NumFinished query.Column = "NumFinished"
TaskBatchSchedule_Column_NumAttempted query.Column = "NumAttempted"
)
var (
// TaskBatchSchedule_Columns is a list of all the columns
TaskBatchSchedule_Columns = []query.Column{
TaskBatchSchedule_Column_TaskBatchScheduleID, TaskBatchSchedule_Column_TaskBatchID, TaskBatchSchedule_Column_DOM, TaskBatchSchedule_Column_DOW, TaskBatchSchedule_Column_HOD, TaskBatchSchedule_Column_MOH, TaskBatchSchedule_Column_DateCreated, TaskBatchSchedule_Column_IsDeleted, TaskBatchSchedule_Column_IsActive, TaskBatchSchedule_Column_CurrentStatus, TaskBatchSchedule_Column_LastRunDate, TaskBatchSchedule_Column_LastSuccessDate, TaskBatchSchedule_Column_LastErrorDate, TaskBatchSchedule_Column_NumFailed, TaskBatchSchedule_Column_NumFinished, TaskBatchSchedule_Column_NumAttempted}
// TaskBatchSchedule_Column_Types maps columns to their string types
TaskBatchSchedule_Column_Types = map[query.Column]string{
TaskBatchSchedule_Column_TaskBatchScheduleID: "%d", TaskBatchSchedule_Column_TaskBatchID: "%d", TaskBatchSchedule_Column_DOM: "%d", TaskBatchSchedule_Column_DOW: "%d", TaskBatchSchedule_Column_HOD: "%d", TaskBatchSchedule_Column_MOH: "%d", TaskBatchSchedule_Column_DateCreated: "%d", TaskBatchSchedule_Column_IsDeleted: "%d", TaskBatchSchedule_Column_IsActive: "%d", TaskBatchSchedule_Column_CurrentStatus: "%d", TaskBatchSchedule_Column_LastRunDate: "%d", TaskBatchSchedule_Column_LastSuccessDate: "%d", TaskBatchSchedule_Column_LastErrorDate: "%d", TaskBatchSchedule_Column_NumFailed: "%d", TaskBatchSchedule_Column_NumFinished: "%d", TaskBatchSchedule_Column_NumAttempted: "%d"}
// TaskBatchSchedule_UpdateColumns is a list of all update columns for this model
TaskBatchSchedule_UpdateColumns = []query.Column{TaskBatchSchedule_Column_TaskBatchID, TaskBatchSchedule_Column_DOM, TaskBatchSchedule_Column_DOW, TaskBatchSchedule_Column_HOD, TaskBatchSchedule_Column_MOH, TaskBatchSchedule_Column_IsDeleted, TaskBatchSchedule_Column_IsActive, TaskBatchSchedule_Column_CurrentStatus, TaskBatchSchedule_Column_LastRunDate, TaskBatchSchedule_Column_LastSuccessDate, TaskBatchSchedule_Column_LastErrorDate, TaskBatchSchedule_Column_NumFailed, TaskBatchSchedule_Column_NumFinished, TaskBatchSchedule_Column_NumAttempted}
// TaskBatchSchedule_InsertColumns is a list of all insert columns for this model
TaskBatchSchedule_InsertColumns = []query.Column{TaskBatchSchedule_Column_TaskBatchID, TaskBatchSchedule_Column_DOM, TaskBatchSchedule_Column_DOW, TaskBatchSchedule_Column_HOD, TaskBatchSchedule_Column_MOH, TaskBatchSchedule_Column_DateCreated, TaskBatchSchedule_Column_IsActive, TaskBatchSchedule_Column_CurrentStatus, TaskBatchSchedule_Column_LastRunDate, TaskBatchSchedule_Column_LastSuccessDate, TaskBatchSchedule_Column_LastErrorDate, TaskBatchSchedule_Column_NumFailed, TaskBatchSchedule_Column_NumFinished, TaskBatchSchedule_Column_NumAttempted}
// TaskBatchSchedule_PrimaryKey is the name of the table's primary key
TaskBatchSchedule_PrimaryKey query.Column = "TaskBatchScheduleID"
)
// TaskBatchSchedule is a `TaskBatchSchedule` data model
type TaskBatchSchedule struct {
TaskBatchScheduleID int64 `db:"TaskBatchScheduleID" json:"TaskBatchScheduleID"`
TaskBatchID int64 `db:"TaskBatchID" json:"TaskBatchID"`
DOM int64 `db:"DOM" json:"DOM"`
DOW int64 `db:"DOW" json:"DOW"`
HOD int64 `db:"HOD" json:"HOD"`
MOH int64 `db:"MOH" json:"MOH"`
DateCreated int64 `db:"DateCreated" json:"DateCreated"`
IsDeleted int `db:"IsDeleted" json:"IsDeleted"`
IsActive int `db:"IsActive" json:"IsActive"`
CurrentStatus int `db:"CurrentStatus" json:"CurrentStatus"`
LastRunDate int64 `db:"LastRunDate" json:"LastRunDate"`
LastSuccessDate int64 `db:"LastSuccessDate" json:"LastSuccessDate"`
LastErrorDate int64 `db:"LastErrorDate" json:"LastErrorDate"`
NumFailed int64 `db:"NumFailed" json:"NumFailed"`
NumFinished int64 `db:"NumFinished" json:"NumFinished"`
NumAttempted int64 `db:"NumAttempted" json:"NumAttempted"`
}
// TaskBatchSchedule_TableName is the name of the table
func (c *TaskBatchSchedule) Table_Name() query.TableName {
return TaskBatchSchedule_TableName
}
func (c *TaskBatchSchedule) Table_Columns() []query.Column {
return TaskBatchSchedule_Columns
}
// Table_ColumnTypes returns a map of tableColumn names with their fmt string types
func (c *TaskBatchSchedule) Table_Column_Types() map[query.Column]string {
return TaskBatchSchedule_Column_Types
}
// Table_PrimaryKey returns the name of this table's primary key
func (c *TaskBatchSchedule) Table_PrimaryKey() query.Column {
return TaskBatchSchedule_PrimaryKey
}
// Table_PrimaryKey_Value returns the value of this table's primary key
func (c *TaskBatchSchedule) Table_PrimaryKey_Value() int64 {
return c.TaskBatchScheduleID
}
// Table_InsertColumns is a list of all insert columns for this model
func (c *TaskBatchSchedule) Table_InsertColumns() []query.Column {
return TaskBatchSchedule_InsertColumns
}
// Table_UpdateColumns is a list of all update columns for this model
func (c *TaskBatchSchedule) Table_UpdateColumns() []query.Column {
return TaskBatchSchedule_UpdateColumns
}
// TaskBatchSchedule_SchemaName is the name of this table's schema
func (c *TaskBatchSchedule) Table_SchemaName() string {
return TaskBatchSchedule_SchemaName
}
// String returns a json marshalled string of the object
func (c *TaskBatchSchedule) String() string {
bytes, _ := json.Marshal(c)
return string(bytes)
}
func (c *TaskBatchSchedule) Create(db db.IDB) error {
return nil
}
func (c *TaskBatchSchedule) Update(db db.IDB) error {
return nil
}
func (c *TaskBatchSchedule) Delete(db db.IDB) error {
return nil
}
func (c *TaskBatchSchedule) FromID(db db.IDB, id int64) (query.IModel, error) {
return nil, nil
}