You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cloudbrain_temp.go 720 B

1234567891011121314151617181920212223242526272829303132
  1. package models
  2. import (
  3. "time"
  4. "code.gitea.io/gitea/modules/timeutil"
  5. )
  6. const (
  7. //TempJobIdPrefix = "TEMP"
  8. )
  9. type CloudbrainTemp struct {
  10. CloudbrainID int64 `xorm:"pk"`
  11. JobName string
  12. Type int
  13. JobType string `xorm:"INDEX NOT NULL DEFAULT 'DEBUG'"`
  14. Status string `xorm:"INDEX NOT NULL DEFAULT 'TEMP'"`
  15. QueryTimes int `xorm:"INDEX NOT NULL DEFAULT 0"`
  16. CreatedUnix timeutil.TimeStamp `xorm:"INDEX"`
  17. UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
  18. DeletedAt time.Time `xorm:"deleted"`
  19. }
  20. func InsertCloudbrainTemp(temp *CloudbrainTemp) (err error) {
  21. if _, err = x.Insert(temp); err != nil {
  22. return err
  23. }
  24. return nil
  25. }