use chrono::{DateTime, Utc};
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;

#[derive(Debug, Clone, FromRow, Serialize, Deserialize)]
pub struct PaperRunPositionRow {
    pub id: i64,
    pub run_id: Uuid,
    pub seq: i32,
    pub side: String,
    pub price_entry: Decimal,
    pub price_exit: Decimal,
    pub quantity: Decimal,
    pub pnl: Decimal,
    pub fees_enter: Decimal,
    pub fees_exit: Decimal,
    pub time_enter: DateTime<Utc>,
    pub time_exit: DateTime<Utc>,
}
