21 lines
699 B
Go
21 lines
699 B
Go
package model
|
|
|
|
import (
|
|
"github.com/tech/sendico/pkg/db/storable"
|
|
"github.com/tech/sendico/pkg/mservice"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type Step struct {
|
|
storable.Base `bson:",inline" json:",inline"`
|
|
ArchivableBase `bson:",inline" json:",inline"`
|
|
Colorable `bson:",inline" json:",inline"`
|
|
StatusRef primitive.ObjectID `bson:"statusRef" json:"statusRef"` // Reference to dynamic status
|
|
NextSteps []primitive.ObjectID `bson:"nextSteps" json:"nextSteps"` // Allowed transitions
|
|
Automations []primitive.ObjectID `bson:"automations" json:"automations"` // Automatically executed steps
|
|
}
|
|
|
|
func (*Step) Collection() string {
|
|
return mservice.Steps
|
|
}
|