add base on map registration

This commit is contained in:
Дмитрий Шиманский
2023-11-16 19:08:16 +03:00
parent f9cd50d646
commit b8db704fef
14 changed files with 661 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ namespace DiscordApp.Database
public DbSet<Bizness> Bizness { get; set; }
public DbSet<Reports> Reports { get; set; }
public DbSet<Certificate> Certificates { get; set; }
public DbSet<Redirects> Redirects { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace DiscordApp.Database.Tables
{
[Table("Redirects", Schema = "public")]
public class Redirects
{
[Key]
public string Id { get; set; }
public string url { get; set; }
}
}