mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 06:32:44 -05:00
21 lines
561 B
Go
21 lines
561 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/datatypes"
|
|
)
|
|
|
|
type Media struct {
|
|
ID string `gorm:"primaryKey"`
|
|
Title string `gorm:"not null"`
|
|
Description string `gorm:"not null"`
|
|
Tags datatypes.JSON `gorm:"type:json"`
|
|
AlbumID string `gorm:"not null"`
|
|
Path string `gorm:"not null"`
|
|
Type string `gorm:"not null"` // MIME type
|
|
Metadata datatypes.JSON `gorm:"type:json"` // Metadata about the media.
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|