add architecture skeleton

This commit is contained in:
2026-04-19 13:12:04 +03:00
parent 312708531f
commit 2738f31f26
84 changed files with 2710 additions and 70 deletions
@@ -0,0 +1,20 @@
using GymLogAI.Core.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace GymLogAI.Persistence.Configurations;
public sealed class ExerciseConfiguration : IEntityTypeConfiguration<Exercise>
{
public void Configure(EntityTypeBuilder<Exercise> builder)
{
builder.ToTable("exercises");
builder.HasKey(x => x.Id);
builder.Property(x => x.Id).ValueGeneratedNever();
builder.Property(x => x.Name).HasMaxLength(256).IsRequired();
builder.Property(x => x.Description).HasMaxLength(2000);
builder.Property(x => x.Embedding).HasColumnType("real[]");
builder.HasIndex(x => x.Name).IsUnique();
}
}