27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
|
package gmodel
|
||
|
|
||
|
import (
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
// fs_cloud_render_log_old 云渲染日志表
|
||
|
type FsCloudRenderLogOld struct {
|
||
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||
|
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||
|
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||
|
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||
|
Title *string `gorm:"index;default:'';" json:"title"` //
|
||
|
Time *int64 `gorm:"default:0;" json:"time"` // 所用时间
|
||
|
Result *string `gorm:"default:'';" json:"result"` //
|
||
|
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
||
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||
|
}
|
||
|
type FsCloudRenderLogOldModel struct {
|
||
|
db *gorm.DB
|
||
|
name string
|
||
|
}
|
||
|
|
||
|
func NewFsCloudRenderLogOldModel(db *gorm.DB) *FsCloudRenderLogOldModel {
|
||
|
return &FsCloudRenderLogOldModel{db: db, name: "fs_cloud_render_log_old"}
|
||
|
}
|