2026-03-03 14:02:37 +01:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
|
|
|
<Nullable>enable</Nullable>
|
|
|
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2026-03-03 14:27:30 +01:00
|
|
|
<PackageReference Include="AspNetCore.HealthChecks.NpgSql" Version="9.0.0" />
|
|
|
|
|
<PackageReference Include="Finbuckle.MultiTenant" Version="10.0.3" />
|
|
|
|
|
<PackageReference Include="Finbuckle.MultiTenant.AspNetCore" Version="10.0.3" />
|
2026-03-03 14:02:37 +01:00
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.0" />
|
|
|
|
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />
|
2026-03-03 14:27:30 +01:00
|
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.3" />
|
feat(backend): add PostgreSQL schema, RLS policies, and multi-tenant middleware
- Add EF Core migrations for initial schema (clubs, members, work_items, shifts, shift_signups)
- Implement RLS policies with SET LOCAL for tenant isolation
- Add Finbuckle multi-tenant middleware with ClaimStrategy + HeaderStrategy fallback
- Create TenantValidationMiddleware to enforce JWT claims match X-Tenant-Id header
- Add tenant-aware DB interceptors (SaveChangesTenantInterceptor, TenantDbConnectionInterceptor)
- Configure AppDbContext with tenant scoping and RLS support
- Add test infrastructure: CustomWebApplicationFactory, TestAuthHandler, DatabaseFixture
- Write TDD integration tests for multi-tenant isolation and RLS enforcement
- Add health check null safety for connection string
Tasks: 7 (PostgreSQL schema + migrations + RLS), 8 (Finbuckle multi-tenancy + validation), 12 (test infrastructure)
2026-03-03 14:32:21 +01:00
|
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.3">
|
|
|
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
|
|
|
<PrivateAssets>all</PrivateAssets>
|
|
|
|
|
</PackageReference>
|
|
|
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.3" />
|
2026-03-03 14:02:37 +01:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\WorkClub.Application\WorkClub.Application.csproj" />
|
|
|
|
|
<ProjectReference Include="..\WorkClub.Infrastructure\WorkClub.Infrastructure.csproj" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
</Project>
|