using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;

namespace bitforum.Models
{
    [Table("Config")]
    [Index(nameof(Key), IsUnique = true)]
    public class Config
    {
        public int ID { get; set; }
        public string Key { get; set; }
        public string? Value { get; set; }
        public string? Description { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.Now;
    }
}
