package models import "time" type SaAIKey struct { ID uint `gorm:"primaryKey"` Identity string `gorm:"type:char(36);uniqueIndex"` UserID uint `gorm:"uniqueIndex;not null"` UserIdentity string `gorm:"type:char(36);index"` Provider string `gorm:"not null"` EncryptedAPIKey string `gorm:"not null"` CreatedAt time.Time UpdatedAt time.Time } func (SaAIKey) TableName() string { return "sa_ai_keys" }