Add EF Core, Npgsql, Todo entity, and AppDbContext

This commit is contained in:
EugeneTes
2026-08-15 11:29:39 +00:00
parent f7b0b7fb59
commit 1e2a60880e
4 changed files with 60 additions and 21 deletions

10
backend/Models/Todo.cs Normal file
View File

@@ -0,0 +1,10 @@
namespace Backend.Models;
public class Todo
{
public long Id { get; set; }
public Guid UserId { get; set; }
public string Title { get; set; } = string.Empty;
public bool Completed { get; set; }
public DateTimeOffset CreatedAt { get; set; }
}