31 lines
594 B
C#
31 lines
594 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; }
|
|
}
|
|
} |