Migrated database changes
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-05-10 11:16:52 +02:00
parent 275befc258
commit 32d1019eb5
44 changed files with 1279 additions and 3330 deletions
+16
View File
@@ -1,5 +1,21 @@
namespace LiteCharms.Models;
public enum Priorities : int
{
Low = 0,
Medium = 1,
High = 2,
}
public enum NotificationPlatforms : int
{
Email = 1,
Discord = 2,
Slack = 3,
WhatsApp = 4,
System = 5
}
public enum QuoteStatus : int
{
Draft = 0,
+15 -5
View File
@@ -6,22 +6,32 @@ public class Notification
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public NotificationDirection Direction { get; set; }
public string? Author { get; set; }
public NotificationPlatforms Platform { get; set; }
public string? Title { get; set; }
public Priorities Priority { get; set; }
public string? Description { get; set; }
public string? Sender { get; set; }
public string? Platform { get; set; }
public string? SenderName { get; set; }
public string? PlatformAddress { get; set; }
public string? Subject { get; set; }
public string? Message { get; set; }
public string? Recipient { get; set; }
public string? RecipientAddress { get; set; }
public string? CorrelationId { get; set; }
public string? CorrelationIdType { get; set; }
public bool IsHtml { get; set; }
public bool IsInternal { get; set; }
public bool Processed { get; set; }
+7 -1
View File
@@ -12,11 +12,17 @@ public class Order
public Guid? QuoteId { get; set; }
public Guid ShoppingCartId { get; set; }
public Guid ShoppingCartId { get; set; }
public Guid? RefundId { get; set; }
public OrderStatus Status { get; set; }
public string[]? Requirements { get; set; }
public string[]? Notes { get; set; }
public string[]? Terms { get; set; }
public bool DepositRequired { get; set; }
}
+16
View File
@@ -0,0 +1,16 @@
namespace LiteCharms.Models;
public class Package
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
public string? Name { get; set; }
public string? Description { get; set; }
public bool Active { get; set; }
}
+14
View File
@@ -0,0 +1,14 @@
namespace LiteCharms.Models;
public class PackageItem
{
public Guid Id { get; set; }
public Guid PackageId { get; set; }
public Guid ProductPriceId { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public bool Active { get; set; }
}
+12
View File
@@ -0,0 +1,12 @@
namespace LiteCharms.Models;
public class ShoppingCartPackage
{
public Guid Id { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public Guid ShoppingCartId { get; set; }
public Guid PackageId { get; set; }
}