WorkRecord.cs
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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; }
}
}