using Microsoft.EntityFrameworkCore;

namespace SagiriBot.Objects.Databases.Evaluation
{
    public class SnippetContext : DbContext
    {
        public DbSet<SnippetModel> Snippets { get; set; }

        public SnippetContext() : base()
        {
            Database.EnsureCreated();
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlite("Data Source=Files/snippet.db");
        }
    }
}