更新.gitignore文件,移除不必要的soul-api目录,确保版本控制的清晰性与一致性。

This commit is contained in:
Alex-larget
2026-03-06 17:52:52 +08:00
parent 2af49611e9
commit 9aaffd8024
117 changed files with 13609 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
package model
import (
"time"
"gorm.io/gorm"
)
// AdminUser 后台管理员用户
type AdminUser struct {
ID uint `gorm:"primaryKey" json:"id"`
Username string `gorm:"column:username;size:64;uniqueIndex;not null" json:"username"`
PasswordHash string `gorm:"column:password_hash;size:128;not null" json:"-"`
Role string `gorm:"column:role;size:32;not null;default:admin" json:"role"` // super_admin | admin
Name string `gorm:"column:name;size:64" json:"name"`
Status string `gorm:"column:status;size:16;not null;default:active" json:"status"` // active | disabled
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}
func (AdminUser) TableName() string {
return "admin_users"
}