mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
added unique check for barcode
This commit is contained in:
@@ -8,10 +8,11 @@ public class BarkContext(DbContextOptions<BarkContext> options) : DbContext(opti
|
||||
public DbSet<ItemStatus> ItemStatus { get; set; }
|
||||
}
|
||||
|
||||
[Index(nameof(Barcode), IsUnique = true)]
|
||||
public class InventoryItems
|
||||
{
|
||||
public int Id {get; set;}
|
||||
public int Barcode {get; set;}
|
||||
public string Barcode {get; set;}
|
||||
public string Name { get; set; }
|
||||
public string Brand { get; set; }
|
||||
public string? SerialNumber { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user