32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
// Code generated by gorm.io/gen. DO NOT EDIT.
 | 
						||
// Code generated by gorm.io/gen. DO NOT EDIT.
 | 
						||
// Code generated by gorm.io/gen. DO NOT EDIT.
 | 
						||
 | 
						||
package model
 | 
						||
 | 
						||
import (
 | 
						||
	"time"
 | 
						||
)
 | 
						||
 | 
						||
const TableNameAiTask = "ai_task"
 | 
						||
 | 
						||
// AiTask mapped from table <ai_task>
 | 
						||
type AiTask struct {
 | 
						||
	TaskID   int32     `gorm:"column:task_id;primaryKey" json:"task_id"`
 | 
						||
	SysID    int32     `gorm:"column:sys_id;not null" json:"sys_id"`
 | 
						||
	Name     string    `gorm:"column:name;not null" json:"name"`
 | 
						||
	Index    string    `gorm:"column:index;not null" json:"index"`
 | 
						||
	Desc     string    `gorm:"column:desc;not null" json:"desc"`
 | 
						||
	Type     int32     `gorm:"column:type;not null;comment:类型,1:api,2:知识库" json:"type"` // 类型,1:api,2:知识库
 | 
						||
	Config   string    `gorm:"column:config" json:"config"`
 | 
						||
	CreateAt time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
 | 
						||
	UpdateAt time.Time `gorm:"column:update_at;default:CURRENT_TIMESTAMP" json:"update_at"`
 | 
						||
	Status   int32     `gorm:"column:status;not null;default:1" json:"status"`
 | 
						||
	DeleteAt time.Time `gorm:"column:delete_at" json:"delete_at"`
 | 
						||
}
 | 
						||
 | 
						||
// TableName AiTask's table name
 | 
						||
func (*AiTask) TableName() string {
 | 
						||
	return TableNameAiTask
 | 
						||
}
 |