namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform; [SugarTable("mdp_entity", "MDP同步实体配置")] public class MdpEntity { [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public long Id { get; set; } public long TenantId { get; set; } public long SourceId { get; set; } public string EntityCode { get; set; } = string.Empty; public string EntityName { get; set; } = string.Empty; public string EntityType { get; set; } = "TABLE"; public string? SourceTableName { get; set; } public string? SourceApiPath { get; set; } public long? ApiConfigId { get; set; } public string? TargetTableName { get; set; } public string SyncMode { get; set; } = "INCR"; public string? IncrColumn { get; set; } public int BatchSize { get; set; } = 5000; public string? ResponseDataPath { get; set; } public string? DedupKeyPath { get; set; } public string? LastCursor { get; set; } public DateTime? LastSyncTo { get; set; } public string? JobId { get; set; } public int Status { get; set; } = 1; public string? Remark { get; set; } public DateTime CreateTime { get; set; } public DateTime UpdateTime { get; set; } } [SugarTable("mdp_field_mapping", "MDP字段映射配置")] public class MdpFieldMapping { [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public long Id { get; set; } public long EntityId { get; set; } public string SourceField { get; set; } = string.Empty; public string TargetField { get; set; } = string.Empty; public string FieldType { get; set; } = "DIRECT"; public string? TransformScript { get; set; } public string? ConstValue { get; set; } public string? LookupTable { get; set; } public int IsRequired { get; set; } public string? DefaultValue { get; set; } public int SortOrder { get; set; } public DateTime CreateTime { get; set; } }