using Microsoft.AspNetCore.Http; using MisIngredientesVue.Core.Attributes; using MisIngredientesVue.Core.Services; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace MisIngredientesVue.Core.Models { public class InvoicingInfo : RepositoryEntity { [Unique] [DoNotUpdate] [IgnoreRelationship] public string TenantId { get; set; } [Required] public string Name { get; set; } //Razón social [Required] [MaxLength(15)] public string Rfc { get; set; } [Required] public string Email { get; set; } public string Street { get; set; } public string NumInt { get; set; } public string NumExt { get; set; } public string Col { get; set; } public string Mun { get; set; } public string Zip { get; set; } public string State { get; set; } [Required] [MaxLength(5)] public string RegFiscal { get; set; } public string Phone { get; set; } [Required] [NotMapped] public IFormFile Cer { get; set; } [Required] [NotMapped] public IFormFile Key { get; set; } [Required] [IgnoreRelationship] [NotMapped] public string KeyPass { get; set; } public string NumSerie { get; set; } } public class ClientInvoicingInfo { public string FullAddress { get; set; } public string Name { get; set; } public string Rfc { get; set; } public string Email { get; set; } public string Street { get; set; } public string NumInt { get; set; } public string NumExt { get; set; } public string Col { get; set; } public string Mun { get; set; } public string Zip { get; set; } public string State { get; set; } public string Phone { get; set; } } }