26 lines
974 B
C#
26 lines
974 B
C#
namespace SIGCM.Domain.Entities;
|
|
|
|
public class Listing
|
|
{
|
|
public int Id { get; set; }
|
|
public int CategoryId { get; set; }
|
|
public int OperationId { get; set; }
|
|
public required string Title { get; set; }
|
|
public string? Description { get; set; }
|
|
public decimal Price { get; set; }
|
|
public string Currency { get; set; } = "ARS";
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public string Status { get; set; } = "Draft";
|
|
public int? UserId { get; set; }
|
|
|
|
// Propiedades para impresión
|
|
public string? PrintText { get; set; }
|
|
public DateTime? PrintStartDate { get; set; }
|
|
public int PrintDaysCount { get; set; }
|
|
public string PrintFontSize { get; set; } = "normal";
|
|
public string PrintAlignment { get; set; } = "left";
|
|
|
|
// Propiedades auxiliares (no están en la tabla Listings, vienen de Joins/Subqueries)
|
|
public string? CategoryName { get; set; }
|
|
public string? MainImageUrl { get; set; }
|
|
} |