I have the following model...
type User struct {
ID string `sql:\"type:uuid;primary_key;default:uuid_generate_v4()\"`
FirstName string `form:\"f
The error (pq: relation "users" does not exist)
usually means that, the table users
does not exists in the database. It has nothing to do with the relationship between two models.
So basically, You first need to create the table in the database (Or auto migrate the database As per @Apin suggest). And try to re-run the same code.