fix(tenant): 收紧双站运营提号与录单边界

This commit is contained in:
yml
2026-11-16 16:12:55 +08:00
parent 1108df195d
commit 1ce9f7aaf5
60 changed files with 1531 additions and 337 deletions
+2 -1
View File
@@ -2,11 +2,12 @@ package model
import "time"
// FileUploadOwner 记录用户上传的私有文件归属,用于业务关联创建前的临时访问授权。
// FileUploadOwner 记录用户或管理员上传的私有文件归属,用于业务关联创建前的临时访问授权。
type FileUploadOwner struct {
ID uint64 `gorm:"primaryKey"`
TenantID uint64 `gorm:"not null;default:0;index:idx_file_upload_owners_tenant_user"`
UserID uint64 `gorm:"not null;index"`
AdminID uint64 `gorm:"not null;default:0;index:idx_file_upload_owners_admin"`
ObjectKey string `gorm:"size:512;not null;uniqueIndex"`
CreatedAt time.Time `json:"created_at"`
}