// 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 TableNameAiBotGroup = "ai_bot_group"

// AiBotGroup mapped from table <ai_bot_group>
type AiBotGroup struct {
	GroupID        int32      `gorm:"column:group_id;primaryKey;autoIncrement:true" json:"group_id"`
	ConversationID string     `gorm:"column:conversation_id;not null;comment:会话ID" json:"conversation_id"`      // 会话ID
	RobotCode      string     `gorm:"column:robot_code;not null;comment:绑定机器人code" json:"robot_code"`           // 绑定机器人code
	ConfigID       int32      `gorm:"column:config_id;not null;comment:关联ai_bot_group_config" json:"config_id"` // 关联ai_bot_group_config
	Title          string     `gorm:"column:title;not null;comment:群名称" json:"title"`                           // 群名称
	Status         int32      `gorm:"column:status;not null;default:1" json:"status"`
	DeleteAt       *time.Time `gorm:"column:delete_at" json:"delete_at"`
	CreateAt       time.Time  `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
}

// TableName AiBotGroup's table name
func (*AiBotGroup) TableName() string {
	return TableNameAiBotGroup
}
