33 lines
715 B
C#
33 lines
715 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace InventoryTraker.Web.Core
|
|
{
|
|
public class Inventory
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
public string Id { get; set; }
|
|
|
|
[Required]
|
|
public string ProgramName { get; set; }
|
|
|
|
public string ProgramSubtype { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public virtual ICollection<Transaction> Transactions { get; set; }
|
|
|
|
public int Quantity { get; set; }
|
|
|
|
[Required]
|
|
public DateTime ShredReadyDate { get; set; }
|
|
|
|
[Required]
|
|
public DateTime AddedDate { get; set; }
|
|
|
|
public string Memo { get; set; }
|
|
}
|
|
} |