22 lines
885 B
Go
22 lines
885 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type IssueWork 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"`
|
|
ArtistID *string `gorm:"column:artist_id" json:"artist_id"`
|
|
Artist *Artist `gorm:"foreignKey:ArtistID"`
|
|
IssueID *string `gorm:"column:issue_id" json:"issue_id"`
|
|
Issue *Issue `gorm:"foreignKey:IssueID"`
|
|
WorkTypeID *string `gorm:"column:work_type_id" json:"work_type_id"`
|
|
WorkType *WorkType `gorm:"foreignKey:WorkTypeID"`
|
|
}
|
|
|
|
func (issue_work *IssueWork) TableName() string {
|
|
return "issue_work"
|
|
}
|