using Marco.Pms.Model.Employees; using Marco.Pms.Model.Utilities; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using System.ComponentModel.DataAnnotations.Schema; namespace Marco.Pms.Model.Inventory { public class Product : TenantRelation { public Guid Id { get; set; } public string Name { get; set; } = default!; public string Description { get; set; } = default!; public string ShortName { get; set; } = "PDT"; public bool IsActive { get; set; } = true; public Guid ProductCategoryId { get; set; } [ValidateNever] [ForeignKey("ProductCategoryId")] public ProductCategoryMaster? ProductCategory { get; set; } public DateTime CreatedAt { get; set; } public Guid CreatedById { get; set; } [ValidateNever] [ForeignKey("CreatedById")] public Employee? CreatedBy { get; set; } public DateTime? UpdatedAt { get; set; } public Guid? UpdatedById { get; set; } [ValidateNever] [ForeignKey("UpdatedById")] public Employee? UpdatedBy { get; set; } } }