using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;

namespace OnlyOneAccessTemplate.Models
{
    public class ConverterConfig
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; } = string.Empty;

        public string Name { get; set; } = string.Empty;
        public string Route { get; set; } = string.Empty; // ex: "converter-pdf-para-word"
        public string Title { get; set; } = string.Empty; // SEO title
        public string Description { get; set; } = string.Empty; // SEO description
        public string Keywords { get; set; } = string.Empty; // SEO keywords
        public bool IsActive { get; set; } = true;
        public string InputType { get; set; } = string.Empty; // "pdf", "image", "text"
        public string OutputType { get; set; } = string.Empty; // "word", "jpg", "uppercase"
        public string Icon { get; set; } = string.Empty;
        public string Language { get; set; } = string.Empty; // "pt", "en", "es"

        // Configurações específicas do conversor
        public Dictionary<string, object> Settings { get; set; } = new();

        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
    }
}
