This allows a single table to be used to process images, meaning if anything happens to the system we can always return to polling the database and process these images individually. Because of this we also want an `image` table to contain the actual binary data for the image, so we aren't selecting and writing it each time, as it is potentially a bottleneck.
19 lines
317 B
Go
19 lines
317 B
Go
//
|
|
// Code generated by go-jet DO NOT EDIT.
|
|
//
|
|
// WARNING: Changes to this file may cause incorrect behavior
|
|
// and will be lost if the code is regenerated
|
|
//
|
|
|
|
package model
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type UserImages struct {
|
|
ID uuid.UUID `sql:"primary_key"`
|
|
ImageID uuid.UUID
|
|
UserID uuid.UUID
|
|
}
|