service backend
This commit is contained in:
17
api/pkg/model/workspace.go
Normal file
17
api/pkg/model/workspace.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/tech/sendico/pkg/db/storable"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Workspace struct {
|
||||
storable.Base `bson:",inline" json:",inline"`
|
||||
Describable `bson:",inline" json:",inline"`
|
||||
Projects []primitive.ObjectID `bson:"projects" json:"projects"` // References to projects in the workspace
|
||||
}
|
||||
|
||||
func (*Workspace) Collection() string {
|
||||
return mservice.Workspaces
|
||||
}
|
||||
Reference in New Issue
Block a user