You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.6 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameExportTask = "export_task"
// ExportTask mapped from table <export_task>
type ExportTask struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
HashID string `gorm:"column:hash_id;type:varchar(20);not null;uniqueIndex:uniq_hash_Id,priority:1;comment:对外id" json:"hash_id"`
UserID int64 `gorm:"column:user_id;type:bigint;not null;comment:用户ID(user表主键)" json:"user_id"`
Mark string `gorm:"column:mark;type:varchar(32);not null;comment:导出标识" json:"mark"`
Cond string `gorm:"column:cond;type:varchar(1000);not null;comment:条件数据" json:"cond"`
EptStatus int8 `gorm:"column:ept_status;type:tinyint;not null;comment:状态(1-导出中,2-导出成功,3-导出失败,4-已过期)" json:"ept_status"`
ExpiredAt int64 `gorm:"column:expired_at;type:bigint;not null;index:idx_expired_at,priority:1;comment:文件过期时间(0-不过期)" json:"expired_at"`
Filename string `gorm:"column:filename;type:varchar(255);not null;comment:文件存储名称" json:"filename"`
FailMsg string `gorm:"column:fail_msg;type:varchar(255);not null;comment:导出失败原因" json:"fail_msg"`
}
// TableName ExportTask's table name
func (*ExportTask) TableName() string {
return TableNameExportTask
}