mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
pooko
This commit is contained in:
26
Models/Tables/Blogs.cs
Normal file
26
Models/Tables/Blogs.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace yaflay.ru.Models.Tables
|
||||
{
|
||||
[Table("Blogs", Schema = "public")]
|
||||
public class Blogs
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string Annotation { get; set; }
|
||||
public string? ImageUrl { get; set; }
|
||||
public DateTime dateTime { get; set; }
|
||||
public Author author { get; set; }
|
||||
}
|
||||
|
||||
public class Author
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public int discordId { get; set; }
|
||||
public string discordNickName { get; set; }
|
||||
}
|
||||
}
|
||||
17
Models/Tables/Comments.cs
Normal file
17
Models/Tables/Comments.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Net.Mail;
|
||||
|
||||
namespace yaflay.ru.Models.Tables
|
||||
{
|
||||
[Table("Comments", Schema = "public")]
|
||||
public class Comments
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public long dateTime { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string creatorMail { get; set; }
|
||||
public int postId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
12
Models/Tables/Redirects.cs
Normal file
12
Models/Tables/Redirects.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace yaflay.ru.Models.Tables
|
||||
{
|
||||
public class Redirects
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public string? uri { get; set; }
|
||||
public string? redirectTo { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user