Module Etl.Types

type status =
  1. | Complete
  2. | Pending
  3. | Cancelled
type origin =
  1. | P
  2. | O
type order = {
  1. id : int;
  2. client_id : int;
  3. order_date : string;
  4. status : status;
  5. origin : origin;
}
type result = {
  1. order_id : int;
  2. price : float;
  3. tax : float;
}
type ym_result = {
  1. date : string;
  2. avg_price : float;
  3. avg_tax : float;
}
type item = {
  1. order_id : int;
  2. quantity : int;
  3. price : float;
  4. tax : float;
}
type int_result = {
  1. order_id : int;
  2. client_id : int;
  3. order_date : string;
  4. status : status;
  5. origin : origin;
  6. quantity : int;
  7. price : float;
  8. tax : float;
}
type user_input = {
  1. origin_filter : string;
  2. status_filter : string;
}