kra/internal/data/model/exa_file_upload_and_downloa...

32 lines
1.5 KiB
Go

// 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
import (
"time"
"gorm.io/gorm"
)
const TableNameExaFileUploadAndDownload = "exa_file_upload_and_downloads"
// ExaFileUploadAndDownload mapped from table <exa_file_upload_and_downloads>
type ExaFileUploadAndDownload struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_exa_file_upload_and_downloads_deleted_at,priority:1" json:"deleted_at"`
Name string `gorm:"column:name;type:varchar(191);comment:文件名" json:"name"` // 文件名
ClassID int64 `gorm:"column:class_id;type:bigint(20);comment:分类id" json:"class_id"` // 分类id
URL string `gorm:"column:url;type:varchar(191);comment:文件地址" json:"url"` // 文件地址
Tag string `gorm:"column:tag;type:varchar(191);comment:文件标签" json:"tag"` // 文件标签
Key string `gorm:"column:key;type:varchar(191);comment:编号" json:"key"` // 编号
}
// TableName ExaFileUploadAndDownload's table name
func (*ExaFileUploadAndDownload) TableName() string {
return TableNameExaFileUploadAndDownload
}