fix(tenant): 封堵审计文件与历史用户跨站访问
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
type AuditLog struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
TenantID uint64 `gorm:"not null;default:0;index:idx_audit_logs_tenant_created" json:"tenant_id"`
|
||||
ActorType string `gorm:"size:32;not null" json:"actor_type"`
|
||||
ActorID uint64 `gorm:"not null;index" json:"actor_id"`
|
||||
Action string `gorm:"size:64;not null" json:"action"`
|
||||
|
||||
Reference in New Issue
Block a user