import ( "time" "github.com/pingcap/tidb/model" ) func createJob() *model.Job { job := &model.Job{ Type: model.ActionAddIndex, State: model.JobStateNone, CreateTime: time.Now(), } return job } func updateJobState(job *model.Job, newState model.JobState) { job.State = newState job.UpdateTime = time.Now() }In this example, the createJob function creates a new Job instance with the type set to "ADD INDEX" and the state set to "NONE". The create time is set to the current time. The updateJobState function updates the state of an existing Job instance and sets the update time to the current time. The newState parameter is the new state to set for the job. Overall, this package from PingCAP appears to be part of the TiDB database system, providing functionality related to managing jobs within the database.