using Microsoft.EntityFrameworkCore;

namespace dotbot.Core
{
    public class DotbotDb : DbContext
    {
        public DbSet<Definition> Defs { get; set; }
        public DbSet<Email> Emails { get; set; }
        public DbSet<UserLocation> UserLocations { get; set; }
        public DbSet<Image> Images { get; set; }

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

}
