Config.cs 452 B

12345678910111213141516
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace bitforum.Models
  4. {
  5. [Table("Config")]
  6. [Index(nameof(Key), IsUnique = true)]
  7. public class Config
  8. {
  9. public int ID { get; set; }
  10. public string Key { get; set; }
  11. public string? Value { get; set; }
  12. public string? Description { get; set; }
  13. public DateTime CreatedAt { get; set; } = DateTime.Now;
  14. }
  15. }