2026-05-14 12:31:35 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AuthorBuddy.Web.Data;
|
|
|
|
|
|
|
|
|
|
[Table("Settings")]
|
|
|
|
|
public class SettingEntity
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
2026-05-17 07:27:18 +02:00
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
2026-05-14 12:31:35 +02:00
|
|
|
public string Key { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public string Value { get; set; } = string.Empty;
|
2026-05-17 07:27:18 +02:00
|
|
|
|
|
|
|
|
public int? UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? ProjectId { get; set; }
|
2026-05-14 12:31:35 +02:00
|
|
|
}
|