Documentation ¶
Overview ¶
m20211221_1 handles adding the `Errors` field to Job
Index ¶
Constants ¶
View Source
const ID = "20211221_1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct { ID uuid.UUID `gorm:"column:id;primary_key;type:uuid;"` Type string `gorm:"column:type"` State State `gorm:"column:state;default:INIT"` Error string `gorm:"column:error"` Errors pq.StringArray `gorm:"column:errors;type:text[]"` Result string `gorm:"column:result"` TransactionID string `gorm:"column:transaction_id"` ExecCount int `gorm:"column:exec_count;default:0"` CreatedAt time.Time `gorm:"column:created_at"` UpdatedAt time.Time `gorm:"column:updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index"` ShouldSendNotification bool `gorm:"-"` // Whether or not to notify admin (via webhook for example) Attributes datatypes.JSON `gorm:"attributes"` }
Job database model
Click to show internal directories.
Click to hide internal directories.