Some optimizations and fixes Signed-off-by: Dmitrii <computer@yawaflua.tech> Took 2 hours 4 minutes
21 lines
696 B
C#
21 lines
696 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using SpMega.Backend.Persistent.Models.Transactions;
|
|
|
|
namespace SpMega.Backend.Persistent.Models.Users;
|
|
|
|
public class User
|
|
{
|
|
public Guid Id { get; set; }
|
|
[MaxLength(2048)] public string Username { get; set; }
|
|
[MaxLength(2048)] public string Token { get; set; }
|
|
|
|
[MaxLength(2048)] public string? ShortId { get; set; }
|
|
|
|
public List<Card> Cards { get; set; } = [];
|
|
public List<Transaction> Transactions { get; set; } = [];
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; }
|
|
public DateTime? DeletedAt { get; set; }
|
|
public bool IsDeleted { get; set; } = false;
|
|
} |