创建用户上下级相关表结构

This commit is contained in:
2025-07-05 09:16:53 +08:00
parent db9f182226
commit 0c6de3db61
4 changed files with 178 additions and 0 deletions

View File

@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// StoreClientSessions is the golang structure of table store_client_sessions for DAO operations like Where/Data.
type StoreClientSessions struct {
g.Meta `orm:"table:store_client_sessions, do:true"`
Id interface{} // 记录ID
StoreId interface{} // 所属门店ID
ClientId interface{} // 客户机ID
AreaId interface{} // 所属区域ID
XyUserId interface{} // 系统唯一用户ID
LevelId interface{} // 会员等级ID如0表示临时卡
LevelName interface{} // 会员等级名称
StartTime *gtime.Time // 上机时间
EndTime *gtime.Time // 下机时间
UsedTime interface{} // 使用时长(分钟)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// StoreClientSessions is the golang structure for table store_client_sessions.
type StoreClientSessions struct {
Id int64 `json:"id" orm:"id" description:"记录ID"` // 记录ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
ClientId int64 `json:"clientId" orm:"client_id" description:"客户机ID"` // 客户机ID
AreaId int64 `json:"areaId" orm:"area_id" description:"所属区域ID"` // 所属区域ID
XyUserId string `json:"xyUserId" orm:"xy_user_id" description:"系统唯一用户ID"` // 系统唯一用户ID
LevelId int `json:"levelId" orm:"level_id" description:"会员等级ID如0表示临时卡"` // 会员等级ID如0表示临时卡
LevelName string `json:"levelName" orm:"level_name" description:"会员等级名称"` // 会员等级名称
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"上机时间"` // 上机时间
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"下机时间"` // 下机时间
UsedTime int `json:"usedTime" orm:"used_time" description:"使用时长(分钟)"` // 使用时长(分钟)
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
}