Use config from .env and update api

This commit is contained in:
2026-01-24 18:09:24 +01:00
parent 1e02e659ab
commit 1c26770db0
11 changed files with 171 additions and 44 deletions

View File

@@ -8,15 +8,15 @@ 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 uint64 `json:"file_hash"`
ComposerId uuid.UUID `json:"composer_id"`
Composer Composer `json:"composer" gorm:"foreignKey:ComposerId"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
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 uint64 `json:"file_hash"`
ComposerUuid uuid.UUID `json:"composer_uuid"`
Composer Composer `json:"composer" gorm:"foreignKey:ComposerUuid"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
}