update backend
This commit is contained in:
@ -2,7 +2,7 @@ package model
|
||||
|
||||
// Brand 品牌表。
|
||||
//
|
||||
// 注意:时间戳字段为 int unsigned 存储的 Unix 秒,不是 MySQL datetime,
|
||||
// 注意:时间戳字段为 int unsigned 存储的 Unix 秒,不是数据库 datetime,
|
||||
// 迁移时保持原样,避免与既有数据不兼容。
|
||||
type Brand struct {
|
||||
ID uint32 `gorm:"primaryKey;column:id" json:"id"`
|
||||
@ -17,4 +17,4 @@ type Brand struct {
|
||||
}
|
||||
|
||||
// TableName 指定表名。
|
||||
func (Brand) TableName() string { return "brand" }
|
||||
func (Brand) TableName() string { return "brands" }
|
||||
|
||||
Reference in New Issue
Block a user