blob: 06611fca35553924c4e6e6f94346d546a32d40e3 [file] [log] [blame]
package ticket
import (
"time"
"github.com/merico-dev/lake/models/common"
)
type IssueStatusHistory struct {
common.NoPKModel
IssueId string `gorm:"primaryKey"`
OriginalStatus string `gorm:"primaryKey"`
StartDate time.Time `gorm:"primaryKey"`
EndDate *time.Time
}
func (IssueStatusHistory) TableName() string {
return "issue_status_history"
}
type IssueAssigneeHistory struct {
common.NoPKModel
IssueId string `gorm:"primaryKey"`
Assignee string `gorm:"primaryKey"`
StartDate time.Time `gorm:"primaryKey"`
EndDate *time.Time
}
func (IssueAssigneeHistory) TableName() string {
return "issue_assignee_history"
}
type IssueSprintsHistory struct {
common.NoPKModel
IssueId string `gorm:"primaryKey"`
SprintId string `gorm:"primaryKey"`
StartDate time.Time `gorm:"primaryKey"`
EndDate *time.Time
}
func (IssueSprintsHistory) TableName() string {
return "issue_sprints_history"
}