using Flensrocker.ToDo.Abstractions.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Flensrocker.ToDo.Persistence.PostgreSQL.Tasks; internal class TaskViewDailyStatsEntityConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable(ToDoPostgreSQLPersistenceConstants.TaskDailyStatsTableName, ToDoPostgreSQLPersistenceConstants.SchemaName); builder.Property(e => e.DailyStatsId).HasMaxLength(72).IsRequired(); builder.Property(e => e.Day); builder.Property(e => e.TenantId); builder.Property(e => e.UserId); builder.Property(e => e.CountOpened); builder.Property(e => e.CountCompleted); builder.Property(e => e.CountDismissed); builder.HasKey(e => e.DailyStatsId); } }