content: {-# LANGUAGE StandaloneDeriving #-}
  {-# OPTIONS_GHC -Wno-unused-imports #-}
  
  module Storage.Beam.CancellationCharges where
  
  import qualified Database.Beam as B
  import Domain.Types.Common ()
  import Kernel.External.Encryption
  import Kernel.Prelude
  import qualified Kernel.Prelude
  import qualified Kernel.Types.Common
  import Tools.Beam.UtilsTH
  
  data CancellationChargesT f = CancellationChargesT
    { cancellationCharges :: B.C f Kernel.Types.Common.HighPrecMoney,
      currency :: B.C f (Kernel.Prelude.Maybe Kernel.Types.Common.Currency),
      driverId :: B.C f Kernel.Prelude.Text,
      id :: B.C f Kernel.Prelude.Text,
      rideId :: B.C f (Kernel.Prelude.Maybe Kernel.Prelude.Text)
    }
    deriving (Generic, B.Beamable)
  
  instance B.Table CancellationChargesT where
    data PrimaryKey CancellationChargesT f = CancellationChargesId (B.C f Kernel.Prelude.Text) deriving (Generic, B.Beamable)
    primaryKey = CancellationChargesId . id
  
  type CancellationCharges = CancellationChargesT Identity
  
  $(enableKVPG ''CancellationChargesT ['id] [])
  
  $(mkTableInstances ''CancellationChargesT "cancellation_charges")
  