mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-01 21:47:57 +01:00
20 lines
505 B
Go
20 lines
505 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// Blob holds the details of a blob.
|
||
|
type Blob struct {
|
||
|
ID int64 `orm:"pk;auto;column(id)" json:"id"`
|
||
|
Digest string `orm:"column(digest)" json:"digest"`
|
||
|
ContentType string `orm:"column(content_type)" json:"content_type"`
|
||
|
Size int64 `orm:"column(size)" json:"size"`
|
||
|
CreationTime time.Time `orm:"column(creation_time);auto_now_add" json:"creation_time"`
|
||
|
}
|
||
|
|
||
|
// TableName ...
|
||
|
func (b *Blob) TableName() string {
|
||
|
return "blob"
|
||
|
}
|