Added Card model, updated database initialization, udated readme.

This commit is contained in:
2025-12-29 16:03:16 -06:00
parent 80c4deb674
commit 41d1cc4fc0
7 changed files with 161 additions and 32 deletions

View File

@@ -0,0 +1,10 @@
namespace SDG_Backend_Barracuda.Models;
public interface IDatabaseModel<T, in TInput>
{
Task<IEnumerable<T>> GetAllAsync();
Task<T?> GetByIdAsync(int id);
Task<T> CreateAsync(TInput input);
Task<T?> UpdateAsync(int id, TInput input);
Task<bool> DeleteAsync(int id);
}