gorm 定义type为 tinyint(1) 通过 自动迁移创建的字段类型为bigint
1、定义字段类型 为 tinyint(1) 和 int(10)
2、执行迁移自动创建 bigint 类型的字段
go: 1.17.7
gorm: 1.23.2
加上 not null 解决了