46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace BCards.Web.Models;
|
|
|
|
public class PageTheme
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
[BsonElement("name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[BsonElement("primaryColor")]
|
|
public string PrimaryColor { get; set; } = "#007bff";
|
|
|
|
[BsonElement("secondaryColor")]
|
|
public string SecondaryColor { get; set; } = "#6c757d";
|
|
|
|
[BsonElement("backgroundColor")]
|
|
public string BackgroundColor { get; set; } = "#ffffff";
|
|
|
|
[BsonElement("textColor")]
|
|
public string TextColor { get; set; } = "#212529";
|
|
|
|
[BsonElement("backgroundImage")]
|
|
public string BackgroundImage { get; set; } = string.Empty;
|
|
|
|
[BsonElement("isPremium")]
|
|
public bool IsPremium { get; set; } = false;
|
|
|
|
[BsonElement("cssTemplate")]
|
|
public string CssTemplate { get; set; } = string.Empty;
|
|
|
|
[BsonElement("isActive")]
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
[BsonElement("createdAt")]
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
// Campo translations - para compatibilidade futura, não usado por enquanto
|
|
[BsonElement("translations")]
|
|
[BsonIgnoreIfDefault]
|
|
public object? Translations { get; set; }
|
|
} |