AuthorBuddy/Data/SettingEntity.cs
2026-05-17 07:27:18 +02:00

22 lines
499 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AuthorBuddy.Web.Data;
[Table("Settings")]
public class SettingEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
public string Key { get; set; } = string.Empty;
[Required]
public string Value { get; set; } = string.Empty;
public int? UserId { get; set; }
public int? ProjectId { get; set; }
}