29 lines
820 B
C#
29 lines
820 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class StockMovement
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
public Guid FK_ItemId { get; set; }
|
|
[ForeignKey("FK_ItemId")]
|
|
public Item Item { get; set; }
|
|
|
|
public Guid? FromLocationId { get; set; }
|
|
public LocationType? FromLocationType { get; set; }
|
|
|
|
public Guid? ToLocationId { get; set; }
|
|
public LocationType? ToLocationType { get; set; }
|
|
|
|
public decimal Quantity { get; set; }
|
|
public MovementType Type { get; set; }
|
|
|
|
public string? ReasonCode { get; set; }
|
|
public Guid? ReferenceId { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.Now;
|
|
public Guid CreatedBy { get; set; }
|
|
}
|
|
}
|