mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 15:53:00 +03:00
18 lines
311 B
Go
18 lines
311 B
Go
package model
|
|
|
|
import (
|
|
datatype "github.com/pocket-id/pocket-id/backend/internal/model/types"
|
|
)
|
|
|
|
type Storage struct {
|
|
Path string `gorm:"primaryKey"`
|
|
Data []byte
|
|
Size int64
|
|
ModTime datatype.DateTime
|
|
CreatedAt datatype.DateTime
|
|
}
|
|
|
|
func (Storage) TableName() string {
|
|
return "storage"
|
|
}
|