package model import ( "time" "github.com/tech/sendico/pkg/mservice" "go.mongodb.org/mongo-driver/bson/primitive" ) type Task struct { PermissionBound `bson:",inline" json:",inline"` Describable `bson:",inline" json:",inline"` Indexable `bson:",inline" json:",inline"` Taggable `bson:",inline" json:",inline"` StatusRef primitive.ObjectID `bson:"statusRef" json:"statusRef"` // Reference to the current Step ReporterRef primitive.ObjectID `bson:"reporterRef" json:"reporterRef"` // Reference to the task reporter AssigneeRef *primitive.ObjectID `bson:"assigneeRef,omitempty" json:"assigneeRef,omitempty"` // Reference to the user assigned ProjectRef primitive.ObjectID `bson:"projectRef" json:"projectRef"` // Reference to the project PriorityRef primitive.ObjectID `bson:"priorityRef" json:"priorityRef"` // Reference to dynamic priority DueDate *time.Time `bson:"dueDate" json:"dueDate"` Number int `bson:"number" json:"number"` } func (*Task) Collection() string { return mservice.Tasks }