From b39415e6956aecd0492360b2466510115846a7c9 Mon Sep 17 00:00:00 2001 From: mStar Date: Mon, 16 Sep 2024 15:49:03 +0200 Subject: [PATCH] Add db access tags to inbound job --- storage/inboundJobs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/inboundJobs.go b/storage/inboundJobs.go index d28447d..909a0a8 100644 --- a/storage/inboundJobs.go +++ b/storage/inboundJobs.go @@ -24,13 +24,13 @@ type InboundJob struct { ID uint `gorm:"primarykey"` CreatedAt time.Time // Raw data, could be json or gob data, check source for how to interpret - RawData []byte + RawData []byte `gorm:"->;<-create"` // Where this job is coming from. Important for figuring out how to decode the raw data and what to do with it - Source InboundJobSource + Source InboundJobSource `gorm:"->;<-create"` // Section: Various data // TODO: Expand based on needs // If from an inbox, include the owner id here - InboxOwner *string + InboxOwner *string `gorm:"->;<-create"` }