using System.ComponentModel.DataAnnotations;

namespace LittleShop.Models;

public class ProductPhoto
{
    [Key]
    public Guid Id { get; set; }
    
    public Guid ProductId { get; set; }
    
    [Required]
    [StringLength(500)]
    public string FileName { get; set; } = string.Empty;
    
    [Required]
    [StringLength(1000)]
    public string FilePath { get; set; } = string.Empty;
    
    [StringLength(100)]
    public string? AltText { get; set; }
    
    public int SortOrder { get; set; }
    
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    
    // Navigation properties
    public virtual Product Product { get; set; } = null!;
}