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"` // сервис с которого пришло сообщение EventType string `bson:"eventType"` // тип события вызвавшее отправку данных в кафку Send bool `bson:"send"` SendAt time.Time `bson:"sendAt"` }