using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>仿真任务主表</summary>
    [Table("SimTask")]
    public class SimTask
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [NotNull]
        public string Name { get; set; } = string.Empty;

        [Unique]
        public string TaskNumber { get; set; } = string.Empty;

        public int Status { get; set; } = (int)TaskStatus.Draft;

        public int CurrentStep { get; set; } = 1;

        public int TickRate { get; set; } = 20;

        public string CreatedAt { get; set; } = DateTime.UtcNow.ToString("o");

        public string UpdatedAt { get; set; } = DateTime.UtcNow.ToString("o");
    }
}
