From aab4bb4d6955b055eb5ab09a595f5c29819b3d22 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 22 Jan 2024 17:48:32 -0500 Subject: [PATCH] refactor: add completed column to tus_upload --- db/models/tus_upload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/db/models/tus_upload.go b/db/models/tus_upload.go index e738883..7402ead 100644 --- a/db/models/tus_upload.go +++ b/db/models/tus_upload.go @@ -10,5 +10,6 @@ type TusUpload struct { UploaderIP string Uploader User `gorm:"foreignKey:UploaderID"` Protocol string + Completed bool DeletedAt gorm.DeletedAt `gorm:"uniqueIndex:idx_hash_deleted"` }