using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace RemoteServer; public class SyncLogHead { [Key] public Guid Id { get; set; } /// /// git versions /// [MaxLength(50)] public required string VersionsFromTag { get; set; } /// /// 同步时间 /// public DateTime SyncTime { get; set; } /// /// 客户端ID /// [MaxLength(200)] public required string ClientID { get; set; } /// /// 客户端名称 /// [MaxLength(50)] public string? ClientName { get; set; } /// /// 状态 0 正在进行,1 已完成,2 失败有错误 /// public int Status { get; set; } /// /// 同步消息 /// public string? Message { get; set; } } public class SyncLogFile { [Key] public Guid Id { get; set; } /// /// 头部Id /// public Guid HeadId { get; set; } /// /// 客户端文件全目录 /// [MaxLength(500)] public required string ClientRootPath { get; set; } /// /// 服务器文件全目录 /// [MaxLength(500)] public required string ServerRootPath { get; set; } /// /// 相对路径 /// [MaxLength(500)] public required string RelativePath { get; set; } } public class SyncGitCommit { [Key] public Guid Id { get; set; } public Guid HeadId { get; set; } /// /// git commit id /// public required string CommitId { get; set; } /// /// git commit 用户名 /// public required string CommitUserName { get; set; } /// /// git commit 时间 /// public DateTime CommitTime { get; set; } /// /// git 提交内容 /// public required string CommitMessage { get; set; } }