add model identities and restore httpx router

This commit is contained in:
2026-07-19 00:06:21 +08:00
parent f7cd69c70f
commit 4e46fee809
20 changed files with 468 additions and 123 deletions

View File

@@ -4,6 +4,7 @@ import "time"
type SenlinAgentUser struct {
ID uint `gorm:"primaryKey"`
Identity string `gorm:"type:char(36);uniqueIndex"`
Email string `gorm:"uniqueIndex;not null"`
DisplayName string `gorm:"not null"`
PasswordHash string `gorm:"not null"`