shop info

This commit is contained in:
Tizian.Breuch
2025-08-12 11:07:15 +02:00
parent 0a43b1d7e8
commit 1692fe198e
13 changed files with 387 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
// src/Webshop.Domain/Entities/ShopInfo.cs
using System;
using System.ComponentModel.DataAnnotations;
namespace Webshop.Domain.Entities
{
/// <summary>
/// Enthält die zentralen Stammdaten des Shops.
/// Es sollte nur eine einzige Zeile in dieser Tabelle existieren.
/// </summary>
public class ShopInfo
{
[Key]
public Guid Id { get; set; }
[Required, MaxLength(255)]
public string ShopName { get; set; } = string.Empty;
[MaxLength(500)]
public string? Slogan { get; set; } // << NEU: Für Marketing >>
[Required, MaxLength(255)]
public string ContactEmail { get; set; } = string.Empty;
[MaxLength(50)]
public string? PhoneNumber { get; set; }
// --- Firmenadresse ---
[MaxLength(255)]
public string? Street { get; set; }
[MaxLength(100)]
public string? City { get; set; }
[MaxLength(20)]
public string? PostalCode { get; set; }
[MaxLength(100)]
public string? Country { get; set; }
// --- Rechtliches ---
[MaxLength(50)]
public string? VatNumber { get; set; } // Umsatzsteuer-ID
[MaxLength(100)]
public string? CompanyRegistrationNumber { get; set; } // Handelsregisternummer
// --- Social Media & Links ---
[MaxLength(255)]
public string? FacebookUrl { get; set; } // << NEU >>
[MaxLength(255)]
public string? InstagramUrl { get; set; } // << NEU >>
[MaxLength(255)]
public string? TwitterUrl { get; set; } // << NEU >>
}
}