18 lines
460 B
Go
18 lines
460 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 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
|
|
}
|