refactor bug report structure and add API endpoints for bug report management
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user