Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Folder ¶
type Folder struct { Id uuid.UUID `json:"id" gorm:"type:uuid;primary_key"` Name string `json:"name"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` FolderId *uuid.UUID `json:"parentFolderId"` Folder *Folder `json:"-" gorm:"constraint:OnDelete:CASCADE"` Medias []Media `gorm:"constraint:OnDelete:CASCADE" json:"-"` }
type Media ¶
type Media struct { Id uuid.UUID `gorm:"type:uuid;primary_key" json:"id"` Name string `json:"name"` Filename string `json:"filename"` Alt string `json:"alt"` Title string `json:"title"` Size int64 `json:"size"` Filepath string `json:"filepath" gorm:"unique_index"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` FolderId *uuid.UUID `json:"folderId" gorm:"type:uuid"` }
Click to show internal directories.
Click to hide internal directories.