From 430e29d51bb646b7999d9cb1b0da2bf7ff084e12 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Fri, 6 Feb 2026 16:36:15 +0100 Subject: [PATCH] Sheet: reduce data passed per api --- src/models/sheet.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/models/sheet.go b/src/models/sheet.go index f9cc182..cafda47 100644 --- a/src/models/sheet.go +++ b/src/models/sheet.go @@ -10,13 +10,13 @@ import ( type Sheet struct { Uuid uuid.UUID `json:"uuid" gorm:"type:uuid;primaryKey"` Title string `json:"title" gorm:"not null"` - Description string `json:"description"` - FilePath string `json:"file_path" gorm:"not null"` - FileSize int64 `json:"file_size"` - FileHash string `json:"file_hash"` + Description string `json:"-"` + FilePath string `json:"-" gorm:"not null"` + FileSize int64 `json:"-"` + FileHash string `json:"-"` Composer string `json:"composer"` - CreatedAt time.Time `json:"created_at"` + CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` - Annotations string `json:"annotations"` + Annotations string `json:"-"` }