using SqlSugar; namespace Evergreen.Health.Application.Health.Entities; [SugarTable("health_ib43_automation_execution", "IB43床位家具联动执行记录")] [SugarIndex("ix_ib43_automation_owner", nameof(UserId), OrderByType.Asc, nameof(BindingId), OrderByType.Asc, nameof(TriggeredAtMs), OrderByType.Desc)] public sealed class HealthIb43AutomationExecution { [SugarColumn(IsPrimaryKey = true, Length = 32)] public string Id { get; set; } = Guid.NewGuid().ToString("N"); [SugarColumn(Length = 32)] public string BindingId { get; set; } = ""; public long UserId { get; set; } [SugarColumn(Length = 64)] public string ActionKey { get; set; } = ""; [SugarColumn(Length = 128)] public string TargetLabel { get; set; } = ""; public long TriggeredAtMs { get; set; } [SugarColumn(IsNullable = true)] public long? CompletedAtMs { get; set; } [SugarColumn(Length = 48)] public string Result { get; set; } = "pending"; }