refactor bug report structure and add API endpoints for bug report management

This commit is contained in:
Flavio Fois
2026-03-17 15:08:54 +01:00
parent 08ff1da469
commit 8097be88a6
6 changed files with 289 additions and 12 deletions

View File

@@ -12,10 +12,11 @@ const (
type BugReportFile struct {
ID int64 `db:"id" json:"id"`
BugReportID int64 `db:"bug_report_id" json:"bug_report_id"`
BugReportID int64 `db:"report_id" json:"report_id"`
FileRole FileRole `db:"file_role" json:"file_role"`
Filename string `db:"filename" json:"filename"`
MimeType string `db:"mime_type" json:"mime_type"`
Role FileRole `db:"role" json:"role"`
FileSize int64 `db:"file_size" json:"file_size"`
Data []byte `db:"data" json:"-"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
}