using System.ComponentModel.DataAnnotations;

namespace Intentor.Models;

public enum SpaceKind
{
    HomeAssistant = 1,
    Virtual = 2
}

public class Space
{
    [Key]
    public int Id { get; set; }

    [Required]
    [MaxLength(100)]
    public string Name { get; set; } = string.Empty;

    public SpaceKind Kind { get; set; } = SpaceKind.HomeAssistant;

    /// <summary>
    /// Optional key/slug for stable references, e.g. "living-room", "garden", "global".
    /// </summary>
    [MaxLength(100)]
    public string? Key { get; set; }

    public ICollection<Intent> Intents { get; set; } = new List<Intent>();
}
