notifier/internal/models/message.go

17 lines
680 B
Go
Raw Normal View History

2024-03-31 20:04:15 +00:00
package models
2024-04-01 16:04:29 +00:00
import (
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
2024-04-01 13:18:16 +00:00
2024-03-31 20:04:15 +00:00
type Message struct {
2024-04-01 13:18:16 +00:00
ID primitive.ObjectID `bson:"_id"`
AccountID string `bson:"accountID"` // id аккаунта который что то сделал
Email string `bson:"email"` // его mail
ServiceKey string `bson:"serviceKey"` // сервис с которого пришло сообщение
EventType string `bson:"eventType"` // тип события вызвавшее отправку данных в кафку
Send bool `bson:"send"`
2024-04-01 16:04:29 +00:00
SendAt time.Time `bson:"sendAt"`
2024-03-31 20:04:15 +00:00
}