mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-11-22 12:27:33 +00:00
16 lines
317 B
Go
16 lines
317 B
Go
|
package database
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type Post struct {
|
||
|
ID string `gorm:"size:36"`
|
||
|
BlobID string
|
||
|
Blob Blob `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
|
||
|
SourceURL string
|
||
|
Tags []Tag `gorm:"many2many:post_tags;constraint:OnDelete:CASCADE"`
|
||
|
CreatedAt time.Time
|
||
|
UpdatedAt time.Time
|
||
|
}
|