Sheet: reduce data passed per api
This commit is contained in:
@@ -10,13 +10,13 @@ import (
|
|||||||
type Sheet struct {
|
type Sheet struct {
|
||||||
Uuid uuid.UUID `json:"uuid" gorm:"type:uuid;primaryKey"`
|
Uuid uuid.UUID `json:"uuid" gorm:"type:uuid;primaryKey"`
|
||||||
Title string `json:"title" gorm:"not null"`
|
Title string `json:"title" gorm:"not null"`
|
||||||
Description string `json:"description"`
|
Description string `json:"-"`
|
||||||
FilePath string `json:"file_path" gorm:"not null"`
|
FilePath string `json:"-" gorm:"not null"`
|
||||||
FileSize int64 `json:"file_size"`
|
FileSize int64 `json:"-"`
|
||||||
FileHash string `json:"file_hash"`
|
FileHash string `json:"-"`
|
||||||
Composer string `json:"composer"`
|
Composer string `json:"composer"`
|
||||||
CreatedAt time.Time `json:"created_at"`
|
CreatedAt time.Time `json:"-"`
|
||||||
UpdatedAt time.Time `json:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
|
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
|
||||||
Annotations string `json:"annotations"`
|
Annotations string `json:"-"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user