I am using "do.FirstOrCreate" to check my data and I want the data been created if it not exist in my table, everything works well except the "ID" not generated (the value of "ID" column is 0).
here are my codes:
domain object
codes calling db.FirstOrCreate
here is the data inserted into my user table:
the gorm version is : 1.9.1