File size: 486 Bytes
ee79726
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace DbConnect.Entities;

public class WalletTransaction
{
    public Guid Id { get; set; }
    public Guid UserId { get; set; }
    public decimal Amount { get; set; }
    public string Type { get; set; } = null!; // Deposit, Purchase, Refund
    public string? Description { get; set; }
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public Guid? ProcessedBy { get; set; } // Librarian ID

    public virtual User User { get; set; } = null!;
}