﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace fun.Hotels.Ef.Entities
{
    public class HotelRoom
    {
        public long HotelRoomId { get; set; }

        //[Index("IX_HotelIdAndRoomNumber", 1, IsUnique = false)]
        public long HotelId { get; set; }
        [Required]
        public Hotel Hotel { get; set; }

        // [Index("IX_HotelIdAndRoomNumber", 2, IsUnique = false)]
        public int RoomNumber { get; set; }

        public int SquareFeet { get; set; }

        public int Bedrooms { get; set; }

        public int Sleeps { get; set; }

        public virtual ICollection<HotelRoomBooking> HotelRoomBookings { get; set; }


        #region Modification History
        public DateTime DateModified { get; set; }

        public DateTime DateCreated { get; set; }
        #endregion
    }
}