notifier/internal/models/message.go

19 lines
787 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
import (
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type Message struct {
ID primitive.ObjectID `bson:"_id"`
AccountID string `bson:"accountID"` // id аккаунта который что то сделал
Email string `bson:"email"` // его mail
ServiceKey string `bson:"serviceKey"` // сервис с которого пришло сообщение
SendRegistration bool `bson:"sendRegistration"`
SendNoneCreated bool `bson:"sendNoneCreated"`
SendUnpublished bool `bson:"sendUnpublished"`
SendPaid bool `bson:"sendPaid"`
SendAt time.Time `bson:"sendAt"` // или в unix?
}