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
When I use the UUID type from "github.com/gofrs/uuid", the models do not generate and the following error is given: primary key "ID" of model "User" does not have a valid identifier type ([16]byte). Substituting "github.com/gofrs/uuid" back to "github.com/satori/go.uuid", the models generate with no errors.
import (
"github.com/gofrs/uuid" OR "github.com/satori/go.uuid"
kallax "gopkg.in/src-d/go-kallax.v1"
)
type User struct {
kallax.Model `table:"users" pk:"id"`
kallax.Timestamps
ID uuid.UUID
EmailAddr string
Password string
Status string
}
The text was updated successfully, but these errors were encountered:
When I use the UUID type from "github.com/gofrs/uuid", the models do not generate and the following error is given: primary key "ID" of model "User" does not have a valid identifier type ([16]byte). Substituting "github.com/gofrs/uuid" back to "github.com/satori/go.uuid", the models generate with no errors.
The text was updated successfully, but these errors were encountered: