Модуль коллаборации

This commit is contained in:
Халимов Рустам
2026-02-11 14:25:13 +03:00
parent b7ba835689
commit d6c1f63842
24 changed files with 1005 additions and 1 deletions
@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore;
using Nashel.Modules.Collaboration.Domain.Entities;
namespace Nashel.Modules.Collaboration.Infrastructure.Persistence
{
public class CollaborationDbContext : DbContext
{
public DbSet<Contract> Contracts { get; set; }
public CollaborationDbContext(DbContextOptions<CollaborationDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasDefaultSchema("collaboration");
modelBuilder.ApplyConfigurationsFromAssembly(typeof(CollaborationDbContext).Assembly);
base.OnModelCreating(modelBuilder);
}
}
}