WorkRecord.cs 1.64 KB
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ColumnAttribute = FreeSql.DataAnnotations.ColumnAttribute;

namespace HHECS.WorkHourStatistics.Models
{
    /// <summary>
    /// 打卡记录
    /// </summary>
    public class WorkRecord
    {
        [Key]
        [Column(IsPrimary = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string PersonName { get; set; } = null!;

        /// <summary>
        /// 工号
        /// </summary>
        public string Number { get; set; } = null!;

        /// <summary>
        /// 部门名称
        /// </summary>
        [NotMapped]
        public string DeptName { get; set; } = null!;

        /// <summary>
        /// 上班时间
        /// </summary>
        public DateTime BaseWorkCard { get; set; }

        /// <summary>
        /// 上班打卡时间
        /// </summary>
        public DateTime? WorkCard { get; set; }

        /// <summary>
        /// 上班打卡地址
        /// </summary>
        public string? WorkCardLocationAddress { get; set; }

        /// <summary>
        /// 下班时间
        /// </summary>
        public DateTime BaseOffDutyCard { get; set; }

        /// <summary>
        /// 下班打卡时间
        /// </summary>
        public DateTime? OffDutyCard { get; set; }

        /// <summary>
        /// 下班打卡地址
        /// </summary>
        public string? OffDutyCardLocationAddress { get; set; }

        /// <summary>
        /// 数据同步时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}