mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-04-28 17:56:49 +02:00
12 lines
426 B
Go
12 lines
426 B
Go
package model
|
|
|
|
import (
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
"time"
|
|
)
|
|
|
|
type DBComment struct {
|
|
Timestamp time.Time `bson:"timestamp" json:"timestamp"`
|
|
CommentedBy *primitive.ObjectID `bson:"commented_by" json:"commented_by"` // CommentedBy contains a reference to the user who commented
|
|
Content string `bson:"content" json:"content"` // Content is the body of the comment
|
|
}
|