using MisIngredientesVue.Core.Attributes; using MisIngredientesVue.Core.Services; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace MisIngredientesVue.Core.Models { public class CfdiUsageRecord : RepositoryEntity { [DoNotUpdate] [IgnoreRelationship] public string TenantId { get; set; } [DoNotUpdate] public int? CreatedById { get; set; } [DoNotUpdate] public UserData CreatedBy { get; set; } [IncludeTime] [DoNotUpdate] public DateTime Created { get; set; } public string Folio { get; set; } public CfdiRecordType Type { get; set; } public string Uuid { get; set; } public CfdiRecordStatus Status { get; set; } [MaxLength(24)] [IgnoreRelationship] public string SubscriptionItemId { get; set; } //De stripe [MaxLength(40)] [IgnoreRelationship] public string UsageRecordId { get; set; } //De Stripe [NotMapped] public decimal Cost { get; set; } } public enum CfdiRecordType { Invoice = 0, Payment = 1 } public enum CfdiRecordStatus { Generated = 0, Cancelled = 1 } }