package models

import (
	"time"

	"go.mongodb.org/mongo-driver/v2/bson"
)

const (
	ChannelWebhook  = "webhook"
	ChannelSMTP     = "smtp"
	ChannelDiscord  = "discord"
	ChannelSlack    = "slack"
	ChannelTelegram = "telegram"
)

type NotificationChannel struct {
	ID         bson.ObjectID     `bson:"_id,omitempty" json:"_id,omitempty"`
	InstanceID string            `bson:"instance_id" json:"instance_id"`
	ChannelID  string            `bson:"channel_id" json:"channel_id"`
	Name       string            `bson:"name" json:"name"`
	Type       string            `bson:"type" json:"type"`
	Config     map[string]string `bson:"config" json:"config"`
	Enabled    bool              `bson:"enabled" json:"enabled"`
	CreatedAt  time.Time         `bson:"created_at" json:"created_at"`
}
