public class PaydeskUser
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string id { get; set; }
[Required]
[DataType(DataType.EmailAddress)]
public string Email { get; set; }
[Required]
public string Password { get; set; }
[Required]
public string CompanyName { get; set; }
[Required]
public string IndustryName { get; set; }
[Required]
public string Address { get; set; }
[Required]
public string ZipCode { get; set; }
[Required]
public string City { get; set; }
[Required]
public string RegisteredDate { get; set; }
public string ContactPerson { get; set; }
[Required]
public string Status { get; set; }
public string Licence { get; set; }
public string OrganizationNumber { get; set; }
public List<User> Users { get; set; }
}
public class User
{
public User()
{
PayDesks = new List<Paydesk>();
}
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string Phone { get; set; }
public string Status { get; set; }
public string Date { get; set; }
public string ProfilePicture { get; set; }
public List<Paydesk> PayDesks { get; set; }
}