Adding queues and storage is now postgres only

This commit is contained in:
Melody Becker 2024-09-15 12:24:36 +02:00
parent 7ec0ce5a45
commit 1c2472cc2c
11 changed files with 368 additions and 31 deletions

13
storage/outboundJobs.go Normal file
View file

@ -0,0 +1,13 @@
package storage
import (
"gorm.io/gorm"
)
type OutboundJob struct {
gorm.Model // Include full model. Gives ID, created and updated at timestamps as well as soft deletes
// Read (and create) only values to ensure consistency
TargetServer string `gorm:"->;<-:create"` // The url of the target server
TargetPath string `gorm:"->;<-:create"` // The full path of api endpoint targeted
Data []byte `gorm:"->;<-:create"` // The raw data to send
}