创建任务表、用户任务表,生成 model、dao

This commit is contained in:
2025-06-09 09:50:22 +08:00
parent 7d43a89bf2
commit e83a173ed0
8 changed files with 308 additions and 0 deletions

View File

@ -0,0 +1,24 @@
// =================================================================================
// 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"
)
// UserTasks is the golang structure of table user_tasks for DAO operations like Where/Data.
type UserTasks struct {
g.Meta `orm:"table:user_tasks, do:true"`
Id interface{} // 用户任务唯一标识符
UserId interface{} // 用户ID
TaskId interface{} // 任务ID
Status interface{} // 任务状态1=已领取2=进行中3=已完成4=已取消
SerialNumber interface{} // 流水号,确保用户任务唯一性
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
CompletedAt *gtime.Time // 任务完成时间
DeletedAt *gtime.Time // 软删除时间戳
}