39 lines
1.2 KiB
C#
Raw Normal View History

2016-11-24 15:31:33 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
2017-01-30 11:35:16 +01:00
namespace Identity.API.Models
2016-11-24 15:31:33 +01:00
{
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
[Required]
2016-11-24 15:31:33 +01:00
public string CardNumber { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string SecurityNumber { get; set; }
[Required]
[RegularExpression(@"(0[1-9]|1[0-2])\/[0-9]{2}", ErrorMessage = "Expiration should match a valid MM/YY value")]
2016-11-24 15:31:33 +01:00
public string Expiration { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string CardHolderName { get; set; }
public int CardType { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string Street { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string City { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string State { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string Country { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string ZipCode { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string Name { get; set; }
[Required]
2016-11-24 15:31:33 +01:00
public string LastName { get; set; }
}
}