using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>逐帧位置记录（回放用）— 存任务分库</summary>
    [Table("SimFrameRecord")]
    public class SimFrameRecord
    {
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }

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

        public int FrameIndex { get; set; }

        public double Timestamp { get; set; }

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

        public int EntityType { get; set; }

        public double PosX { get; set; }
        public double PosY { get; set; }
        public double PosZ { get; set; }

        public double RotX { get; set; }
        public double RotY { get; set; }
        public double RotZ { get; set; }

        /// <summary>JSON：damageStage, cloudRadius, cloudOpacity 等</summary>
        public string StateData { get; set; } = "{}";
    }
}
