18 lines
433 B
Go
18 lines
433 B
Go
package nstructures
|
|
|
|
import (
|
|
"github.com/tech/sendico/pkg/db/storable"
|
|
"github.com/tech/sendico/pkg/model"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type PolicyAssignment struct {
|
|
storable.Base `bson:",inline" json:",inline"`
|
|
model.Policy `bson:"policy" json:"policy"`
|
|
RoleRef primitive.ObjectID `bson:"roleRef" json:"roleRef"`
|
|
}
|
|
|
|
func (*PolicyAssignment) Collection() string {
|
|
return "permission_assignments"
|
|
}
|