You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// File is an object representing the database table.typeFilestruct {
ID uuid.UUID`db:"id,pk" json:"id"`SensorID uuid.UUID`db:"sensor_id" json:"sensor_id"`
.
.
.
RfileR`db:"-" json:"-"`
}
// fileR is where relationships are stored.typefileRstruct {
Reading*Reading`json:"Reading"`// files.files_reading_id_fkeySensor*Sensor`json:"Sensor"`// files.files_sensor_id_fkeyStatusFileStatus*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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: