diff options
Diffstat (limited to 'ApartmentManager/HousingWebAPI/Models/Users.cs')
-rw-r--r-- | ApartmentManager/HousingWebAPI/Models/Users.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ApartmentManager/HousingWebAPI/Models/Users.cs b/ApartmentManager/HousingWebAPI/Models/Users.cs new file mode 100644 index 0000000..0f6e693 --- /dev/null +++ b/ApartmentManager/HousingWebAPI/Models/Users.cs @@ -0,0 +1,38 @@ +namespace HousingWebAPI.Models +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + public partial class Users + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int ResidentNumber { get; set; } + + [Required] + [StringLength(15)] + public string Name { get; set; } + + [Required] + [StringLength(15)] + public string LastName { get; set; } + + public int? Phone { get; set; } + + [Column(TypeName = "date")] + public DateTime? BirthDate { get; set; } + + [StringLength(26)] + public string Email { get; set; } + + [Column(TypeName = "image")] + public byte[] Picture { get; set; } + + public int ApartmentNr { get; set; } + + public virtual Apartments Apartments { get; set; } + } +} |