Skip to content

Commit

Permalink
refact(model): media resource and user fields for brainx
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Dec 3, 2024
1 parent a959be3 commit 79e777a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/model/media/mediaresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
type MediaResource struct {
powermodel.PowerUUIDModel

TenantUUID uuid.UUID `gorm:"type:uuid;foreignKey:TenantUUID;references:UUID"`
CreatedUserBy uuid.UUID `gorm:"type:uuid;foreignKey:CreatedUserBy;references:UUID;"`
TenantUUID uuid.UUID `gorm:"type:uuid;foreignKey:TenantUUID;references:UUID" json:"tenantUUID"`
CreatedUserBy uuid.UUID `gorm:"type:uuid;foreignKey:CreatedUserBy;references:UUID;" json:"createdUserBy"`
CustomerId int64 `gorm:"comment:客户Id; index" json:"customerId"`
Filename string `gorm:"comment:名称" json:"filename"`
Size int64 `gorm:"comment:尺寸" json:"size"`
Expand All @@ -22,6 +22,7 @@ type MediaResource struct {
IsLocalStored bool `gorm:"comment:是否本地存储" json:"isLocalStored"`
ContentType string `gorm:"comment:内容类型" json:"contentType"`
ResourceType string `gorm:"comment:媒体类型" json:"mediaType"`
SortIndex int `gorm:"comment:排序索引" json:"sortIndex"`
}

type MediaSet struct {
Expand Down

0 comments on commit 79e777a

Please sign in to comment.