CalendarRecord.cs 669 Bytes
using FreeSql.DataAnnotations;
using System.ComponentModel.DataAnnotations;

namespace HHECS.WorkHourStatistics.Models
{
    /// <summary>
    /// 日历
    /// </summary>
    public class CalendarRecord
    {
        [Key]
        [Column(IsPrimary = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// 是否已同步
        /// </summary>
        public bool IsSync { get; set; }

        /// <summary>
        /// 同步失败的原因
        /// </summary>
        public string ErrorMessage { get; set; } = null!;
    }
}