Files
InventoryTracker/InventoryTraker.Web/Core/Transaction.cs
T
2016-08-31 12:08:22 -04:00

39 lines
672 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace InventoryTraker.Web.Core
{
public class Transaction
{
public int Id { get; set; }
public virtual Inventory Inventory { get; set; }
public TransactionType TransactionType { get; set; }
[Required]
public int AddedQuantity { get; set; }
[Required]
public int RemovedQuantity { get; set; }
[Required]
public int CurrentQuantity { get; set; }
[Required]
public DateTime TransactionDate { get; set; }
public string Memo { get; set; }
[Required]
public DateTime Timestamp { get; set; }
}
public enum TransactionType
{
Added,
Distributed,
Expired,
Loss
}
}