调整表结构

This commit is contained in:
2025-06-05 14:58:58 +08:00
parent fdf5152bd2
commit 77067adf33
83 changed files with 137 additions and 2662 deletions

View File

@ -1,24 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CompetitionAwards is the golang structure for table competition_awards.
type CompetitionAwards struct {
Id int64 `json:"id" orm:"id" description:"赛事获奖ID"` // 赛事获奖ID
CompetitionId int64 `json:"competitionId" orm:"competition_id" description:"赛事ID"` // 赛事ID
UserId int64 `json:"userId" orm:"user_id" description:"获奖用户ID"` // 获奖用户ID
AwardRank int `json:"awardRank" orm:"award_rank" description:"获奖名次1:冠军2:亚军3:季军,依次类推)"` // 获奖名次1:冠军2:亚军3:季军,依次类推)
RewardType int `json:"rewardType" orm:"reward_type" description:"奖励类型1=平台奖励2=门店奖励"` // 奖励类型1=平台奖励2=门店奖励
RewardId int64 `json:"rewardId" orm:"reward_id" description:"对应奖励ID"` // 对应奖励ID
Amount int `json:"amount" orm:"amount" description:"奖励数量"` // 奖励数量
IssuedAt *gtime.Time `json:"issuedAt" orm:"issued_at" 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:"软删除时间"` // 软删除时间
}

View File

