37 lines
1.6 KiB
Go
37 lines
1.6 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 TableNameAiGenerateTask = "ai_generate_task"
|
|
|
|
// AiGenerateTask mapped from table <ai_generate_task>
|
|
type AiGenerateTask struct {
|
|
ID int32 `gorm:"column:id;primaryKey" json:"id"`
|
|
TaskID string `gorm:"column:task_id;not null" json:"task_id"`
|
|
RepoURL string `gorm:"column:repo_url;not null" json:"repo_url"`
|
|
CodeType string `gorm:"column:code_type;not null" json:"code_type"`
|
|
Interfaces string `gorm:"column:interfaces" json:"interfaces"`
|
|
GenerateType int32 `gorm:"column:generate_type;not null;default:1" json:"generate_type"`
|
|
Error string `gorm:"column:error" json:"error"`
|
|
Desc string `gorm:"column:desc;not null" json:"desc"`
|
|
UseAge string `gorm:"column:useage;not null" json:"use_age"`
|
|
CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"`
|
|
TaskStatus string `gorm:"column:task_status;not null" json:"task_status"`
|
|
CompletedAt *time.Time `gorm:"column:completed_at" json:"completed_at"`
|
|
Status int32 `gorm:"column:status;not null;default:1" json:"status"`
|
|
DeletedAt *time.Time `gorm:"column:deleted_at" json:"deleted_at"`
|
|
LlmModel string `gorm:"column:llm_model;not null" json:"llm_model"`
|
|
}
|
|
|
|
// TableName AiGenerateTask's table name
|
|
func (*AiGenerateTask) TableName() string {
|
|
return TableNameAiGenerateTask
|
|
}
|