using Lada.Framework.Data.Domains.BaseEntities;
using Lada.Framework.Data.Domains.Identity;
using Lada.Framework.Data.Domains.Medias;

namespace Lada.Framework.Data.Domains.Hr
{
    public class Attendance : BaseEntityWithKey<Guid>
    {
        public int UserId { get; set; }
        public DateTimeOffset CheckInTime { get; set; }

        public DateTimeOffset? CheckOutTime { get; set; }

        /// <summary>
        /// Số ODO khi check-in
        /// </summary>
        public int CheckInOdo { get; set; }

        /// <summary>
        /// Số ODO khi check-out
        /// </summary>
        public int? CheckOutOdo { get; set; }

        // Navigation properties
        public virtual User User { get; set; }
        public ICollection<AttendanceMedia> AttendanceMedias { get; set; }
    }
}
