delete token & upload response struct to return delete token and sha256 as hex

This commit is contained in:
2026-11-10 12:05:33 -05:00
parent 33b1b579d6
commit 4c25a66f0f
3 changed files with 15 additions and 5 deletions
+1
View File
@@ -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) {