Initial commit: Lagerbestand Blazor Projekt

This commit is contained in:
spaethf committed 2026-09-21 21:28:23 +02:00
commit cba9414e92
105 files changed
+36431

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Lagerbestand.Models;
public class InventoryItem
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[Required]
[MaxLength(500)]
public string QrCode { get; set; } = string.Empty;
[MaxLength(200)]
public string? Name { get; set; }
[MaxLength(500)]
public string? Description { get; set; }
public Guid? CatalogItemId { get; set; }
[ForeignKey(nameof(CatalogItemId))]
public CatalogItem? CatalogItem { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? UpdatedAt { get; set; }
}