main project split, authpassword endpoint created

This commit is contained in:
2026-01-20 02:14:01 +01:00
Unverified
parent a01e8666a3
commit 49e6c8a643
32 changed files with 246 additions and 104 deletions

View File

@@ -0,0 +1,33 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TimetableDesigner.Backend.Services.Authentication.Database.Model;
namespace TimetableDesigner.Backend.Services.Authentication.Database.Configuration;
public class AccountConfiguration : IEntityTypeConfiguration<Account>
{
public void Configure(EntityTypeBuilder<Account> builder)
{
builder.HasKey(x => x.Id);
builder.HasIndex(x => x.Id)
.IsUnique();
builder.Property(x => x.Id)
.IsRequired()
.UseIdentityAlwaysColumn();
builder.Property(x => x.Email)
.HasMaxLength(320)
.IsRequired();
builder.Property(x => x.Password)
.HasMaxLength(1000)
.IsRequired();
builder.Property(x => x.PasswordSalt)
.HasMaxLength(20)
.IsRequired();
builder.Property(b => b.Version)
.IsRowVersion();
}
}