Добавил домен

This commit is contained in:
2026-04-28 15:52:05 +03:00
parent fd94733873
commit 25d617639c
25 changed files with 349 additions and 0 deletions
@@ -0,0 +1,20 @@
using UniVerse.Domain.Enums;
namespace UniVerse.Domain.Entities;
public class CoinTransaction
{
public int Id { get; set; }
public int UserId { get; set; }
public int Amount { get; set; }
public CoinTransactionType Type { get; set; }
public int? ReviewId { get; set; }
public int? AchievementId { get; set; }
public string? Description { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
// Navigation properties
public User User { get; set; } = null!;
public Review? Review { get; set; }
public Achievement? Achievement { get; set; }
}