12345678910111213141516171819202122232425262728293031323334 |
- // 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"
- "gorm.io/gorm"
- )
- const TableNameAgent = "agent"
- // Agent mapped from table <agent>
- type Agent struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
- UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
- Status int64 `gorm:"column:status;default:1;comment:状态 1 正常 2 禁用" json:"status"` // 状态 1 正常 2 禁用
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
- Name string `gorm:"column:name;comment:agent 名称" json:"name"` // agent 名称
- Role string `gorm:"column:role;comment:角色设定" json:"role"` // 角色设定
- Background string `gorm:"column:background;comment:背景介绍" json:"background"` // 背景介绍
- Examples string `gorm:"column:examples;comment:对话案例" json:"examples"` // 对话案例
- OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
- DatasetID string `gorm:"column:dataset_id;comment:知识库ID" json:"dataset_id"` // 知识库ID
- CollectionID string `gorm:"column:collection_id;comment:集合ID" json:"collection_id"` // 集合ID
- }
- // TableName Agent's table name
- func (*Agent) TableName() string {
- return TableNameAgent
- }
|