feat(views)!: decouple bucket <-> task relationship
This commit is contained in:
@ -70,6 +70,11 @@ func (b *Bucket) TableName() string {
|
||||
return "buckets"
|
||||
}
|
||||
|
||||
type TaskBucket struct {
|
||||
BucketID int64 `xorm:"bigint not null index"`
|
||||
TaskID int64 `xorm:"bigint not null index"`
|
||||
}
|
||||
|
||||
func getBucketByID(s *xorm.Session, id int64) (b *Bucket, err error) {
|
||||
b = &Bucket{}
|
||||
exists, err := s.Where("id = ?", id).Get(b)
|
||||
|
Reference in New Issue
Block a user