// 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 TableNameToken = "token"

// Token Token表
type Token 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 | 修改日期
	DeletedAt       gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除时间" json:"deleted_at"`                                    // Delete Time | 删除时间
	ExpireAt        time.Time      `gorm:"column:expire_at;comment:过期时间" json:"expire_at"`                                                    // 过期时间
	Token           string         `gorm:"column:token;comment:Token" json:"token"`                                                           // Token
	Mac             string         `gorm:"column:mac;comment:Mac地址" json:"mac"`                                                               // Mac地址
	Remark          string         `gorm:"column:remark;comment:备注" json:"remark"`                                                            // 备注
	OrganizationID  int64          `gorm:"column:organization_id;comment:租户ID" json:"organization_id"`                                        // 租户ID
	AgentID         int64          `gorm:"column:agent_id;comment:0 定制" json:"agent_id"`                                                      // 0 定制
	CustomAgentBase string         `gorm:"column:custom_agent_base;comment:定制agent服务地址" json:"custom_agent_base"`                             // 定制agent服务地址
	CustomAgentKey  string         `gorm:"column:custom_agent_key;comment:定制agent服务密钥" json:"custom_agent_key"`                               // 定制agent服务密钥
	OpenaiBase      string         `gorm:"column:openai_base;comment:大模型服务地址" json:"openai_base"`                                             // 大模型服务地址
	OpenaiKey       string         `gorm:"column:openai_key;comment:大模型服务密钥" json:"openai_key"`                                               // 大模型服务密钥
}

// TableName Token's table name
func (*Token) TableName() string {
	return TableNameToken
}