Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: golang+gorm使用结构体创建数据表问题

The structure is as follows:
type Test struct {
ID uint64 `gorm:"primaryKey;auto_random;not null"`
Name string `gorm:"column:name;size:100;not null"`
CreateAt uint64 `gorm:"column:create_at;index"`
UpdateAt uint64 `gorm:"column:update_at"`
}
After creating the table with the following statement, the AUTO_RANDOM for the id is not added. Is there any way to solve this?
db.AutoMigrate(&Test{})