21 lines
521 B
Go
21 lines
521 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SaAICallLog struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
Identity string `gorm:"type:char(36);uniqueIndex"`
|
|
UserID uint `gorm:"index;not null"`
|
|
UserIdentity string `gorm:"type:char(36);index"`
|
|
Provider string `gorm:"not null"`
|
|
UsedKeyType string `gorm:"not null"`
|
|
Action string `gorm:"not null"`
|
|
Status string `gorm:"not null"`
|
|
Error string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
func (SaAICallLog) TableName() string {
|
|
return "sa_ai_call_logs"
|
|
}
|