// 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 TableNameIntentOrg = "intent_org"

// IntentOrg mapped from table <intent_org>
type IntentOrg struct {
	ID               int64          `gorm:"column:id;primaryKey" json:"id"`
	Name             string         `gorm:"column:name;comment:机构名称" json:"name"` // 机构名称
	APIKey           string         `gorm:"column:api_key" json:"api_key"`
	OpenaiBase       string         `gorm:"column:openai_base" json:"openai_base"`
	OpenaiKey        string         `gorm:"column:openai_key" json:"openai_key"`
	IntentCallback   string         `gorm:"column:intent_callback;comment:意向度结果推送地址" json:"intent_callback"`                                   // 意向度结果推送地址
	MismatchCallback string         `gorm:"column:mismatch_callback;comment:未匹配结果推送地址" json:"mismatch_callback"`                               // 未匹配结果推送地址
	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 | 删除日期
	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 | 修改日期
}

// TableName IntentOrg's table name
func (*IntentOrg) TableName() string {
	return TableNameIntentOrg
}
