Files
Deal/src/core/Deal.Infrastructure/Persistence/Configurations/GlobalSettingConfiguration.cs
T
Rustam Khalimov 27c7831910
ci / build-test (push) Canceled after 0s
Deal — единая кодовая база
SaaS-мониторинг Telegram: ядро (модули Cards/Kanban/Pipeline/Tenants/Settings/
Discovery, Api, Infrastructure), сервисы telegram/ai/ml/storage, фронт Vue,
контракты и grpc-hosting, деплой-конфиги (dev/prod/observability/CI-раннер),
Gitea Actions CI, документация (ТЗ, техдок, api-map, код-стайл, планы, бэклог).

Текущее состояние: все этапы роадмапа 0–12 закрыты, сборка 5 sln 0/0,
тесты 1340/130/52/38/9 зелёные.
2026-09-11 23:56:47 +03:00

25 lines
799 B
C#

using Deal.Infrastructure.Persistence.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Deal.Infrastructure.Persistence.Configurations;
/// <summary>
/// EF-конфигурация глобальной
/// </summary>
public sealed class GlobalSettingConfiguration : IEntityTypeConfiguration<GlobalSettingEntity>
{
private const int KeyMaxLength = 200;
public void Configure(EntityTypeBuilder<GlobalSettingEntity> builder)
{
builder.ToTable("global_settings", "public");
builder.HasKey(x => x.Key);
builder.Property(x => x.Key).HasMaxLength(KeyMaxLength);
builder.Property(x => x.Value).HasColumnType("text").IsRequired();
builder.Property(x => x.UpdatedAt).IsRequired();
}
}