using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;         // re: DatabaseGeneratedOption
using System.ComponentModel.DataAnnotations;

namespace RestAPI2.Models
{
    public class Resident
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        public string First { get; set; }
        public string Surname { get; set; }
        public string PersonalCode { get; set; }

        [DataType(DataType.Date)]
        public string Dateofbirth { get; set; }

        public string Phone {get;set;}
        public string Email {get;set;}
        public int ApartmentNumber{get;set;}
    }
}