1
0
mirror of https://github.com/bitwarden/server.git synced 2025-03-16 14:13:10 +01:00

[PM-2944] Enable nullable For Billing Entities (#4390)

* Enable `nullable` For Billing Entities

* Remove .gitignore Change
This commit is contained in:
Justin Baur 2024-07-03 15:17:18 -04:00 committed by GitHub
parent 1d09b88ade
commit b2df2e82dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,8 @@
using Bit.Core.Entities;
using Bit.Core.Utilities;
#nullable enable
namespace Bit.Core.Billing.Entities;
public class ProviderInvoiceItem : ITableObject<Guid>
@ -9,13 +11,13 @@ public class ProviderInvoiceItem : ITableObject<Guid>
public Guid Id { get; set; }
public Guid ProviderId { get; set; }
[MaxLength(50)]
public string InvoiceId { get; set; }
public string InvoiceId { get; set; } = null!;
[MaxLength(50)]
public string InvoiceNumber { get; set; }
public string? InvoiceNumber { get; set; }
[MaxLength(50)]
public string ClientName { get; set; }
public string ClientName { get; set; } = null!;
[MaxLength(50)]
public string PlanName { get; set; }
public string PlanName { get; set; } = null!;
public int AssignedSeats { get; set; }
public int UsedSeats { get; set; }
public decimal Total { get; set; }

View File

@ -2,6 +2,8 @@
using Bit.Core.Entities;
using Bit.Core.Utilities;
#nullable enable
namespace Bit.Core.Billing.Entities;
public class ProviderPlan : ITableObject<Guid>