using SqlSugar; namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.InventoryPosting.Entity; /// /// DOP-L3 物料默认库位状态(影子)。承载旧 `pr_SFM_InventoryTransactionProcessing2` 的 /// `UPDATE ItemMaster SET Location=...`(仅当 ItemMaster.Location 为空、txn Location 非空时首次落位)语义。 /// **路线 B 不给旧 ItemMaster 开写路径**,改写本 DOP-owned 表。 /// [SugarTable("ado_item_location_state", "DOP-L3物料默认库位状态(ItemMaster.Location语义,影子)")] [SugarIndex("uk_ado_item_loc_state", nameof(TenantId), OrderByType.Asc, nameof(DomainCode), OrderByType.Asc, nameof(ItemNum), OrderByType.Asc, IsUnique = true)] public class AdoItemLocationState : AdoInvEntityBase { [SugarColumn(ColumnName = "item_num", ColumnDescription = "物料号", Length = 50, IsNullable = false, DefaultValue = "")] public string ItemNum { get; set; } /// 默认/当前库位(首次落位;仅当原为空时写)。 [SugarColumn(ColumnName = "default_location", ColumnDescription = "默认库位", Length = 30, IsNullable = true)] public string DefaultLocation { get; set; } }