Projektdateien hinzufügen.
This commit is contained in:
30
Webshop.Domain/Entities/Setting.cs
Normal file
30
Webshop.Domain/Entities/Setting.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Webshop.Domain.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Generische Tabelle für flexible Shop-Einstellungen.
|
||||
/// </summary>
|
||||
public class Setting
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
// Unique-Constraint wird via Fluent API konfiguriert
|
||||
[Required]
|
||||
[MaxLength(255)]
|
||||
public string Key { get; set; }
|
||||
|
||||
[MaxLength(2000)]
|
||||
public string? Value { get; set; }
|
||||
|
||||
[MaxLength(500)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[Required]
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? Group { get; set; } // "Shipping", "Order Processing", etc.
|
||||
}
|
||||
Reference in New Issue
Block a user