package nstructures

import (
	"github.com/tech/sendico/pkg/db/storable"
	"github.com/tech/sendico/pkg/model"
	"go.mongodb.org/mongo-driver/v2/bson"
)

type PolicyAssignment struct {
	storable.Base `bson:",inline" json:",inline"`
	model.Policy  `bson:"policy" json:"policy"`
	RoleRef       bson.ObjectID `bson:"roleRef" json:"roleRef"`
}

func (*PolicyAssignment) Collection() string {
	return "permission_assignments"
}
