Add db access tags to inbound job

This commit is contained in:
Melody Becker 2024-09-16 15:49:03 +02:00
parent 9a7e420c83
commit b39415e695

View file

@ -24,13 +24,13 @@ type InboundJob struct {
ID uint `gorm:"primarykey"` ID uint `gorm:"primarykey"`
CreatedAt time.Time CreatedAt time.Time
// Raw data, could be json or gob data, check source for how to interpret // 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 // 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 // Section: Various data
// TODO: Expand based on needs // TODO: Expand based on needs
// If from an inbox, include the owner id here // If from an inbox, include the owner id here
InboxOwner *string InboxOwner *string `gorm:"->;<-create"`
} }