@ -1,21 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CompetitionParticipants is the golang structure for table competition_participants.
type CompetitionParticipants struct {
Id int64 `json:"id" orm:"id" description:"参赛记录ID"` // 参赛记录ID
CompetitionId int64 `json:"competitionId" orm:"competition_id" description:"赛事ID"` // 赛事ID
UserId int64 `json:"userId" orm:"user_id" description:"参赛用户ID"` // 参赛用户ID
RegistrationTime *gtime.Time `json:"registrationTime" orm:"registration_time" description:"报名时间"` // 报名时间
Status int `json:"status" orm:"status" description:"参赛状态1=已报名2=已取消3=已禁赛"` // 参赛状态1=已报名2=已取消3=已禁赛
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:"软删除时间"` // 软删除时间
}

View File

@ -1,27 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Competitions is the golang structure for table competitions.
type Competitions struct {
Id int64 `json:"id" orm:"id" description:"赛事唯一标识符"` // 赛事唯一标识符
Name string `json:"name" orm:"name" description:"赛事名称"` // 赛事名称
Description string `json:"description" orm:"description" description:"赛事描述"` // 赛事描述
GameMode string `json:"gameMode" orm:"game_mode" description:"游戏模式"` // 游戏模式
Conditions string `json:"conditions" orm:"conditions" description:"赛事条件"` // 赛事条件
Rules string `json:"rules" orm:"rules" description:"赛事规则说明"` // 赛事规则说明
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"赛事开始时间"` // 赛事开始时间
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"赛事结束时间"` // 赛事结束时间
IsActive int `json:"isActive" orm:"is_active" description:"赛事是否启用"` // 赛事是否启用
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"所属商户ID"` // 所属商户ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,26 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Menus is the golang structure for table menus.
type Menus struct {
Id int64 `json:"id" orm:"id" description:"菜单ID"` // 菜单ID
ParentId int64 `json:"parentId" orm:"parent_id" description:"父级菜单ID"` // 父级菜单ID
Name string `json:"name" orm:"name" description:"菜单名称"` // 菜单名称
Path string `json:"path" orm:"path" description:"前端路由路径"` // 前端路由路径
Component string `json:"component" orm:"component" description:"前端组件路径"` // 前端组件路径
Type int `json:"type" orm:"type" description:"类型1=目录父级菜单2=菜单(功能页面)"` // 类型1=目录父级菜单2=菜单(功能页面)
Icon string `json:"icon" orm:"icon" description:"图标"` // 图标
Sort int `json:"sort" orm:"sort" description:"排序"` // 排序
Hidden int `json:"hidden" orm:"hidden" description:"是否隐藏0=显示1=隐藏"` // 是否隐藏0=显示1=隐藏
Status int `json:"status" orm:"status" description:"状态1=启用2=禁用"` // 状态1=启用2=禁用
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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -31,4 +31,5 @@ type Merchants struct {
AuditAt *gtime.Time `json:"auditAt" orm:"audit_at" description:"审核时间"` // 审核时间
AuditRemark string `json:"auditRemark" orm:"audit_remark" description:"审核备注"` // 审核备注
RejectReason string `json:"rejectReason" orm:"reject_reason" description:"拒绝原因"` // 拒绝原因
MerchantCode string `json:"merchantCode" orm:"merchant_code" description:"商户编号"` // 商户编号
}

View File

@ -1,24 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Notices is the golang structure for table notices.
type Notices struct {
Id int64 `json:"id" orm:"id" description:"通知ID"` // 通知ID
Title string `json:"title" orm:"title" description:"通知标题"` // 通知标题
Content string `json:"content" orm:"content" description:"通知内容"` // 通知内容
Type int `json:"type" orm:"type" description:"通知类型1=系统公告2=活动通知3=维护通知"` // 通知类型1=系统公告2=活动通知3=维护通知
Status int `json:"status" orm:"status" description:"状态0=关闭1=发布"` // 状态0=关闭1=发布
VisibleTo int `json:"visibleTo" orm:"visible_to" description:"可见范围1=所有人2=仅门店3=仅用户"` // 可见范围1=所有人2=仅门店3=仅用户
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"所属商户ID"` // 所属商户ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,26 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RewardDistributions is the golang structure for table reward_distributions.
type RewardDistributions struct {
Id int64 `json:"id" orm:"id" description:"奖励下发记录ID"` // 奖励下发记录ID
UserId int64 `json:"userId" orm:"user_id" description:"接收奖励的用户ID"` // 接收奖励的用户ID
TaskId int64 `json:"taskId" orm:"task_id" description:"触发该奖励的任务ID"` // 触发该奖励的任务ID
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID"` // 奖励ID
RewardSource int `json:"rewardSource" orm:"reward_source" description:"奖励来源1=平台2=门店"` // 奖励来源1=平台2=门店
Amount int `json:"amount" orm:"amount" description:"奖励数量"` // 奖励数量
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
Status int `json:"status" orm:"status" description:"发放状态0=待发放1=已发放2=失败"` // 发放状态0=待发放1=已发放2=失败
IssuedAt *gtime.Time `json:"issuedAt" orm:"issued_at" description:"实际发放时间"` // 实际发放时间
Remark string `json:"remark" orm:"remark" 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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,19 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RoleMenus is the golang structure for table role_menus.
type RoleMenus struct {
Id int64 `json:"id" orm:"id" description:"ID"` // ID
RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"` // 角色ID
MenuId int64 `json:"menuId" orm:"menu_id" description:"菜单ID"` // 菜单ID
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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,23 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// StoreRewards is the golang structure for table store_rewards.
type StoreRewards struct {
Id int64 `json:"id" orm:"id" description:"门店奖励ID"` // 门店奖励ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
RewardTypeId int64 `json:"rewardTypeId" orm:"reward_type_id" description:"奖励类型ID"` // 奖励类型ID
RewardName string `json:"rewardName" orm:"reward_name" description:"奖励名称"` // 奖励名称
Amount int `json:"amount" orm:"amount" description:"奖励数量"` // 奖励数量
Total int `json:"total" orm:"total" description:"该奖励总库存NULL 表示无限)"` // 该奖励总库存NULL 表示无限)
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"所属商户ID"` // 所属商户ID
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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,21 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// StoreTaskRewards is the golang structure for table store_task_rewards.
type StoreTaskRewards struct {
Id int64 `json:"id" orm:"id" description:"门店奖励记录ID"` // 门店奖励记录ID
StoreId int64 `json:"storeId" orm:"store_id" description:"门店ID"` // 门店ID
TaskId int64 `json:"taskId" orm:"task_id" description:"任务ID"` // 任务ID
StoreRewardId int64 `json:"storeRewardId" orm:"store_reward_id" description:"门店奖励ID"` // 门店奖励ID
IsEnabled int `json:"isEnabled" orm:"is_enabled" 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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,33 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SystemOperationLogs is the golang structure for table system_operation_logs.
type SystemOperationLogs struct {
Id int64 `json:"id" orm:"id" description:"日志ID"` // 日志ID
OperatorType int `json:"operatorType" orm:"operator_type" description:"操作者类型1=系统管理员2=商户管理员3=门店管理员4=普通用户"` // 操作者类型1=系统管理员2=商户管理员3=门店管理员4=普通用户
OperatorId int64 `json:"operatorId" orm:"operator_id" description:"操作者ID"` // 操作者ID
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"所属商户ID"` // 所属商户ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
Module string `json:"module" orm:"module" description:"操作模块"` // 操作模块
Action string `json:"action" orm:"action" description:"操作类型"` // 操作类型
TargetType string `json:"targetType" orm:"target_type" description:"操作对象类型"` // 操作对象类型
TargetId int64 `json:"targetId" orm:"target_id" description:"操作对象ID"` // 操作对象ID
Content string `json:"content" orm:"content" description:"操作内容描述"` // 操作内容描述
RequestMethod string `json:"requestMethod" orm:"request_method" description:"请求方法"` // 请求方法
RequestUrl string `json:"requestUrl" orm:"request_url" description:"请求URL"` // 请求URL
RequestParams string `json:"requestParams" orm:"request_params" description:"请求参数"` // 请求参数
ResponseCode int `json:"responseCode" orm:"response_code" description:"响应状态码"` // 响应状态码
ResponseMessage string `json:"responseMessage" orm:"response_message" description:"响应信息"` // 响应信息
IpAddress string `json:"ipAddress" orm:"ip_address" description:"操作IP地址"` // 操作IP地址
UserAgent string `json:"userAgent" orm:"user_agent" 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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,18 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Tasks is the golang structure for table tasks.
type Tasks struct {
Id int64 `json:"id" orm:"id" description:"任务ID"` // 任务ID
QqTaskId string `json:"qqTaskId" orm:"qq_task_id" description:"QQ网吧任务ID"` // QQ网吧任务ID
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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,24 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// UserLoginRecords is the golang structure for table user_login_records.
type UserLoginRecords struct {
Id int64 `json:"id" orm:"id" description:"记录ID"` // 记录ID
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
StoreId int64 `json:"storeId" orm:"store_id" description:"登录门店ID"` // 登录门店ID
LoginIp string `json:"loginIp" orm:"login_ip" description:"登录IP地址"` // 登录IP地址
LoginPlatform int `json:"loginPlatform" orm:"login_platform" description:"登录平台1=PC"` // 登录平台1=PC
LoginType int `json:"loginType" orm:"login_type" description:"登录方式1=微信2=手机号3=账号密码4=其他"` // 登录方式1=微信2=手机号3=账号密码4=其他
LoginStatus int `json:"loginStatus" orm:"login_status" description:"登录状态1=成功2=失败"` // 登录状态1=成功2=失败
FailReason string `json:"failReason" orm:"fail_reason" 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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -1,23 +0,0 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// UserTaskRecords is the golang structure for table user_task_records.
type UserTaskRecords struct {
Id int64 `json:"id" orm:"id" description:"任务记录ID"` // 任务记录ID
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
TaskId int64 `json:"taskId" orm:"task_id" description:"任务ID"` // 任务ID
Status int `json:"status" orm:"status" description:"任务状态1=未开始2=进行中3=已完成4=已领取奖励"` // 任务状态1=未开始2=进行中3=已完成4=已领取奖励
Progress int `json:"progress" orm:"progress" description:"任务进度"` // 任务进度
FinishedAt *gtime.Time `json:"finishedAt" orm:"finished_at" description:"完成时间"` // 完成时间
RewardReceivedAt *gtime.Time `json:"rewardReceivedAt" orm:"reward_received_at" 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:"软删除时间"` // 软删除时间
}