using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>模型元数据</summary>
    [Table("ModelInfo")]
    public class ModelInfo
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

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

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

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

        public double FileSize { get; set; }

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

        public bool HasHighResTexture { get; set; }

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