content: {-# LANGUAGE StandaloneDeriving #-}
  {-# OPTIONS_GHC -Wno-unused-imports #-}
  
  module Storage.Beam.StopInformation where
  
  import qualified Database.Beam as B
  import Domain.Types.Common ()
  import Kernel.External.Encryption
  import Kernel.Prelude
  import qualified Kernel.Prelude
  import Tools.Beam.UtilsTH
  
  data StopInformationT f = StopInformationT
    { createdAt :: B.C f Kernel.Prelude.UTCTime,
      id :: B.C f Kernel.Prelude.Text,
      rideId :: B.C f Kernel.Prelude.Text,
      stopId :: B.C f Kernel.Prelude.Text,
      stopOrder :: B.C f Kernel.Prelude.Int,
      updatedAt :: B.C f Kernel.Prelude.UTCTime,
      waitingTimeEnd :: B.C f (Kernel.Prelude.Maybe Kernel.Prelude.UTCTime),
      waitingTimeStart :: B.C f Kernel.Prelude.UTCTime,
      merchantId :: B.C f (Kernel.Prelude.Maybe Kernel.Prelude.Text),
      merchantOperatingCityId :: B.C f (Kernel.Prelude.Maybe Kernel.Prelude.Text)
    }
    deriving (Generic, B.Beamable)
  
  instance B.Table StopInformationT where
    data PrimaryKey StopInformationT f = StopInformationId (B.C f Kernel.Prelude.Text) deriving (Generic, B.Beamable)
    primaryKey = StopInformationId . id
  
  type StopInformation = StopInformationT Identity
  
  $(enableKVPG ''StopInformationT ['id] [['rideId]])
  
  $(mkTableInstancesWithTModifier ''StopInformationT "stop_information" [])
  