using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>仿真事件（数据库记录）</summary>
    [Table("SimEvent")]
    public class SimEvent
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [Indexed]
        public string TaskId { get; set; } = string.Empty;

        public double OccurredAt { get; set; }

        public int EventType { get; set; }

        public string SourceId { get; set; } = string.Empty;

        public string TargetId { get; set; } = string.Empty;

        public string DataJson { get; set; } = "{}";

        public string Description { get; set; } = string.Empty;
    }
}
