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

@@ -4,9 +4,9 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using yaflay.ru.Auth;
using yawaflua.ru.Auth;
namespace yaflay.ru.Database.Tables;
namespace yawaflua.ru.Database.Tables;
[Table("ApiKeys", Schema = "public")]
public class ApiKey

View File

@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace yaflay.ru.Models.Tables
namespace yawaflua.ru.Models.Tables
{
[Table("Blogs", Schema = "public")]
public class Blogs

View File

@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Net.Mail;
namespace yaflay.ru.Models.Tables
namespace yawaflua.ru.Models.Tables
{
[Table("Comments", Schema = "public")]
public class Comments

16
Models/Tables/Projects.cs Normal file
View File

@@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace api.yawaflua.ru.Models.Tables
{
[Table("Projects")]
public class Projects
{
[Key]
public int id { get; set; }
public string name { get; set; }
public string description { get; set; }
public string url { get; set; }
public string image { get; set; }
}
}

View File

@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace yaflay.ru.Models.Tables
namespace yawaflua.ru.Models.Tables
{
public class Redirects
{