19 lines
460 B
Go
19 lines
460 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SaDocumentBlob struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
DocumentID uint `gorm:"uniqueIndex;not null"`
|
|
StorageKey string `gorm:"size:64;uniqueIndex;not null"`
|
|
RelativePath string `gorm:"not null"`
|
|
OriginalName string `gorm:"not null"`
|
|
Checksum string `gorm:"size:64;not null"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (SaDocumentBlob) TableName() string {
|
|
return "sa_document_blobs"
|
|
}
|