Added the files.

This commit is contained in:
Batuhan Berk Başoğlu 2024-02-08 19:29:56 -05:00
commit 1553e6b971
315 changed files with 56809 additions and 0 deletions

13
Models/TodoContext.cs Executable file
View file

@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore;
namespace TodoApi.Models;
public class TodoContext : DbContext
{
public TodoContext(DbContextOptions<TodoContext> options)
: base(options)
{
}
public DbSet<TodoItem> TodoItems { get; set; } = null!;
}

12
Models/TodoItem.cs Executable file
View file

@ -0,0 +1,12 @@
namespace TodoApi.Models;
public class TodoItem
{
public string? Author { get; set; }
public string? AuthorId { get; set; }
public long Id { get; set; }
public string? Likes { get; set; }
public string? Popularity { get; set; }
public string? Reads { get; set; }
public string[]? Tags { get; set; }
}