Open
Description
// File is an object representing the database table.
type File struct {
ID uuid.UUID `db:"id,pk" json:"id"`
SensorID uuid.UUID `db:"sensor_id" json:"sensor_id"`
.
.
.
R fileR `db:"-" json:"-"`
}
// fileR is where relationships are stored.
type fileR struct {
Reading *Reading `json:"Reading"` // files.files_reading_id_fkey
Sensor *Sensor `json:"Sensor"` // files.files_sensor_id_fkey
StatusFileStatus *FileStatus `json:"StatusFileStatus"` // files.files_status_id_fkey
}
Is there a way to generate the json tags for relationships with snake case format? Currently they are being generated with Pascal case, the main structs are being generated correct with snake case.