service backend
This commit is contained in:
19
api/pkg/model/team.go
Normal file
19
api/pkg/model/team.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/tech/sendico/pkg/db/storable"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Team struct {
|
||||
storable.Base `bson:",inline" json:",inline"`
|
||||
Describable `bson:",inline" json:",inline"`
|
||||
OrganizationRef primitive.ObjectID `bson:"organizationRef" json:"organizationRef"`
|
||||
MemberRefs []primitive.ObjectID `bson:"memberRefs" json:"memberRefs"`
|
||||
SubTeamsRefs []primitive.ObjectID `bson:"subteamsRefs" json:"subteamsRefs"`
|
||||
}
|
||||
|
||||
func (*Team) Collection() string {
|
||||
return mservice.Teams
|
||||
}
|
||||
Reference in New Issue
Block a user