export interface KVaultStateEntity {
  id: bigint;
  created_on: Date;
  token_price: string;
  sol_price: string;
  tokens_available: string;
  tokens_available_usd: string;
  tokens_invested: string;
  tokens_invested_usd: string;
  share_price: string;
  tokens_per_share: string;
  apy: string;
  apy_theoretical: string | null;
  apy_actual: string | null;
  apy_farm_rewards: string | null;
  apy_reserves_incentives: string | null;
  apy_incentives: string | null;
  number_of_holders: string;
  shares_issued: string;
  cumulative_interest_earned: string;
  cumulative_interest_earned_usd: string;
  cumulative_interest_earned_sol: string;
  interest_earned_per_second: string;
  interest_earned_per_second_usd: string;
  interest_earned_per_second_sol: string;
  cumulative_performance_fees: string;
  cumulative_performance_fees_usd: string;
  cumulative_performance_fees_sol: string;
  cumulative_management_fees: string;
  cumulative_management_fees_usd: string;
  cumulative_management_fees_sol: string;
  cumulative_reserve_rewards_earned: string;
  cumulative_reserve_rewards_earned_usd: string;
  cumulative_reserve_rewards_earned_sol: string;
  raw_json: string;
  kvault_id: string;
}

export type KVaultStateHourEntity = KVaultStateEntity & { resampled_on: Date };
export type KVaultStateDayEntity = KVaultStateEntity & { resampled_on: Date };
