Implemented "Add" command and finished Db stuff.

This commit is contained in:
2025-01-31 21:42:43 +03:30
parent 07feac2f65
commit f0339e5c0e
8 changed files with 161 additions and 48 deletions

View File

@@ -1,8 +0,0 @@
namespace TBDel.Models;
// The DB entry - A list of files and folders
public class DbEntry
{
public List<FileEntry> Files { get; set; } = new();
public List<FolderEntry> Folders { get; set; } = new();
}

View File

@@ -2,7 +2,9 @@ namespace TBDel.Models;
public class FileEntry
{
// File path
// Unique 5 digit number for each entry
uint Id { get; set; }
// Absolute path
public string Path { get; set; } = string.Empty;
// Date added
public DateTime DateAdded { get; set; }