// This file has been auto generated by EF Core Power Tools. #nullable disable using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace Pos.Dispatcher.Database.Models; [Table("product")] [Index("ProductGroupId", Name = "FK_Product_Categories")] [MySqlCharSet("utf8mb4")] [MySqlCollation("utf8mb4_general_ci")] public partial class Product { [Key] [Column(TypeName = "int(11)")] public int Id { get; set; } [Required] [Column(TypeName = "tinytext")] public string Name { get; set; } [Precision(10, 2)] public decimal Price { get; set; } [Column(TypeName = "mediumtext")] public string Description { get; set; } [Column(TypeName = "int(11)")] public int ProductGroupId { get; set; } [Column(TypeName = "tinyint(4)")] public sbyte IsArchived { get; set; } [Column(TypeName = "int(11)")] public int Index { get; set; } [Column(TypeName = "tinyint(4)")] public sbyte? IsModified { get; set; } [ForeignKey("Id")] [InverseProperty("Product")] public virtual Productgroup IdNavigation { get; set; } }