using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PSTW_CentralSystem.Areas.Bookings.Models
{
    /// <summary>
    /// Dynamic list of users who have "manager" powers in the Room Booking module.
    /// Keep it simple (global scope); you can extend with CompanyId/DepartmentId/RoomId later.
    /// </summary>
    [Table("booking_managers")]
    public class BookingManager
    {
        [Key]
        public int BookingManagerId { get; set; }

        /// <summary>FK → aspnetusers(Id) (int)</summary>
        [Required]
        public int UserId { get; set; }

        public bool IsActive { get; set; } = true;

        [Required]
        public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;

        public int? CreatedByUserId { get; set; }
    }
}
