FlLabelTemplateElementDbEntity.cs 1.04 KB
using SqlSugar;

namespace FoodLabeling.Application.Services.DbModels;

[SugarTable("fl_label_template_element")]
public class FlLabelTemplateElementDbEntity
{
    [SugarColumn(IsPrimaryKey = true)]
    public string Id { get; set; } = string.Empty;

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

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

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

    public decimal PosX { get; set; }

    public decimal PosY { get; set; }

    public decimal Width { get; set; }

    public decimal Height { get; set; }

    public string Rotation { get; set; } = "horizontal";

    public string BorderType { get; set; } = "none";

    public int ZIndex { get; set; }

    public int OrderNum { get; set; }

    public string ValueSourceType { get; set; } = "FIXED";

    public string? BindingExpr { get; set; }

    public string? AutoQueryKey { get; set; }

    public string? InputKey { get; set; }

    public bool IsRequiredInput { get; set; }

    public string? ConfigJson { get; set; }
}