func (d *Job) TableName() string {
	return "ra_jobs"
}
TableName job database table name
package model
import (
	"github.com/streetbyters/agente/database"
	"gopkg.in/guregu/null.v3/zero"
	"time"
)
type Job struct {
	database.DBInterface `json:"-"`
	ID                   int64      `db:"id" json:"id"`
	NodeID               int64      `db:"node_id" json:"node_id" foreign:"fk_ra_jobs_node_id" validate:"required"`
	SourceUserID         zero.Int   `db:"source_user_id" json:"source_user_id" foreign:"fk_ra_jobs_source_user_id"`
	InsertedAt           time.Time  `db:"inserted_at" json:"inserted_at"`
	Detail               *JobDetail `json:"detail"`
}
func NewJob() *Job {
	return &Job{}
}