model

package
v0.0.0-...-0aa3dee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID        uuid.UUID    `gorm:"type:uuid;primary_key;"`
	Name      string       `gorm:"type:string;size:256;not null"`
	Image     string       `gorm:"type:string;size:256;not null"`
	Namespace string       `gorm:"type:string;size:64;not null"`
	Runtime   string       `gorm:"type:string;size:32;not null"`
	Status    string       `gorm:"type:string;size:32;not null"`
	Script    string       `gorm:"type:string;size:1000;not null"`
	Result    string       `gorm:"type:string;size:1000"`
	CreatedAt time.Time    `gorm:"type:TIMESTAMP with time zone;not null"`
	UpdatedAt sql.NullTime `gorm:"type:TIMESTAMP with time zone;null"`
}

func (*Task) BeforeCreate

func (task *Task) BeforeCreate(tx *gorm.DB) (err error)

func (*Task) BeforeUpdate

func (task *Task) BeforeUpdate(tx *gorm.DB) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL