新增逻辑

This commit is contained in:
yan.y
2024-04-09 19:08:39 +08:00
parent 74ae25bcd0
commit d002f47478
6 changed files with 213 additions and 54 deletions
+1 -1
View File
@@ -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:"-"` //更新时间
}