Setup wallet and transaction retrieval, better swagger docs, and proper dtos

This commit is contained in:
2023-08-19 16:43:58 -04:00
parent 658bd7ca2a
commit dc9ab74598
16 changed files with 224 additions and 21 deletions

View File

@ -1,12 +1,14 @@
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace IO.Swagger.Models.db
{
public class User
{
public int Id { get; set; }
public string Email { get; set; }
[StringLength(32, MinimumLength = 3)]
public string FirstName { get; set; }
@ -14,9 +16,7 @@ namespace IO.Swagger.Models.db
public string LastName { get; set; }
public string PasswordHash { get; set; }
public string Salt { get; set; }
public ICollection<Currency> Currencies { get; set; }
public ICollection<Transaction> TransactionsFrom { get; set; }
public ICollection<Transaction> TransactionsTo { get; set; }
}