fix(tenant): 收紧双站运营提号与录单边界
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user