Implement bidirectional customer conversations with customer-based grouping and order tagging

This commit is contained in:
sysadmin
2025-08-27 19:18:46 +01:00
parent 3f4789730c
commit 027a3fd0c4
25 changed files with 794 additions and 70 deletions

View File

@@ -0,0 +1,24 @@
namespace LittleShop.Client.Models;
public class CustomerMessage
{
public Guid Id { get; set; }
public Guid CustomerId { get; set; }
public long TelegramUserId { get; set; }
public string Subject { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public MessageType Type { get; set; }
public bool IsUrgent { get; set; }
public string? OrderReference { get; set; }
public DateTime CreatedAt { get; set; }
}
public enum MessageType
{
OrderUpdate = 0,
PaymentReminder = 1,
ShippingInfo = 2,
CustomerService = 3,
Marketing = 4,
SystemAlert = 5
}