// Copyright 2020 De Staat der Nederlanden, Ministerie van Volksgezondheid, Welzijn en Sport.
// Licensed under the EUROPEAN UNION PUBLIC LICENCE v. 1.2
// SPDX-License-Identifier: EUPL-1.2

using System;
using Microsoft.EntityFrameworkCore;
using NL.Rijksoverheid.ExposureNotification.BackEnd.Iks.Downloader.Entities;

namespace NL.Rijksoverheid.ExposureNotification.BackEnd.Iks.Downloader.EntityFramework
{
    public class IksInDbContext : DbContext
    {
        public IksInDbContext(DbContextOptions<IksInDbContext> options)
            : base(options)
        {
        }

        public DbSet<IksInEntity> Received { get; set; }
        public DbSet<IksInJobEntity> InJob { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            if (modelBuilder == null)
            {
                throw new ArgumentNullException(nameof(modelBuilder));
            }

            base.OnModelCreating(modelBuilder);
        }
    }
}
