报错如下
go sql: Scan error on column index 0, name "created_at": unsupported Scan, storing driver.Value type []uint8 into type *time.Time
sql: Scan error on column index 0, name "created_at": unsupported Scan, storing driver.Value type []uint8 into type *time.Time
在 GORM 中,可以使用标签(tag)来定义和应用约束,这些约束将在模型与数据库表之间进行映射。下面是 GORM 中常用的约束及其用法的详细解释: