using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static Managing.Common.Enums;

namespace Managing.Infrastructure.Databases.PostgreSql.Entities;

[Table("TopVolumeTickers")]
public class TopVolumeTickerEntity
{
    [Key]
    public int Id { get; set; }
    
    public Ticker Ticker { get; set; }
    public DateTime Date { get; set; }
    
    [Column(TypeName = "decimal(18,8)")]
    public decimal Volume { get; set; }
    
    public int Rank { get; set; }
    public TradingExchanges Exchange { get; set; }
    
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
} 