matrix-veles/internal/db/model/list.go

12 lines
688 B
Go

package model
import "go.mongodb.org/mongo-driver/bson/primitive"
type DBHashList struct {
ID primitive.ObjectID `bson:"_id" json:"id"`
Name string `bson:"name" json:"name"`
Tags []string `bson:"tags" json:"tags"` // Tags of this list for discovery, and sorting
Comments []*DBComment `bson:"comments" json:"comments"` // Comments regarding this list
Creator primitive.ObjectID `bson:"creator" json:"creator"` // Creator of the list
Maintainers []*primitive.ObjectID `bson:"maintainers" json:"maintainers"` // Maintainers contains references to the users who may edit this list
}