using System;
using SqlSugar;

namespace MDL.Models
{
    /// <summary>
    /// 出货交接单与袋牌关联实体类
    /// </summary>
    [SugarTable("shipping_handover_form_bag_tags")]
    public class ShippingHandoverFormBagTagEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 出货交接单ID
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public int ShippingHandoverFormId { get; set; }

        /// <summary>
        /// 袋牌ID
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public int BagTagId { get; set; }

        /// <summary>
        /// 袋牌编号
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false)]
        public string TagNumber { get; set; }

        /// <summary>
        /// 关联时间
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    }
}