新增逻辑
This commit is contained in:
@@ -169,7 +169,7 @@ type CarOrder struct {
|
||||
type ServiceCarUser struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
CarId int `gorm:"index;not null" json:"carId"` //车ID
|
||||
Uid int64 `gorm:"index;not null" json:"uid"` //用户ID
|
||||
Uid int64 `gorm:"index;unique;not null" json:"uid"` //用户ID
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user