using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace vendorApproverBackend.Entities { [Table("Categories")] public class Category { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } [MaxLength(255)] public string Label { get; set; } [MaxLength(255)] public string LabelAr { get; set; } [JsonIgnore] public long ApplicationCategoryId { get; set; } [JsonIgnore] [ForeignKey("ApplicationCategoryId")] public ApplicationCategory ApplicationCategory { get; set; } } }