Skip to content

Commit

Permalink
add schema for delegations-store
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Mar 21, 2023
1 parent 2a2e983 commit f85966c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/wallet/src/Cardano/Wallet/DB/Sqlite/Schema.hs
Expand Up @@ -31,6 +31,7 @@ import Prelude
import Cardano.Address.Script
( Cosigner, Script )
import Cardano.Pool.Types
( PoolId )
import Cardano.Slotting.Slot
( SlotNo )
import Cardano.Wallet.DB.Sqlite.Types
Expand Down Expand Up @@ -505,5 +506,13 @@ SubmissionsSlots
submissionsSlotsWallet W.WalletId sql=wallet_id

Primary submissionsSlotsWallet

Delegations
delegationWallet W.WalletId sql=wid
delegationSlot SlotNo sql=slot
delegationState Int sql=state
delegationPool PoolId Maybe sql=pool

Primary delegationWallet delegationSlot
deriving Show Generic Eq
|]

0 comments on commit f85966c

Please sign in to comment.