FlLabelPrintTaskDbEntity.cs 1.29 KB
using SqlSugar;

namespace FoodLabeling.Application.Services.DbModels;

/// <summary>
/// 标签打印任务(对应表:fl_label_print_task)
/// </summary>
[SugarTable("fl_label_print_task")]
public class FlLabelPrintTaskDbEntity
{
    [SugarColumn(IsPrimaryKey = true)]
    public string Id { get; set; } = string.Empty;

    public string? BatchId { get; set; }

    public int CopyIndex { get; set; } = 1;

    public string? ClientRequestId { get; set; }

    public string LabelId { get; set; } = string.Empty;

    public string TemplateId { get; set; } = string.Empty;

    public string? LabelTypeId { get; set; }

    public string? ProductId { get; set; }

    public string? LocationId { get; set; }

    public DateTime? BaseTime { get; set; }

    public string? PrintInputJson { get; set; }

    public string? TemplateProductDefaultValuesJson { get; set; }

    public string RenderTemplateJson { get; set; } = string.Empty;

    public string? PrinterId { get; set; }

    public string? PrinterMac { get; set; }

    public string? PrinterAddress { get; set; }

    public string Status { get; set; } = "CREATED";

    public DateTime? PrintedAt { get; set; }

    public string? ErrorMessage { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreationTime { get; set; }
}