mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-12 22:11:54 +00:00
30 lines
837 B
C#
30 lines
837 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace barkmanapi;
|
|
|
|
public class BarkContext(DbContextOptions<BarkContext> options) : DbContext(options)
|
|
{
|
|
public DbSet<InventoryItems> Inventory { get; set; }
|
|
public DbSet<ItemStatus> ItemStatus { get; set; }
|
|
}
|
|
|
|
public class InventoryItems
|
|
{
|
|
public int Id {get; set;}
|
|
public int Barcode {get; set;}
|
|
public string Name { get; set; }
|
|
public string Brand { get; set; }
|
|
public string? SerialNumber { get; set; }
|
|
public ItemStatus Status { get; set; }
|
|
public string? StatusId { get; set; }
|
|
public float? Weight { get; set; }
|
|
public float? RentalPrice { get; set; }
|
|
public float? ReplacementCost { get; set; }
|
|
public string? Notes { get; set; }
|
|
}
|
|
|
|
public class ItemStatus
|
|
{
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
} |