delete token & upload response struct to return delete token and sha256 as hex
This commit is contained in:
@@ -25,6 +25,7 @@ type Upload struct {
|
||||
CreatedAt int64 `gorm:"column:created_at;not null;autoCreateTime" json:"created_at"`
|
||||
ExpiresAt *int64 `gorm:"column:expires_at;index" json:"expires_at"` // null means no expiration
|
||||
LastAccessedAt int64 `gorm:"column:last_accessed_at;not null;autoCreateTime;index" json:"last_accessed_at"`
|
||||
DeleteToken string `gorm:"column:delete_token;not null" json:"-"`
|
||||
}
|
||||
|
||||
func initDatabase(path string) (*gorm.DB, error) {
|
||||
|
||||
Reference in New Issue
Block a user