Add item tracking migrations

This commit is contained in:
2026-10-06 13:30:12 +05:30
parent 92f1aadb81
commit c358764f4e
11 changed files with 9799 additions and 12 deletions
+20
View File
@@ -0,0 +1,20 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Distribution.Models
{
/// <summary>
/// Backs both batch/lot tracking and expiry-only tracking for an item. BatchNumber is null
/// when the item tracks an expiry date but not a batch number (TracksExpiryDate without
/// TracksBatches).
/// </summary>
public class ItemBatch : Template
{
public Guid FK_ItemId { get; set; }
[ForeignKey("FK_ItemId")]
public Item Item { get; set; }
public string? BatchNumber { get; set; }
public DateTime? ManufactureDate { get; set; }
public DateTime? ExpiryDate { get; set; }
}
}