using Microsoft.EntityFrameworkCore; using BackupPipefy.Domain.Entities; namespace BackupPipefy.Infrastructure.Data { public class BackupContext : DbContext { public DbSet PipefyCards { get; set; } public DbSet BackupLogs { get; set; } public DbSet BackupControls { get; set; } public BackupContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasKey(c => c.Id); modelBuilder.Entity() .HasKey(l => l.LogId); modelBuilder.Entity() .HasKey(c => c.Id); } } }