123456789101112131415161718192021 |
- package yb_pdf
- import "time"
- type YbPdf struct {
- PdfID int `gorm:"primaryKey;column:pdf_id;type:int(10) unsigned;not null" json:"pdf_id"`
- PdfName string `gorm:"column:pdf_name;type:varchar(255);not null;default:''" json:"pdf_name"`
- PdfURL string `gorm:"column:pdf_url;type:varchar(255);not null;default:''" json:"pdf_url"`
- ShareURL string `gorm:"column:share_url;type:varchar(255);not null;default:''" json:"share_url"`
- IsDeleted int `gorm:"column:is_deleted;type:tinyint(4) unsigned;not null;default:0" json:"-"`
- SysAdminID int `gorm:"column:sys_admin_id;type:int(10) unsigned;not null;default:0" json:"sys_admin_id"`
- SysAdminName string `gorm:"column:sys_admin_name;type:varchar(64);not null;default:''" json:"sys_admin_name"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modify_time"`
- }
- func (m *YbPdf) TableName() string {
- return "yb_pdf"
- }
|