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.
|
- package models
-
- import (
- "time"
-
- "code.gitea.io/gitea/modules/timeutil"
- )
-
- const (
- //TempJobIdPrefix = "TEMP"
-
- )
-
- type CloudbrainTemp struct {
- CloudbrainID int64 `xorm:"pk"`
- JobName string
- Type int
- JobType string `xorm:"INDEX NOT NULL DEFAULT 'DEBUG'"`
- Status string `xorm:"INDEX NOT NULL DEFAULT 'TEMP'"`
- QueryTimes int `xorm:"INDEX NOT NULL DEFAULT 0"`
- CreatedUnix timeutil.TimeStamp `xorm:"INDEX"`
- UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
- DeletedAt time.Time `xorm:"deleted"`
- }
-
- func InsertCloudbrainTemp(temp *CloudbrainTemp) (err error) {
- if _, err = x.Insert(temp); err != nil {
- return err
- }
-
- return nil
- }
|