26 lines
639 B
Go
26 lines
639 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type AbstractEntity struct {
|
|
ID uuid.UUID `gorm:"type:uuid;primary_key" json:"id"`
|
|
Version uint `json:"version"`
|
|
CreatedDate time.Time `json:"createdDate"`
|
|
LastModifiedDate time.Time `json:"lastModifiedDate"`
|
|
}
|
|
|
|
type MediaFile struct {
|
|
AbstractEntity
|
|
Url []byte `json:"url"`
|
|
Review []uint8 `json:"review"`
|
|
ShouldDownload []uint8 `json:"shouldDownload"`
|
|
Title []byte `json:"title"`
|
|
CloudLink string `json:"cloudLink"`
|
|
FileName string `json:"fileName"`
|
|
Path string `json:"path"`
|
|
}
|