make backend for my site

This commit is contained in:
yawaflua
2024-04-17 22:55:07 +03:00
parent 83c7fc1723
commit 1075225001
50 changed files with 571 additions and 312 deletions

View File

@@ -1,8 +1,9 @@
using Microsoft.EntityFrameworkCore;
using yaflay.ru.Database.Tables;
using yaflay.ru.Models.Tables;
using api.yawaflua.ru.Models.Tables;
using Microsoft.EntityFrameworkCore;
using yawaflua.ru.Database.Tables;
using yawaflua.ru.Models.Tables;
namespace yaflay.ru.Models
namespace yawaflua.ru.Models
{
public class AppDbContext : DbContext
{
@@ -15,6 +16,7 @@ namespace yaflay.ru.Models
public DbSet<Comments> Comments { get; set; }
public DbSet<Redirects> Redirects { get; set; }
public DbSet<ApiKey> ApiKeys { get; set; }
public DbSet<Projects> Projects { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);