Postgresql – Only one child record is being created when trying to create a record with one to many relationship
I am trying to build a REST API unsing golang and GORM specifically. I have four entities: Promo, which contains many PromoUnique entities, one Target entity which also contains many Category entities. Code: type Promo struct { PromoID string `json:"promo_id"…