21 lines
854 B
Go
21 lines
854 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type TradePaperback struct {
|
|
ID string `gorm:"type:string;primary_key;"`
|
|
CreatedAt time.Time `gorm:"column:created_date" json:"created_date"`
|
|
UpdatedAt time.Time `gorm:"column:last_modified_date" json:"last_modified_date"`
|
|
DeletedAt *time.Time `gorm:"column:deleted_date" json:"deleted_date"`
|
|
Version int `gorm:"default:0" json:"version"`
|
|
Name string `gorm:"uniqueIndex" json:"name"`
|
|
IssueStart int `gorm:"column:issue_start" json:"issue_start"`
|
|
IssueEnd int `gorm:"column:issue_end" json:"issue_end"`
|
|
ComicID *string `gorm:"column:comic_id" json:"comic_id"`
|
|
Comic *Comic `gorm:"foreignKey:ComicID"`
|
|
}
|
|
|
|
func (trade_paperback *TradePaperback) TableName() string {
|
|
return "trade_paperback"
|
|
}
|