using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Models.db
{
///
/// The basic representation of a user
///
public class User
{
///
/// Gets or sets the identifier.
///
///
/// The identifier.
///
public int Id { get; set; }
///
/// Gets or sets the email of the user.
///
///
/// The email.
///
public string Email { get; set; }
///
/// Gets or sets the first name of the user.
///
///
/// The first name.
///
[StringLength(32, MinimumLength = 3)]
public string FirstName { get; set; }
///
/// Gets or sets the last name of the user.
///
///
/// The last name.
///
[StringLength(32, MinimumLength = 3)]
public string LastName { get; set; }
///
/// Gets or sets the hashed and salted equivalent of the users password.
///
///
/// The password hash.
///
public string PasswordHash { get; set; }
///
/// Gets or sets the randomly generated salt of the users password.
///
///
/// The salt.
///
public string Salt { get; set; }
///
/// Gets or sets the currencies the user has created.
///
///
/// The currencies.
///
public ICollection Currencies { get; set; }
///
/// Gets or sets the transactions from the user.
///
///
/// The transactions from.
///
public ICollection TransactionsFrom { get; set; }
///
/// Gets or sets the transactions to the user.
///
///
/// The transactions to.
///
public ICollection TransactionsTo { get; set; }
}
}