// 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 TableNameAllocAgent = "alloc_agent"

// AllocAgent mapped from table <alloc_agent>
type AllocAgent struct {
	ID             int64          `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	CreatedAt      time.Time      `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
	UpdatedAt      time.Time      `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
	Status         int64          `gorm:"column:status;not null;default:1;comment:状态 1 正常 2 禁用" json:"status"`                               // 状态 1 正常 2 禁用
	DeletedAt      gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`                                    // Delete Time | 删除日期
	UserID         string         `gorm:"column:user_id;comment:前台用户ID" json:"user_id"`                                                      // 前台用户ID
	OrganizationID int64          `gorm:"column:organization_id;comment:机构 ID" json:"organization_id"`                                       // 机构 ID
	Agents         string         `gorm:"column:agents;comment:分配的智能体ID" json:"agents"`                                                      // 分配的智能体ID
}

// TableName AllocAgent's table name
func (*AllocAgent) TableName() string {
	return TableNameAllocAgent
}
