using System;
using SqlSugar;

namespace FactorySystemModel.SqlSugarModel
{
    ///<summary>
    ///包材子表
    ///</summary>
    [SugarTable("TFS_PackageChild")]
    public partial class TFS_PackageChild
    {
        public TFS_PackageChild()
        {

        }
        /// <summary>
        /// Desc:唯一标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int FID { get; set; }

        /// <summary>
        /// Desc:包材ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FPackageID { get; set; }

        /// <summary>
        /// Desc:物料ID
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FMaterialID { get; set; }

        /// <summary>
        /// Desc:协同ID（补充包材规格）
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int? FTeamID { get; set; }

        /// <summary>
        /// Desc:名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FName { get; set; }

        /// <summary>
        /// Desc:子项代码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FCode { get; set; }

        /// <summary>
        /// Desc:数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FCount { get; set; }

        /// <summary>
        /// Desc:单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FUnit { get; set; }

        /// <summary>
        /// Desc:物料组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FGroup { get; set; }

        /// <summary>
        /// Desc:包材外形尺寸(长*宽*高)(mm)
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOutSize { get; set; }

        /// <summary>
        /// Desc:包材重量(kg)
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FWeight { get; set; }

        /// <summary>
        /// Desc:删除状态：1删除，0未删除
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int FDeleted { get; set; }

        /// <summary>
        /// Desc:添加时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime ?FAddDate { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FEditUser { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime ?FEditDate { get; set; }

        /**
         * 20230404 需求变更
         * 包规对应尺寸，勾选后包材尺寸由最后一个勾选的子项决定
         * 增加FIsPackageSize字段以保存子项的尺寸是否对应包规
         * 同一个包材下只有一个子项为1，其他为0
         * **/
        /// <summary>
        /// Desc:包规对应尺寸
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int? FIsPackageSize { get; set; }
    }
}
