mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
28 lines
737 B
C#
28 lines
737 B
C#
#nullable disable
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace NadekoBot.Db.Models;
|
|
|
|
public class PatronUser
|
|
{
|
|
// [Key]
|
|
// public int Id { get; set; }
|
|
public string UniquePlatformUserId { get; set; }
|
|
public ulong UserId { get; set; }
|
|
public int AmountCents { get; set; }
|
|
|
|
public DateTime LastCharge { get; set; }
|
|
|
|
// Date Only component
|
|
public DateTime ValidThru { get; set; }
|
|
|
|
public PatronUser Clone()
|
|
=> new PatronUser()
|
|
{
|
|
UniquePlatformUserId = this.UniquePlatformUserId,
|
|
UserId = this.UserId,
|
|
AmountCents = this.AmountCents,
|
|
LastCharge = this.LastCharge,
|
|
ValidThru = this.ValidThru
|
|
};
|
|
} |