Setup wallet and transaction retrieval, better swagger docs, and proper dtos
This commit is contained in:
@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user