@@ -32,6 +32,8 @@ type (
|
|||||||
ID gid.GID
|
ID gid.GID
|
||||||
TaskID gid.GID
|
TaskID gid.GID
|
||||||
ObjectKey string
|
ObjectKey string
|
||||||
|
MimeType string
|
||||||
|
Size uint64
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
}
|
}
|
||||||
@@ -48,6 +50,8 @@ func (e *Evidence) scan(r pgx.Row) error {
|
|||||||
&e.ID,
|
&e.ID,
|
||||||
&e.TaskID,
|
&e.TaskID,
|
||||||
&e.ObjectKey,
|
&e.ObjectKey,
|
||||||
|
&e.MimeType,
|
||||||
|
&e.Size,
|
||||||
&e.CreatedAt,
|
&e.CreatedAt,
|
||||||
&e.UpdatedAt,
|
&e.UpdatedAt,
|
||||||
)
|
)
|
||||||
@@ -65,6 +69,8 @@ SELECT
|
|||||||
id,
|
id,
|
||||||
task_id,
|
task_id,
|
||||||
object_key,
|
object_key,
|
||||||
|
mime_type,
|
||||||
|
size,
|
||||||
created_at,
|
created_at,
|
||||||
updated_at
|
updated_at
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
3
pkg/probo/coredata/migrations/20250130T210000Z.sql
Normal file
3
pkg/probo/coredata/migrations/20250130T210000Z.sql
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE evidences
|
||||||
|
ADD COLUMN mime_type TEXT NOT NULL,
|
||||||
|
ADD COLUMN size NUMERIC NOT NULL;
|
||||||
Reference in New Issue
Block a user