From debf0c7def38b1a4668a202cd4a93cb3dbae8dc2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 11 Nov 2024 16:37:59 +0800 Subject: [PATCH] 1 --- server/wheelserver/model/chip.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 server/wheelserver/model/chip.go diff --git a/server/wheelserver/model/chip.go b/server/wheelserver/model/chip.go new file mode 100644 index 00000000..485e56d4 --- /dev/null +++ b/server/wheelserver/model/chip.go @@ -0,0 +1,17 @@ +package model + +import ( +) + +type Chip struct { + Idx int64 `gorm:"column:idx;AUTO_INCREMENT"` + AccountId string `gorm:"column:account_id;primaryKey"` + ItemId int64 `gorm:"column:item_id"` + ItemNum int32 `gorm:"column:item_num"` + CreateTime int32 `gorm:"column:createtime;<-:create"` + ModifyTime int32 `gorm:"column:modifytime"` +} + +func (this *Chip) TableName() string { + return "t_chip" +}