Postgresql – Was not able to set foreign keys in tables with gorm data models
I am trying to set foreign key in the data models using gorm this is the code that I have written package main import ( "log" "database/sql/driver" "encoding/json" "errors" "time" "gorm.io/driver/postgres" "gorm.io/gorm" ) type JSONB map[string]interface{} func (j JSONB) Value()…