diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/DefaultSchema.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/DefaultSchema.java index 9b67aa66..e9c46b45 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/DefaultSchema.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/DefaultSchema.java @@ -12,12 +12,9 @@ import org.cardanofoundation.ledgersync.jooq.tables.AddressToken; import org.cardanofoundation.ledgersync.jooq.tables.AddressTokenBalance; import org.cardanofoundation.ledgersync.jooq.tables.AddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressToken; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggPoolInfo; -import org.cardanofoundation.ledgersync.jooq.tables.AssetMetadata; import org.cardanofoundation.ledgersync.jooq.tables.Block; import org.cardanofoundation.ledgersync.jooq.tables.CostModel; +import org.cardanofoundation.ledgersync.jooq.tables.Cursor_; import org.cardanofoundation.ledgersync.jooq.tables.Datum; import org.cardanofoundation.ledgersync.jooq.tables.Delegation; import org.cardanofoundation.ledgersync.jooq.tables.DelistedPool; @@ -25,6 +22,7 @@ import org.cardanofoundation.ledgersync.jooq.tables.EpochParam; import org.cardanofoundation.ledgersync.jooq.tables.EpochStake; import org.cardanofoundation.ledgersync.jooq.tables.EpochSyncTime; +import org.cardanofoundation.ledgersync.jooq.tables.Era; import org.cardanofoundation.ledgersync.jooq.tables.ExtraKeyWitness; import org.cardanofoundation.ledgersync.jooq.tables.FailedTxOut; import org.cardanofoundation.ledgersync.jooq.tables.MaTxMint; @@ -38,14 +36,12 @@ import org.cardanofoundation.ledgersync.jooq.tables.PoolOfflineFetchError; import org.cardanofoundation.ledgersync.jooq.tables.PoolOwner; import org.cardanofoundation.ledgersync.jooq.tables.PoolRelay; -import org.cardanofoundation.ledgersync.jooq.tables.PoolReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.PoolRetire; import org.cardanofoundation.ledgersync.jooq.tables.PoolUpdate; import org.cardanofoundation.ledgersync.jooq.tables.PotTransfer; import org.cardanofoundation.ledgersync.jooq.tables.Redeemer; import org.cardanofoundation.ledgersync.jooq.tables.RedeemerData; import org.cardanofoundation.ledgersync.jooq.tables.ReferenceTxIn; -import org.cardanofoundation.ledgersync.jooq.tables.ReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.Reserve; import org.cardanofoundation.ledgersync.jooq.tables.ReservedPoolTicker; import org.cardanofoundation.ledgersync.jooq.tables.Reward; @@ -55,18 +51,16 @@ import org.cardanofoundation.ledgersync.jooq.tables.SlotLeader; import org.cardanofoundation.ledgersync.jooq.tables.StakeAddress; import org.cardanofoundation.ledgersync.jooq.tables.StakeDeregistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeKeyReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.StakeRegistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfo; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfoCheckpoint; import org.cardanofoundation.ledgersync.jooq.tables.Treasury; import org.cardanofoundation.ledgersync.jooq.tables.Tx; +import org.cardanofoundation.ledgersync.jooq.tables.TxBootstrapWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.TxChart; import org.cardanofoundation.ledgersync.jooq.tables.TxIn; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadata; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadataHash; import org.cardanofoundation.ledgersync.jooq.tables.TxOut; +import org.cardanofoundation.ledgersync.jooq.tables.TxWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.UnconsumeTxIn; import org.cardanofoundation.ledgersync.jooq.tables.Withdrawal; import org.jooq.Catalog; @@ -113,26 +107,6 @@ public class DefaultSchema extends SchemaImpl { */ public final AddressTxBalance ADDRESS_TX_BALANCE = AddressTxBalance.ADDRESS_TX_BALANCE; - /** - * The table agg_address_token. - */ - public final AggAddressToken AGG_ADDRESS_TOKEN = AggAddressToken.AGG_ADDRESS_TOKEN; - - /** - * The table agg_address_tx_balance. - */ - public final AggAddressTxBalance AGG_ADDRESS_TX_BALANCE = AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE; - - /** - * The table agg_pool_info. - */ - public final AggPoolInfo AGG_POOL_INFO = AggPoolInfo.AGG_POOL_INFO; - - /** - * The table asset_metadata. - */ - public final AssetMetadata ASSET_METADATA = AssetMetadata.ASSET_METADATA; - /** * The table block. */ @@ -143,6 +117,11 @@ public class DefaultSchema extends SchemaImpl { */ public final CostModel COST_MODEL = CostModel.COST_MODEL; + /** + * The table cursor_. + */ + public final Cursor_ CURSOR_ = Cursor_.CURSOR_; + /** * The table datum. */ @@ -178,6 +157,11 @@ public class DefaultSchema extends SchemaImpl { */ public final EpochSyncTime EPOCH_SYNC_TIME = EpochSyncTime.EPOCH_SYNC_TIME; + /** + * The table era. + */ + public final Era ERA = Era.ERA; + /** * The table extra_key_witness. */ @@ -243,11 +227,6 @@ public class DefaultSchema extends SchemaImpl { */ public final PoolRelay POOL_RELAY = PoolRelay.POOL_RELAY; - /** - * The table pool_report_history. - */ - public final PoolReportHistory POOL_REPORT_HISTORY = PoolReportHistory.POOL_REPORT_HISTORY; - /** * The table pool_retire. */ @@ -278,11 +257,6 @@ public class DefaultSchema extends SchemaImpl { */ public final ReferenceTxIn REFERENCE_TX_IN = ReferenceTxIn.REFERENCE_TX_IN; - /** - * The table report_history. - */ - public final ReportHistory REPORT_HISTORY = ReportHistory.REPORT_HISTORY; - /** * The table reserve. */ @@ -328,31 +302,11 @@ public class DefaultSchema extends SchemaImpl { */ public final StakeDeregistration STAKE_DEREGISTRATION = StakeDeregistration.STAKE_DEREGISTRATION; - /** - * The table stake_key_report_history. - */ - public final StakeKeyReportHistory STAKE_KEY_REPORT_HISTORY = StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY; - /** * The table stake_registration. */ public final StakeRegistration STAKE_REGISTRATION = StakeRegistration.STAKE_REGISTRATION; - /** - * The table stake_tx_balance. - */ - public final StakeTxBalance STAKE_TX_BALANCE = StakeTxBalance.STAKE_TX_BALANCE; - - /** - * The table token_info. - */ - public final TokenInfo TOKEN_INFO = TokenInfo.TOKEN_INFO; - - /** - * The table token_info_checkpoint. - */ - public final TokenInfoCheckpoint TOKEN_INFO_CHECKPOINT = TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT; - /** * The table treasury. */ @@ -363,6 +317,11 @@ public class DefaultSchema extends SchemaImpl { */ public final Tx TX = Tx.TX; + /** + * The table tx_bootstrap_witnesses. + */ + public final TxBootstrapWitnesses TX_BOOTSTRAP_WITNESSES = TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES; + /** * The table tx_chart. */ @@ -388,6 +347,11 @@ public class DefaultSchema extends SchemaImpl { */ public final TxOut TX_OUT = TxOut.TX_OUT; + /** + * The table tx_witnesses. + */ + public final TxWitnesses TX_WITNESSES = TxWitnesses.TX_WITNESSES; + /** * The table unconsume_tx_in. */ @@ -426,12 +390,9 @@ public final List> getTables() { AddressToken.ADDRESS_TOKEN, AddressTokenBalance.ADDRESS_TOKEN_BALANCE, AddressTxBalance.ADDRESS_TX_BALANCE, - AggAddressToken.AGG_ADDRESS_TOKEN, - AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, - AggPoolInfo.AGG_POOL_INFO, - AssetMetadata.ASSET_METADATA, Block.BLOCK, CostModel.COST_MODEL, + Cursor_.CURSOR_, Datum.DATUM, Delegation.DELEGATION, DelistedPool.DELISTED_POOL, @@ -439,6 +400,7 @@ public final List> getTables() { EpochParam.EPOCH_PARAM, EpochStake.EPOCH_STAKE, EpochSyncTime.EPOCH_SYNC_TIME, + Era.ERA, ExtraKeyWitness.EXTRA_KEY_WITNESS, FailedTxOut.FAILED_TX_OUT, MaTxMint.MA_TX_MINT, @@ -452,14 +414,12 @@ public final List> getTables() { PoolOfflineFetchError.POOL_OFFLINE_FETCH_ERROR, PoolOwner.POOL_OWNER, PoolRelay.POOL_RELAY, - PoolReportHistory.POOL_REPORT_HISTORY, PoolRetire.POOL_RETIRE, PoolUpdate.POOL_UPDATE, PotTransfer.POT_TRANSFER, Redeemer.REDEEMER, RedeemerData.REDEEMER_DATA, ReferenceTxIn.REFERENCE_TX_IN, - ReportHistory.REPORT_HISTORY, Reserve.RESERVE, ReservedPoolTicker.RESERVED_POOL_TICKER, Reward.REWARD, @@ -469,18 +429,16 @@ public final List> getTables() { SlotLeader.SLOT_LEADER, StakeAddress.STAKE_ADDRESS, StakeDeregistration.STAKE_DEREGISTRATION, - StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, StakeRegistration.STAKE_REGISTRATION, - StakeTxBalance.STAKE_TX_BALANCE, - TokenInfo.TOKEN_INFO, - TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT, Treasury.TREASURY, Tx.TX, + TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES, TxChart.TX_CHART, TxIn.TX_IN, TxMetadata.TX_METADATA, TxMetadataHash.TX_METADATA_HASH, TxOut.TX_OUT, + TxWitnesses.TX_WITNESSES, UnconsumeTxIn.UNCONSUME_TX_IN, Withdrawal.WITHDRAWAL ); diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/Indexes.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/Indexes.java index 9dc2cc0e..2dd9f0c7 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/Indexes.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/Indexes.java @@ -8,11 +8,8 @@ import org.cardanofoundation.ledgersync.jooq.tables.AddressToken; import org.cardanofoundation.ledgersync.jooq.tables.AddressTokenBalance; import org.cardanofoundation.ledgersync.jooq.tables.AddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressToken; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggPoolInfo; -import org.cardanofoundation.ledgersync.jooq.tables.AssetMetadata; import org.cardanofoundation.ledgersync.jooq.tables.Block; +import org.cardanofoundation.ledgersync.jooq.tables.Cursor_; import org.cardanofoundation.ledgersync.jooq.tables.Datum; import org.cardanofoundation.ledgersync.jooq.tables.Delegation; import org.cardanofoundation.ledgersync.jooq.tables.Epoch; @@ -29,13 +26,11 @@ import org.cardanofoundation.ledgersync.jooq.tables.PoolOfflineFetchError; import org.cardanofoundation.ledgersync.jooq.tables.PoolOwner; import org.cardanofoundation.ledgersync.jooq.tables.PoolRelay; -import org.cardanofoundation.ledgersync.jooq.tables.PoolReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.PoolRetire; import org.cardanofoundation.ledgersync.jooq.tables.PoolUpdate; import org.cardanofoundation.ledgersync.jooq.tables.Redeemer; import org.cardanofoundation.ledgersync.jooq.tables.RedeemerData; import org.cardanofoundation.ledgersync.jooq.tables.ReferenceTxIn; -import org.cardanofoundation.ledgersync.jooq.tables.ReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.Reserve; import org.cardanofoundation.ledgersync.jooq.tables.ReservedPoolTicker; import org.cardanofoundation.ledgersync.jooq.tables.Reward; @@ -43,16 +38,17 @@ import org.cardanofoundation.ledgersync.jooq.tables.SlotLeader; import org.cardanofoundation.ledgersync.jooq.tables.StakeAddress; import org.cardanofoundation.ledgersync.jooq.tables.StakeDeregistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeKeyReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.StakeRegistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeTxBalance; import org.cardanofoundation.ledgersync.jooq.tables.Treasury; import org.cardanofoundation.ledgersync.jooq.tables.Tx; +import org.cardanofoundation.ledgersync.jooq.tables.TxBootstrapWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.TxChart; import org.cardanofoundation.ledgersync.jooq.tables.TxIn; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadata; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadataHash; import org.cardanofoundation.ledgersync.jooq.tables.TxOut; +import org.cardanofoundation.ledgersync.jooq.tables.TxWitnesses; +import org.cardanofoundation.ledgersync.jooq.tables.UnconsumeTxIn; import org.cardanofoundation.ledgersync.jooq.tables.Withdrawal; import org.jooq.Index; import org.jooq.OrderField; @@ -73,27 +69,12 @@ public class Indexes { public static final Index ADDRESS_ADDRESS_HAS_SCRIPT_IDX = Internal.createIndex(DSL.name("address_address_has_script_idx"), Address.ADDRESS, new OrderField[] { Address.ADDRESS.ADDRESS_HAS_SCRIPT }, false); public static final Index ADDRESS_BALANCE_IDX = Internal.createIndex(DSL.name("address_balance_idx"), Address.ADDRESS, new OrderField[] { Address.ADDRESS.BALANCE }, false); public static final Index ADDRESS_TOKEN_BALANCE_IDENT_STAKE_ADDRESS_ID_BALANCE_IDX = Internal.createIndex(DSL.name("address_token_balance_ident_stake_address_id_balance_idx"), AddressTokenBalance.ADDRESS_TOKEN_BALANCE, new OrderField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.IDENT, AddressTokenBalance.ADDRESS_TOKEN_BALANCE.STAKE_ADDRESS_ID, AddressTokenBalance.ADDRESS_TOKEN_BALANCE.BALANCE }, false); - public static final Index ADDRESS_TOKEN_BALANCE_STAKE_ADDRESS_ID_IDX = Internal.createIndex(DSL.name("address_token_balance_stake_address_id_idx"), AddressTokenBalance.ADDRESS_TOKEN_BALANCE, new OrderField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.STAKE_ADDRESS_ID }, false); public static final Index ADDRESS_TOKEN_IDENT_STAKE_TX_ID_BALANCE_IDX = Internal.createIndex(DSL.name("address_token_ident_stake_tx_id_balance_idx"), AddressToken.ADDRESS_TOKEN, new OrderField[] { AddressToken.ADDRESS_TOKEN.IDENT, AddressToken.ADDRESS_TOKEN.TX_ID, AddressToken.ADDRESS_TOKEN.BALANCE }, false); - public static final Index ADDRESS_TOKEN_IDENT_TX_ID_BALANCE_IDX = Internal.createIndex(DSL.name("address_token_ident_tx_id_balance_idx"), AddressToken.ADDRESS_TOKEN, new OrderField[] { AddressToken.ADDRESS_TOKEN.IDENT, AddressToken.ADDRESS_TOKEN.TX_ID, AddressToken.ADDRESS_TOKEN.BALANCE }, false); public static final Index ADDRESS_TX_BALANCE_ADDRESS_ID_TIME_BALANCE_INDEX = Internal.createIndex(DSL.name("address_tx_balance_address_id_time_balance_index"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.ADDRESS_ID, AddressTxBalance.ADDRESS_TX_BALANCE.TIME, AddressTxBalance.ADDRESS_TX_BALANCE.BALANCE }, false); - public static final Index ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_IDX = Internal.createIndex(DSL.name("address_tx_balance_stake_address_id_idx"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID }, false); public static final Index ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_TX_ID_BALANCE_IDX = Internal.createIndex(DSL.name("address_tx_balance_stake_address_id_tx_id_balance_idx"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID, AddressTxBalance.ADDRESS_TX_BALANCE.TX_ID, AddressTxBalance.ADDRESS_TX_BALANCE.BALANCE }, false); public static final Index ADDRESS_TX_BALANCE_TX_ID_IDX = Internal.createIndex(DSL.name("address_tx_balance_tx_id_idx"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.TX_ID, AddressTxBalance.ADDRESS_TX_BALANCE.ADDRESS_ID }, true); public static final Index ADDRESS_TX_COUNT_IDX = Internal.createIndex(DSL.name("address_tx_count_idx"), Address.ADDRESS, new OrderField[] { Address.ADDRESS.TX_COUNT }, false); - public static final Index AGG_ADDRESS_TOKEN_DAY_IDX = Internal.createIndex(DSL.name("agg_address_token_day_idx"), AggAddressToken.AGG_ADDRESS_TOKEN, new OrderField[] { AggAddressToken.AGG_ADDRESS_TOKEN.DAY.desc() }, false); - public static final Index AGG_ADDRESS_TOKEN_IDENT_DAY_BALANCE_IDX = Internal.createIndex(DSL.name("agg_address_token_ident_day_balance_idx"), AggAddressToken.AGG_ADDRESS_TOKEN, new OrderField[] { AggAddressToken.AGG_ADDRESS_TOKEN.IDENT, AggAddressToken.AGG_ADDRESS_TOKEN.DAY, AggAddressToken.AGG_ADDRESS_TOKEN.BALANCE }, false); - public static final Index AGG_ADDRESS_TX_BALANCE_ADDRESS_ID_DAY_BALANCE_IDX = Internal.createIndex(DSL.name("agg_address_tx_balance_address_id_day_balance_idx"), AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, new OrderField[] { AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ADDRESS_ID, AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY, AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.BALANCE }, false); - public static final Index AGG_ADDRESS_TX_BALANCE_DAY_IDX = Internal.createIndex(DSL.name("agg_address_tx_balance_day_idx"), AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, new OrderField[] { AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY.desc() }, false); - public static final Index AGG_ADDRESS_TX_BALANCE_DAY_INDEX = Internal.createIndex(DSL.name("agg_address_tx_balance_day_index"), AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, new OrderField[] { AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY.desc() }, false); - public static final Index AGG_ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_DAY_BALANCE_IDX = Internal.createIndex(DSL.name("agg_address_tx_balance_stake_address_id_day_balance_idx"), AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, new OrderField[] { AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID, AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY, AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.BALANCE }, false); - public static final Index AGG_POOL_INFO_BLOCK_IN_EPOCH_IDX = Internal.createIndex(DSL.name("agg_pool_info_block_in_epoch_idx"), AggPoolInfo.AGG_POOL_INFO, new OrderField[] { AggPoolInfo.AGG_POOL_INFO.BLOCK_IN_EPOCH }, false); - public static final Index AGG_POOL_INFO_BLOCK_LIFE_TIME_IDX = Internal.createIndex(DSL.name("agg_pool_info_block_life_time_idx"), AggPoolInfo.AGG_POOL_INFO, new OrderField[] { AggPoolInfo.AGG_POOL_INFO.BLOCK_LIFE_TIME }, false); - public static final Index AGG_POOL_INFO_DELEGATOR_CNT_IDX = Internal.createIndex(DSL.name("agg_pool_info_delegator_cnt_idx"), AggPoolInfo.AGG_POOL_INFO, new OrderField[] { AggPoolInfo.AGG_POOL_INFO.DELEGATOR_CNT }, false); - public static final Index ASSET_METADATA_SUBJECT_IDX = Internal.createIndex(DSL.name("asset_metadata_subject_idx"), AssetMetadata.ASSET_METADATA, new OrderField[] { AssetMetadata.ASSET_METADATA.SUBJECT }, false); - public static final Index ASSET_METADATA_UX = Internal.createIndex(DSL.name("asset_metadata_ux"), AssetMetadata.ASSET_METADATA, new OrderField[] { AssetMetadata.ASSET_METADATA.IDENT }, true); public static final Index DATUM_HASH_UINDEX = Internal.createIndex(DSL.name("datum_hash_uindex"), Datum.DATUM, new OrderField[] { Datum.DATUM.HASH }, true); - public static final Index EXAGG_POOL_INFO_POOL_ID_IDX = Internal.createIndex(DSL.name("exagg_pool_info_pool_id_idx"), AggPoolInfo.AGG_POOL_INFO, new OrderField[] { AggPoolInfo.AGG_POOL_INFO.POOL_ID }, false); public static final Index EXTRA_KEY_WITNESS_HASH_INDEX = Internal.createIndex(DSL.name("extra_key_witness_hash_index"), ExtraKeyWitness.EXTRA_KEY_WITNESS, new OrderField[] { ExtraKeyWitness.EXTRA_KEY_WITNESS.HASH }, false); public static final Index IDX_ADDRESS_ADDRESS = Internal.createIndex(DSL.name("idx_address_address"), Address.ADDRESS, new OrderField[] { Address.ADDRESS.ADDRESS_ }, false); public static final Index IDX_ADDRESS_STAKE_ADDRESS_ID = Internal.createIndex(DSL.name("idx_address_stake_address_id"), Address.ADDRESS, new OrderField[] { Address.ADDRESS.STAKE_ADDRESS_ID }, false); @@ -102,9 +83,11 @@ public class Indexes { public static final Index IDX_ADDRESS_TOKEN_BALANCE_ADDRESS_ID_IDENT = Internal.createIndex(DSL.name("idx_address_token_balance_address_id_ident"), AddressTokenBalance.ADDRESS_TOKEN_BALANCE, new OrderField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.ADDRESS_ID, AddressTokenBalance.ADDRESS_TOKEN_BALANCE.IDENT }, false); public static final Index IDX_ADDRESS_TOKEN_BALANCE_IDENT = Internal.createIndex(DSL.name("idx_address_token_balance_ident"), AddressTokenBalance.ADDRESS_TOKEN_BALANCE, new OrderField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.IDENT }, false); public static final Index IDX_ADDRESS_TOKEN_BALANCE_IDENT_ADDRESS_ID = Internal.createIndex(DSL.name("idx_address_token_balance_ident_address_id"), AddressTokenBalance.ADDRESS_TOKEN_BALANCE, new OrderField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.IDENT, AddressTokenBalance.ADDRESS_TOKEN_BALANCE.ADDRESS_ID }, false); + public static final Index IDX_ADDRESS_TOKEN_BALANCE_STAKE_ADDRESS_ID = Internal.createIndex(DSL.name("idx_address_token_balance_stake_address_id"), AddressTokenBalance.ADDRESS_TOKEN_BALANCE, new OrderField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.STAKE_ADDRESS_ID }, false); public static final Index IDX_ADDRESS_TOKEN_IDENT = Internal.createIndex(DSL.name("idx_address_token_ident"), AddressToken.ADDRESS_TOKEN, new OrderField[] { AddressToken.ADDRESS_TOKEN.IDENT }, false); public static final Index IDX_ADDRESS_TOKEN_TX_ID = Internal.createIndex(DSL.name("idx_address_token_tx_id"), AddressToken.ADDRESS_TOKEN, new OrderField[] { AddressToken.ADDRESS_TOKEN.TX_ID }, false); public static final Index IDX_ADDRESS_TX_BALANCE_ADDRESS_ID = Internal.createIndex(DSL.name("idx_address_tx_balance_address_id"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.ADDRESS_ID }, false); + public static final Index IDX_ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID = Internal.createIndex(DSL.name("idx_address_tx_balance_stake_address_id"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID }, false); public static final Index IDX_ADDRESS_TX_BALANCE_TIME = Internal.createIndex(DSL.name("idx_address_tx_balance_time"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.TIME }, false); public static final Index IDX_ADDRESS_TX_BALANCE_TX_ID = Internal.createIndex(DSL.name("idx_address_tx_balance_tx_id"), AddressTxBalance.ADDRESS_TX_BALANCE, new OrderField[] { AddressTxBalance.ADDRESS_TX_BALANCE.TX_ID }, false); public static final Index IDX_BLOCK_BLOCK_NO = Internal.createIndex(DSL.name("idx_block_block_no"), Block.BLOCK, new OrderField[] { Block.BLOCK.BLOCK_NO }, false); @@ -114,6 +97,10 @@ public class Indexes { public static final Index IDX_BLOCK_SLOT_LEADER_ID = Internal.createIndex(DSL.name("idx_block_slot_leader_id"), Block.BLOCK, new OrderField[] { Block.BLOCK.SLOT_LEADER_ID }, false); public static final Index IDX_BLOCK_SLOT_NO = Internal.createIndex(DSL.name("idx_block_slot_no"), Block.BLOCK, new OrderField[] { Block.BLOCK.SLOT_NO }, false); public static final Index IDX_BLOCK_TIME = Internal.createIndex(DSL.name("idx_block_time"), Block.BLOCK, new OrderField[] { Block.BLOCK.TIME }, false); + public static final Index IDX_CURSOR_BLOCK_HASH = Internal.createIndex(DSL.name("idx_cursor_block_hash"), Cursor_.CURSOR_, new OrderField[] { Cursor_.CURSOR_.BLOCK_HASH }, false); + public static final Index IDX_CURSOR_BLOCK_NUMBER = Internal.createIndex(DSL.name("idx_cursor_block_number"), Cursor_.CURSOR_, new OrderField[] { Cursor_.CURSOR_.BLOCK_NUMBER }, false); + public static final Index IDX_CURSOR_ID = Internal.createIndex(DSL.name("idx_cursor_id"), Cursor_.CURSOR_, new OrderField[] { Cursor_.CURSOR_.ID }, false); + public static final Index IDX_CURSOR_SLOT = Internal.createIndex(DSL.name("idx_cursor_slot"), Cursor_.CURSOR_, new OrderField[] { Cursor_.CURSOR_.SLOT }, false); public static final Index IDX_DATUM_TX_ID = Internal.createIndex(DSL.name("idx_datum_tx_id"), Datum.DATUM, new OrderField[] { Datum.DATUM.TX_ID }, false); public static final Index IDX_DELEGATION_ACTIVE_EPOCH_NO = Internal.createIndex(DSL.name("idx_delegation_active_epoch_no"), Delegation.DELEGATION, new OrderField[] { Delegation.DELEGATION.ACTIVE_EPOCH_NO }, false); public static final Index IDX_DELEGATION_ADDR_ID = Internal.createIndex(DSL.name("idx_delegation_addr_id"), Delegation.DELEGATION, new OrderField[] { Delegation.DELEGATION.ADDR_ID }, false); @@ -174,6 +161,7 @@ public class Indexes { public static final Index IDX_TX_OUT_PAYMENT_CRED = Internal.createIndex(DSL.name("idx_tx_out_payment_cred"), TxOut.TX_OUT, new OrderField[] { TxOut.TX_OUT.PAYMENT_CRED }, false); public static final Index IDX_TX_OUT_STAKE_ADDRESS_ID = Internal.createIndex(DSL.name("idx_tx_out_stake_address_id"), TxOut.TX_OUT, new OrderField[] { TxOut.TX_OUT.STAKE_ADDRESS_ID }, false); public static final Index IDX_TX_OUT_TX_ID = Internal.createIndex(DSL.name("idx_tx_out_tx_id"), TxOut.TX_OUT, new OrderField[] { TxOut.TX_OUT.TX_ID }, false); + public static final Index IDX_UNCONSUME_TX_IN_REDEEMER_ID = Internal.createIndex(DSL.name("idx_unconsume_tx_in_redeemer_id"), UnconsumeTxIn.UNCONSUME_TX_IN, new OrderField[] { UnconsumeTxIn.UNCONSUME_TX_IN.REDEEMER_ID }, false); public static final Index IDX_WITHDRAWAL_ADDR_ID = Internal.createIndex(DSL.name("idx_withdrawal_addr_id"), Withdrawal.WITHDRAWAL, new OrderField[] { Withdrawal.WITHDRAWAL.ADDR_ID }, false); public static final Index IDX_WITHDRAWAL_REDEEMER_ID = Internal.createIndex(DSL.name("idx_withdrawal_redeemer_id"), Withdrawal.WITHDRAWAL, new OrderField[] { Withdrawal.WITHDRAWAL.REDEEMER_ID }, false); public static final Index IDX_WITHDRAWAL_TX_ID = Internal.createIndex(DSL.name("idx_withdrawal_tx_id"), Withdrawal.WITHDRAWAL, new OrderField[] { Withdrawal.WITHDRAWAL.TX_ID }, false); @@ -184,18 +172,12 @@ public class Indexes { public static final Index MULTI_ASSET_TIME_IDX = Internal.createIndex(DSL.name("multi_asset_time_idx"), MultiAsset.MULTI_ASSET, new OrderField[] { MultiAsset.MULTI_ASSET.TIME }, false); public static final Index POOL_HASH_HASH_RAW_INDEX = Internal.createIndex(DSL.name("pool_hash_hash_raw_index"), PoolHash.POOL_HASH, new OrderField[] { PoolHash.POOL_HASH.HASH_RAW }, true); public static final Index POOL_OFFLINE_DATA_POOL_ID_INDEX = Internal.createIndex(DSL.name("pool_offline_data_pool_id_index"), PoolOfflineData.POOL_OFFLINE_DATA, new OrderField[] { PoolOfflineData.POOL_OFFLINE_DATA.POOL_ID }, false); - public static final Index POOL_OFFLINE_FETCH_ERROR_POOL_ID_IDX = Internal.createIndex(DSL.name("pool_offline_fetch_error_pool_id_idx"), PoolOfflineFetchError.POOL_OFFLINE_FETCH_ERROR, new OrderField[] { PoolOfflineFetchError.POOL_OFFLINE_FETCH_ERROR.POOL_ID }, false); - public static final Index POOL_OFFLINE_FETCH_ERROR_POOL_ID_PMR_ID_IDX = Internal.createIndex(DSL.name("pool_offline_fetch_error_pool_id_pmr_id_idx"), PoolOfflineFetchError.POOL_OFFLINE_FETCH_ERROR, new OrderField[] { PoolOfflineFetchError.POOL_OFFLINE_FETCH_ERROR.POOL_ID, PoolOfflineFetchError.POOL_OFFLINE_FETCH_ERROR.PMR_ID }, false); public static final Index POOL_OWNER_POOL_UPDATE_ID_IDX = Internal.createIndex(DSL.name("pool_owner_pool_update_id_idx"), PoolOwner.POOL_OWNER, new OrderField[] { PoolOwner.POOL_OWNER.POOL_UPDATE_ID }, false); - public static final Index POOL_REPORT_HISTORY_POOL_ID_IDX = Internal.createIndex(DSL.name("pool_report_history_pool_id_idx"), PoolReportHistory.POOL_REPORT_HISTORY, new OrderField[] { PoolReportHistory.POOL_REPORT_HISTORY.POOL_ID }, false); - public static final Index POOL_REPORT_HISTORY_POOL_ID_REPORT_ID_IDX = Internal.createIndex(DSL.name("pool_report_history_pool_id_report_id_idx"), PoolReportHistory.POOL_REPORT_HISTORY, new OrderField[] { PoolReportHistory.POOL_REPORT_HISTORY.POOL_ID, PoolReportHistory.POOL_REPORT_HISTORY.REPORT_ID }, false); - public static final Index POOL_REPORT_HISTORY_REPORT_ID_IDX = Internal.createIndex(DSL.name("pool_report_history_report_id_idx"), PoolReportHistory.POOL_REPORT_HISTORY, new OrderField[] { PoolReportHistory.POOL_REPORT_HISTORY.REPORT_ID }, false); public static final Index REDEEMER_DATA_HASH_INDEX = Internal.createIndex(DSL.name("redeemer_data_hash_index"), RedeemerData.REDEEMER_DATA, new OrderField[] { RedeemerData.REDEEMER_DATA.HASH }, false); public static final Index REDEEMER_DATA_TX_ID_IDX = Internal.createIndex(DSL.name("redeemer_data_tx_id_idx"), RedeemerData.REDEEMER_DATA, new OrderField[] { RedeemerData.REDEEMER_DATA.TX_ID }, false); public static final Index REDEEMER_REDEEMER_DATA_ID_IDX = Internal.createIndex(DSL.name("redeemer_redeemer_data_id_idx"), Redeemer.REDEEMER, new OrderField[] { Redeemer.REDEEMER.REDEEMER_DATA_ID }, false); + public static final Index REDEEMER_SCRIPT_HASH_IDX = Internal.createIndex(DSL.name("redeemer_script_hash_idx"), Redeemer.REDEEMER, new OrderField[] { Redeemer.REDEEMER.SCRIPT_HASH }, false); public static final Index REFERENCE_TX_IN_TX_OUT_ID_IDX = Internal.createIndex(DSL.name("reference_tx_in_tx_out_id_idx"), ReferenceTxIn.REFERENCE_TX_IN, new OrderField[] { ReferenceTxIn.REFERENCE_TX_IN.TX_OUT_ID }, false); - public static final Index REPORT_HISTORY_STATUS_IDX = Internal.createIndex(DSL.name("report_history_status_idx"), ReportHistory.REPORT_HISTORY, new OrderField[] { ReportHistory.REPORT_HISTORY.STATUS }, false); - public static final Index REPORT_HISTORY_USERNAME_IDX = Internal.createIndex(DSL.name("report_history_username_idx"), ReportHistory.REPORT_HISTORY, new OrderField[] { ReportHistory.REPORT_HISTORY.USERNAME }, false); public static final Index REWARD_ADDR_ID_IDX = Internal.createIndex(DSL.name("reward_addr_id_idx"), Reward.REWARD, new OrderField[] { Reward.REWARD.ADDR_ID }, false); public static final Index REWARD_EARNED_EPOCH_IDX = Internal.createIndex(DSL.name("reward_earned_epoch_idx"), Reward.REWARD, new OrderField[] { Reward.REWARD.EARNED_EPOCH }, false); public static final Index REWARD_POOL_ID_IDX = Internal.createIndex(DSL.name("reward_pool_id_idx"), Reward.REWARD, new OrderField[] { Reward.REWARD.POOL_ID }, false); @@ -204,18 +186,14 @@ public class Indexes { public static final Index SCRIPT_HASH_UINDEX = Internal.createIndex(DSL.name("script_hash_uindex"), Script.SCRIPT, new OrderField[] { Script.SCRIPT.HASH }, true); public static final Index SLOT_LEADER_HASH_INDEX = Internal.createIndex(DSL.name("slot_leader_hash_index"), SlotLeader.SLOT_LEADER, new OrderField[] { SlotLeader.SLOT_LEADER.HASH }, false); public static final Index STAKE_ADDRESS_BALANCE_IDX = Internal.createIndex(DSL.name("stake_address_balance_idx"), StakeAddress.STAKE_ADDRESS, new OrderField[] { StakeAddress.STAKE_ADDRESS.BALANCE }, false); - public static final Index STAKE_KEY_REPORT_HISTORY_REPORT_ID_IDX = Internal.createIndex(DSL.name("stake_key_report_history_report_id_idx"), StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, new OrderField[] { StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.REPORT_ID }, false); - public static final Index STAKE_KEY_REPORT_HISTORY_STAKE_KEY_IDX = Internal.createIndex(DSL.name("stake_key_report_history_stake_key_idx"), StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, new OrderField[] { StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.STAKE_KEY }, false); - public static final Index STAKE_KEY_REPORT_HISTORY_STAKE_KEY_REPORT_ID_IDX = Internal.createIndex(DSL.name("stake_key_report_history_stake_key_report_id_idx"), StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, new OrderField[] { StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.STAKE_KEY, StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.REPORT_ID }, false); - public static final Index STAKE_TX_BALANCE_STAKE_ADDRESS_ID_IDX = Internal.createIndex(DSL.name("stake_tx_balance_stake_address_id_idx"), StakeTxBalance.STAKE_TX_BALANCE, new OrderField[] { StakeTxBalance.STAKE_TX_BALANCE.STAKE_ADDRESS_ID }, false); - public static final Index STAKE_TX_BALANCE_TIME_IDX = Internal.createIndex(DSL.name("stake_tx_balance_time_idx"), StakeTxBalance.STAKE_TX_BALANCE, new OrderField[] { StakeTxBalance.STAKE_TX_BALANCE.TIME }, false); - public static final Index STAKE_TX_BALANCE_TX_ID_IDX = Internal.createIndex(DSL.name("stake_tx_balance_tx_id_idx"), StakeTxBalance.STAKE_TX_BALANCE, new OrderField[] { StakeTxBalance.STAKE_TX_BALANCE.TX_ID }, false); public static final Index TX__TX_METADATA_HASH_IDX = Internal.createIndex(DSL.name("tx__tx_metadata_hash_idx"), Tx.TX, new OrderField[] { Tx.TX.TX_METADATA_HASH_ID }, false); public static final Index TX_BLOCK_ID_ID_IDX = Internal.createIndex(DSL.name("tx_block_id_id_idx"), Tx.TX, new OrderField[] { Tx.TX.BLOCK_ID, Tx.TX.ID }, false); + public static final Index TX_BOOTSTRAP_WITNESSES_TX_ID_IDX = Internal.createIndex(DSL.name("tx_bootstrap_witnesses_tx_id_idx"), TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES, new OrderField[] { TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.TX_ID }, false); public static final Index TX_COUNT_IDX = Internal.createIndex(DSL.name("tx_count_idx"), Block.BLOCK, new OrderField[] { Block.BLOCK.TX_COUNT }, false); public static final Index TX_FEE_IDX = Internal.createIndex(DSL.name("tx_fee_idx"), Tx.TX, new OrderField[] { Tx.TX.FEE }, false); public static final Index TX_METADATA_HASH_IDX = Internal.createIndex(DSL.name("tx_metadata_hash_idx"), TxMetadataHash.TX_METADATA_HASH, new OrderField[] { TxMetadataHash.TX_METADATA_HASH.HASH }, false); public static final Index TX_OUT_INLINE_DATUM_ID_IDX = Internal.createIndex(DSL.name("tx_out_inline_datum_id_idx"), TxOut.TX_OUT, new OrderField[] { TxOut.TX_OUT.INLINE_DATUM_ID }, false); public static final Index TX_OUT_REFERENCE_SCRIPT_ID_IDX = Internal.createIndex(DSL.name("tx_out_reference_script_id_idx"), TxOut.TX_OUT, new OrderField[] { TxOut.TX_OUT.REFERENCE_SCRIPT_ID }, false); public static final Index TX_OUT_SUM_IDX = Internal.createIndex(DSL.name("tx_out_sum_idx"), Tx.TX, new OrderField[] { Tx.TX.OUT_SUM }, false); + public static final Index TX_WITNESSES_TX_ID_IDX = Internal.createIndex(DSL.name("tx_witnesses_tx_id_idx"), TxWitnesses.TX_WITNESSES, new OrderField[] { TxWitnesses.TX_WITNESSES.TX_ID }, false); } diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/Keys.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/Keys.java index 3f6bff9f..dffd2965 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/Keys.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/Keys.java @@ -9,12 +9,9 @@ import org.cardanofoundation.ledgersync.jooq.tables.AddressToken; import org.cardanofoundation.ledgersync.jooq.tables.AddressTokenBalance; import org.cardanofoundation.ledgersync.jooq.tables.AddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressToken; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggPoolInfo; -import org.cardanofoundation.ledgersync.jooq.tables.AssetMetadata; import org.cardanofoundation.ledgersync.jooq.tables.Block; import org.cardanofoundation.ledgersync.jooq.tables.CostModel; +import org.cardanofoundation.ledgersync.jooq.tables.Cursor_; import org.cardanofoundation.ledgersync.jooq.tables.Datum; import org.cardanofoundation.ledgersync.jooq.tables.Delegation; import org.cardanofoundation.ledgersync.jooq.tables.DelistedPool; @@ -22,6 +19,7 @@ import org.cardanofoundation.ledgersync.jooq.tables.EpochParam; import org.cardanofoundation.ledgersync.jooq.tables.EpochStake; import org.cardanofoundation.ledgersync.jooq.tables.EpochSyncTime; +import org.cardanofoundation.ledgersync.jooq.tables.Era; import org.cardanofoundation.ledgersync.jooq.tables.ExtraKeyWitness; import org.cardanofoundation.ledgersync.jooq.tables.FailedTxOut; import org.cardanofoundation.ledgersync.jooq.tables.MaTxMint; @@ -35,14 +33,12 @@ import org.cardanofoundation.ledgersync.jooq.tables.PoolOfflineFetchError; import org.cardanofoundation.ledgersync.jooq.tables.PoolOwner; import org.cardanofoundation.ledgersync.jooq.tables.PoolRelay; -import org.cardanofoundation.ledgersync.jooq.tables.PoolReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.PoolRetire; import org.cardanofoundation.ledgersync.jooq.tables.PoolUpdate; import org.cardanofoundation.ledgersync.jooq.tables.PotTransfer; import org.cardanofoundation.ledgersync.jooq.tables.Redeemer; import org.cardanofoundation.ledgersync.jooq.tables.RedeemerData; import org.cardanofoundation.ledgersync.jooq.tables.ReferenceTxIn; -import org.cardanofoundation.ledgersync.jooq.tables.ReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.Reserve; import org.cardanofoundation.ledgersync.jooq.tables.ReservedPoolTicker; import org.cardanofoundation.ledgersync.jooq.tables.Reward; @@ -52,18 +48,16 @@ import org.cardanofoundation.ledgersync.jooq.tables.SlotLeader; import org.cardanofoundation.ledgersync.jooq.tables.StakeAddress; import org.cardanofoundation.ledgersync.jooq.tables.StakeDeregistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeKeyReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.StakeRegistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfo; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfoCheckpoint; import org.cardanofoundation.ledgersync.jooq.tables.Treasury; import org.cardanofoundation.ledgersync.jooq.tables.Tx; +import org.cardanofoundation.ledgersync.jooq.tables.TxBootstrapWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.TxChart; import org.cardanofoundation.ledgersync.jooq.tables.TxIn; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadata; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadataHash; import org.cardanofoundation.ledgersync.jooq.tables.TxOut; +import org.cardanofoundation.ledgersync.jooq.tables.TxWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.UnconsumeTxIn; import org.cardanofoundation.ledgersync.jooq.tables.Withdrawal; import org.cardanofoundation.ledgersync.jooq.tables.records.AdaPotsRecord; @@ -71,12 +65,9 @@ import org.cardanofoundation.ledgersync.jooq.tables.records.AddressTokenBalanceRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.AddressTokenRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.AddressTxBalanceRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggAddressTokenRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggAddressTxBalanceRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggPoolInfoRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.AssetMetadataRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.BlockRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.CostModelRecord; +import org.cardanofoundation.ledgersync.jooq.tables.records.Cursor_Record; import org.cardanofoundation.ledgersync.jooq.tables.records.DatumRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.DelegationRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.DelistedPoolRecord; @@ -84,6 +75,7 @@ import org.cardanofoundation.ledgersync.jooq.tables.records.EpochRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.EpochStakeRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.EpochSyncTimeRecord; +import org.cardanofoundation.ledgersync.jooq.tables.records.EraRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.ExtraKeyWitnessRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.FailedTxOutRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.MaTxMintRecord; @@ -97,14 +89,12 @@ import org.cardanofoundation.ledgersync.jooq.tables.records.PoolOfflineFetchErrorRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.PoolOwnerRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.PoolRelayRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.PoolReportHistoryRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.PoolRetireRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.PoolUpdateRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.PotTransferRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.RedeemerDataRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.RedeemerRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.ReferenceTxInRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.ReportHistoryRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.ReserveRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.ReservedPoolTickerRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.RewardRecord; @@ -114,18 +104,16 @@ import org.cardanofoundation.ledgersync.jooq.tables.records.SlotLeaderRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.StakeAddressRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.StakeDeregistrationRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.StakeKeyReportHistoryRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.StakeRegistrationRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.StakeTxBalanceRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.TokenInfoCheckpointRecord; -import org.cardanofoundation.ledgersync.jooq.tables.records.TokenInfoRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TreasuryRecord; +import org.cardanofoundation.ledgersync.jooq.tables.records.TxBootstrapWitnessesRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TxChartRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TxInRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TxMetadataHashRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TxMetadataRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TxOutRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.TxRecord; +import org.cardanofoundation.ledgersync.jooq.tables.records.TxWitnessesRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.UnconsumeTxInRecord; import org.cardanofoundation.ledgersync.jooq.tables.records.WithdrawalRecord; import org.jooq.TableField; @@ -152,14 +140,11 @@ public class Keys { public static final UniqueKey ADDRESS_TOKEN_PKEY = Internal.createUniqueKey(AddressToken.ADDRESS_TOKEN, DSL.name("address_token_pkey"), new TableField[] { AddressToken.ADDRESS_TOKEN.ID }, true); public static final UniqueKey ADDRESS_TOKEN_BALANCE_PKEY = Internal.createUniqueKey(AddressTokenBalance.ADDRESS_TOKEN_BALANCE, DSL.name("address_token_balance_pkey"), new TableField[] { AddressTokenBalance.ADDRESS_TOKEN_BALANCE.ID }, true); public static final UniqueKey ADDRESS_TX_BALANCE_PKEY = Internal.createUniqueKey(AddressTxBalance.ADDRESS_TX_BALANCE, DSL.name("address_tx_balance_pkey"), new TableField[] { AddressTxBalance.ADDRESS_TX_BALANCE.ID }, true); - public static final UniqueKey AGG_ADDRESS_TOKEN_PKEY = Internal.createUniqueKey(AggAddressToken.AGG_ADDRESS_TOKEN, DSL.name("agg_address_token_pkey"), new TableField[] { AggAddressToken.AGG_ADDRESS_TOKEN.ID }, true); - public static final UniqueKey AGG_ADDRESS_TX_BALANCE_PKEY = Internal.createUniqueKey(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, DSL.name("agg_address_tx_balance_pkey"), new TableField[] { AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ID }, true); - public static final UniqueKey AGG_POOL_INFO_PKEY = Internal.createUniqueKey(AggPoolInfo.AGG_POOL_INFO, DSL.name("agg_pool_info_pkey"), new TableField[] { AggPoolInfo.AGG_POOL_INFO.ID }, true); - public static final UniqueKey ASSET_METADATA_PKEY = Internal.createUniqueKey(AssetMetadata.ASSET_METADATA, DSL.name("asset_metadata_pkey"), new TableField[] { AssetMetadata.ASSET_METADATA.ID }, true); public static final UniqueKey BLOCK_PKEY = Internal.createUniqueKey(Block.BLOCK, DSL.name("block_pkey"), new TableField[] { Block.BLOCK.ID }, true); public static final UniqueKey UNIQUE_BLOCK = Internal.createUniqueKey(Block.BLOCK, DSL.name("unique_block"), new TableField[] { Block.BLOCK.HASH }, true); public static final UniqueKey COST_MODEL_PKEY = Internal.createUniqueKey(CostModel.COST_MODEL, DSL.name("cost_model_pkey"), new TableField[] { CostModel.COST_MODEL.ID }, true); public static final UniqueKey UNIQUE_COST_MODEL = Internal.createUniqueKey(CostModel.COST_MODEL, DSL.name("unique_cost_model"), new TableField[] { CostModel.COST_MODEL.HASH }, true); + public static final UniqueKey CURSOR__PKEY = Internal.createUniqueKey(Cursor_.CURSOR_, DSL.name("cursor__pkey"), new TableField[] { Cursor_.CURSOR_.ID, Cursor_.CURSOR_.BLOCK_HASH }, true); public static final UniqueKey DATUM_PKEY = Internal.createUniqueKey(Datum.DATUM, DSL.name("datum_pkey"), new TableField[] { Datum.DATUM.ID }, true); public static final UniqueKey UNIQUE_DATUM = Internal.createUniqueKey(Datum.DATUM, DSL.name("unique_datum"), new TableField[] { Datum.DATUM.HASH }, true); public static final UniqueKey DELEGATION_PKEY = Internal.createUniqueKey(Delegation.DELEGATION, DSL.name("delegation_pkey"), new TableField[] { Delegation.DELEGATION.ID }, true); @@ -174,6 +159,7 @@ public class Keys { public static final UniqueKey UNIQUE_STAKE = Internal.createUniqueKey(EpochStake.EPOCH_STAKE, DSL.name("unique_stake"), new TableField[] { EpochStake.EPOCH_STAKE.EPOCH_NO, EpochStake.EPOCH_STAKE.ADDR_ID, EpochStake.EPOCH_STAKE.POOL_ID }, true); public static final UniqueKey EPOCH_SYNC_TIME_PKEY = Internal.createUniqueKey(EpochSyncTime.EPOCH_SYNC_TIME, DSL.name("epoch_sync_time_pkey"), new TableField[] { EpochSyncTime.EPOCH_SYNC_TIME.ID }, true); public static final UniqueKey UNIQUE_EPOCH_SYNC_TIME = Internal.createUniqueKey(EpochSyncTime.EPOCH_SYNC_TIME, DSL.name("unique_epoch_sync_time"), new TableField[] { EpochSyncTime.EPOCH_SYNC_TIME.NO }, true); + public static final UniqueKey ERA_PKEY = Internal.createUniqueKey(Era.ERA, DSL.name("era_pkey"), new TableField[] { Era.ERA.ERA_ }, true); public static final UniqueKey EXTRA_KEY_WITNESS_PKEY = Internal.createUniqueKey(ExtraKeyWitness.EXTRA_KEY_WITNESS, DSL.name("extra_key_witness_pkey"), new TableField[] { ExtraKeyWitness.EXTRA_KEY_WITNESS.ID }, true); public static final UniqueKey UNIQUE_WITNESS = Internal.createUniqueKey(ExtraKeyWitness.EXTRA_KEY_WITNESS, DSL.name("unique_witness"), new TableField[] { ExtraKeyWitness.EXTRA_KEY_WITNESS.HASH }, true); public static final UniqueKey FAILED_TX_OUT_PKEY = Internal.createUniqueKey(FailedTxOut.FAILED_TX_OUT, DSL.name("failed_tx_out_pkey"), new TableField[] { FailedTxOut.FAILED_TX_OUT.ID }, true); @@ -198,7 +184,6 @@ public class Keys { public static final UniqueKey UNIQUE_POOL_OWNER = Internal.createUniqueKey(PoolOwner.POOL_OWNER, DSL.name("unique_pool_owner"), new TableField[] { PoolOwner.POOL_OWNER.ADDR_ID, PoolOwner.POOL_OWNER.POOL_UPDATE_ID }, true); public static final UniqueKey POOL_RELAY_PKEY = Internal.createUniqueKey(PoolRelay.POOL_RELAY, DSL.name("pool_relay_pkey"), new TableField[] { PoolRelay.POOL_RELAY.ID }, true); public static final UniqueKey UNIQUE_POOL_RELAY = Internal.createUniqueKey(PoolRelay.POOL_RELAY, DSL.name("unique_pool_relay"), new TableField[] { PoolRelay.POOL_RELAY.UPDATE_ID, PoolRelay.POOL_RELAY.IPV4, PoolRelay.POOL_RELAY.IPV6, PoolRelay.POOL_RELAY.DNS_NAME }, true); - public static final UniqueKey POOL_REPORT_HISTORY_PKEY = Internal.createUniqueKey(PoolReportHistory.POOL_REPORT_HISTORY, DSL.name("pool_report_history_pkey"), new TableField[] { PoolReportHistory.POOL_REPORT_HISTORY.ID }, true); public static final UniqueKey POOL_RETIRE_PKEY = Internal.createUniqueKey(PoolRetire.POOL_RETIRE, DSL.name("pool_retire_pkey"), new TableField[] { PoolRetire.POOL_RETIRE.ID }, true); public static final UniqueKey UNIQUE_POOL_RETIRING = Internal.createUniqueKey(PoolRetire.POOL_RETIRE, DSL.name("unique_pool_retiring"), new TableField[] { PoolRetire.POOL_RETIRE.ANNOUNCED_TX_ID, PoolRetire.POOL_RETIRE.CERT_INDEX }, true); public static final UniqueKey POOL_UPDATE_PKEY = Internal.createUniqueKey(PoolUpdate.POOL_UPDATE, DSL.name("pool_update_pkey"), new TableField[] { PoolUpdate.POOL_UPDATE.ID }, true); @@ -211,8 +196,6 @@ public class Keys { public static final UniqueKey UNIQUE_REDEEMER_DATA = Internal.createUniqueKey(RedeemerData.REDEEMER_DATA, DSL.name("unique_redeemer_data"), new TableField[] { RedeemerData.REDEEMER_DATA.HASH }, true); public static final UniqueKey REFERENCE_TX_IN_PKEY = Internal.createUniqueKey(ReferenceTxIn.REFERENCE_TX_IN, DSL.name("reference_tx_in_pkey"), new TableField[] { ReferenceTxIn.REFERENCE_TX_IN.ID }, true); public static final UniqueKey UNIQUE_REF_TXIN = Internal.createUniqueKey(ReferenceTxIn.REFERENCE_TX_IN, DSL.name("unique_ref_txin"), new TableField[] { ReferenceTxIn.REFERENCE_TX_IN.TX_IN_ID, ReferenceTxIn.REFERENCE_TX_IN.TX_OUT_ID, ReferenceTxIn.REFERENCE_TX_IN.TX_OUT_INDEX }, true); - public static final UniqueKey REPORT_HISTORY_PKEY = Internal.createUniqueKey(ReportHistory.REPORT_HISTORY, DSL.name("report_history_pkey"), new TableField[] { ReportHistory.REPORT_HISTORY.ID }, true); - public static final UniqueKey STORAGE_KEY_UNIQUE = Internal.createUniqueKey(ReportHistory.REPORT_HISTORY, DSL.name("storage_key_unique"), new TableField[] { ReportHistory.REPORT_HISTORY.STORAGE_KEY }, true); public static final UniqueKey RESERVE_PKEY = Internal.createUniqueKey(Reserve.RESERVE, DSL.name("reserve_pkey"), new TableField[] { Reserve.RESERVE.ID }, true); public static final UniqueKey UNIQUE_RESERVES = Internal.createUniqueKey(Reserve.RESERVE, DSL.name("unique_reserves"), new TableField[] { Reserve.RESERVE.ADDR_ID, Reserve.RESERVE.TX_ID, Reserve.RESERVE.CERT_INDEX }, true); public static final UniqueKey RESERVED_POOL_TICKER_PKEY = Internal.createUniqueKey(ReservedPoolTicker.RESERVED_POOL_TICKER, DSL.name("reserved_pool_ticker_pkey"), new TableField[] { ReservedPoolTicker.RESERVED_POOL_TICKER.ID }, true); @@ -228,17 +211,13 @@ public class Keys { public static final UniqueKey UNIQUE_STAKE_ADDRESS = Internal.createUniqueKey(StakeAddress.STAKE_ADDRESS, DSL.name("unique_stake_address"), new TableField[] { StakeAddress.STAKE_ADDRESS.HASH_RAW }, true); public static final UniqueKey STAKE_DEREGISTRATION_PKEY = Internal.createUniqueKey(StakeDeregistration.STAKE_DEREGISTRATION, DSL.name("stake_deregistration_pkey"), new TableField[] { StakeDeregistration.STAKE_DEREGISTRATION.ID }, true); public static final UniqueKey UNIQUE_STAKE_DEREGISTRATION = Internal.createUniqueKey(StakeDeregistration.STAKE_DEREGISTRATION, DSL.name("unique_stake_deregistration"), new TableField[] { StakeDeregistration.STAKE_DEREGISTRATION.TX_ID, StakeDeregistration.STAKE_DEREGISTRATION.CERT_INDEX }, true); - public static final UniqueKey STAKE_KEY_REPORT_HISTORY_PKEY = Internal.createUniqueKey(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, DSL.name("stake_key_report_history_pkey"), new TableField[] { StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.ID }, true); public static final UniqueKey STAKE_REGISTRATION_PKEY = Internal.createUniqueKey(StakeRegistration.STAKE_REGISTRATION, DSL.name("stake_registration_pkey"), new TableField[] { StakeRegistration.STAKE_REGISTRATION.ID }, true); public static final UniqueKey UNIQUE_STAKE_REGISTRATION = Internal.createUniqueKey(StakeRegistration.STAKE_REGISTRATION, DSL.name("unique_stake_registration"), new TableField[] { StakeRegistration.STAKE_REGISTRATION.TX_ID, StakeRegistration.STAKE_REGISTRATION.CERT_INDEX }, true); - public static final UniqueKey STAKE_TX_BALANCE_PKEY = Internal.createUniqueKey(StakeTxBalance.STAKE_TX_BALANCE, DSL.name("stake_tx_balance_pkey"), new TableField[] { StakeTxBalance.STAKE_TX_BALANCE.ID }, true); - public static final UniqueKey TOKEN_INFO_PKEY = Internal.createUniqueKey(TokenInfo.TOKEN_INFO, DSL.name("token_info_pkey"), new TableField[] { TokenInfo.TOKEN_INFO.ID }, true); - public static final UniqueKey UNIQUE_TOKEN_INFO = Internal.createUniqueKey(TokenInfo.TOKEN_INFO, DSL.name("unique_token_info"), new TableField[] { TokenInfo.TOKEN_INFO.IDENT }, true); - public static final UniqueKey BLOCK_TOKEN_INFO_PKEY = Internal.createUniqueKey(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT, DSL.name("block_token_info_pkey"), new TableField[] { TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.ID }, true); public static final UniqueKey TREASURY_PKEY = Internal.createUniqueKey(Treasury.TREASURY, DSL.name("treasury_pkey"), new TableField[] { Treasury.TREASURY.ID }, true); public static final UniqueKey UNIQUE_TREASURY = Internal.createUniqueKey(Treasury.TREASURY, DSL.name("unique_treasury"), new TableField[] { Treasury.TREASURY.ADDR_ID, Treasury.TREASURY.TX_ID, Treasury.TREASURY.CERT_INDEX }, true); public static final UniqueKey TX_PKEY = Internal.createUniqueKey(Tx.TX, DSL.name("tx_pkey"), new TableField[] { Tx.TX.ID }, true); public static final UniqueKey UNIQUE_TX = Internal.createUniqueKey(Tx.TX, DSL.name("unique_tx"), new TableField[] { Tx.TX.HASH }, true); + public static final UniqueKey TX_BOOTSTRAP_WITNESSES_PKEY = Internal.createUniqueKey(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES, DSL.name("tx_bootstrap_witnesses_pkey"), new TableField[] { TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ID }, true); public static final UniqueKey TX_CHART_PKEY = Internal.createUniqueKey(TxChart.TX_CHART, DSL.name("tx_chart_pkey"), new TableField[] { TxChart.TX_CHART.ID }, true); public static final UniqueKey TX_IN_PKEY = Internal.createUniqueKey(TxIn.TX_IN, DSL.name("tx_in_pkey"), new TableField[] { TxIn.TX_IN.ID }, true); public static final UniqueKey UNIQUE_TXIN = Internal.createUniqueKey(TxIn.TX_IN, DSL.name("unique_txin"), new TableField[] { TxIn.TX_IN.TX_OUT_ID, TxIn.TX_IN.TX_OUT_INDEX }, true); @@ -247,6 +226,7 @@ public class Keys { public static final UniqueKey TX_METADATA_HASH_PKEY = Internal.createUniqueKey(TxMetadataHash.TX_METADATA_HASH, DSL.name("tx_metadata_hash_pkey"), new TableField[] { TxMetadataHash.TX_METADATA_HASH.ID }, true); public static final UniqueKey TX_OUT_PKEY = Internal.createUniqueKey(TxOut.TX_OUT, DSL.name("tx_out_pkey"), new TableField[] { TxOut.TX_OUT.ID }, true); public static final UniqueKey UNIQUE_TXOUT = Internal.createUniqueKey(TxOut.TX_OUT, DSL.name("unique_txout"), new TableField[] { TxOut.TX_OUT.TX_ID, TxOut.TX_OUT.INDEX }, true); + public static final UniqueKey TX_WITNESSES_PKEY = Internal.createUniqueKey(TxWitnesses.TX_WITNESSES, DSL.name("tx_witnesses_pkey"), new TableField[] { TxWitnesses.TX_WITNESSES.ID }, true); public static final UniqueKey UNCONSUME_TX_IN_PKEY = Internal.createUniqueKey(UnconsumeTxIn.UNCONSUME_TX_IN, DSL.name("unconsume_tx_in_pkey"), new TableField[] { UnconsumeTxIn.UNCONSUME_TX_IN.ID }, true); public static final UniqueKey UNIQUE_COL_TXIN = Internal.createUniqueKey(UnconsumeTxIn.UNCONSUME_TX_IN, DSL.name("unique_col_txin"), new TableField[] { UnconsumeTxIn.UNCONSUME_TX_IN.TX_IN_ID, UnconsumeTxIn.UNCONSUME_TX_IN.TX_OUT_ID, UnconsumeTxIn.UNCONSUME_TX_IN.TX_OUT_INDEX }, true); public static final UniqueKey WITHDRAWAL_PKEY = Internal.createUniqueKey(Withdrawal.WITHDRAWAL, DSL.name("withdrawal_pkey"), new TableField[] { Withdrawal.WITHDRAWAL.ID }, true); diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/Tables.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/Tables.java index 13431d4d..0a03461d 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/Tables.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/Tables.java @@ -9,12 +9,9 @@ import org.cardanofoundation.ledgersync.jooq.tables.AddressToken; import org.cardanofoundation.ledgersync.jooq.tables.AddressTokenBalance; import org.cardanofoundation.ledgersync.jooq.tables.AddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressToken; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.AggPoolInfo; -import org.cardanofoundation.ledgersync.jooq.tables.AssetMetadata; import org.cardanofoundation.ledgersync.jooq.tables.Block; import org.cardanofoundation.ledgersync.jooq.tables.CostModel; +import org.cardanofoundation.ledgersync.jooq.tables.Cursor_; import org.cardanofoundation.ledgersync.jooq.tables.Datum; import org.cardanofoundation.ledgersync.jooq.tables.Delegation; import org.cardanofoundation.ledgersync.jooq.tables.DelistedPool; @@ -22,6 +19,7 @@ import org.cardanofoundation.ledgersync.jooq.tables.EpochParam; import org.cardanofoundation.ledgersync.jooq.tables.EpochStake; import org.cardanofoundation.ledgersync.jooq.tables.EpochSyncTime; +import org.cardanofoundation.ledgersync.jooq.tables.Era; import org.cardanofoundation.ledgersync.jooq.tables.ExtraKeyWitness; import org.cardanofoundation.ledgersync.jooq.tables.FailedTxOut; import org.cardanofoundation.ledgersync.jooq.tables.MaTxMint; @@ -35,14 +33,12 @@ import org.cardanofoundation.ledgersync.jooq.tables.PoolOfflineFetchError; import org.cardanofoundation.ledgersync.jooq.tables.PoolOwner; import org.cardanofoundation.ledgersync.jooq.tables.PoolRelay; -import org.cardanofoundation.ledgersync.jooq.tables.PoolReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.PoolRetire; import org.cardanofoundation.ledgersync.jooq.tables.PoolUpdate; import org.cardanofoundation.ledgersync.jooq.tables.PotTransfer; import org.cardanofoundation.ledgersync.jooq.tables.Redeemer; import org.cardanofoundation.ledgersync.jooq.tables.RedeemerData; import org.cardanofoundation.ledgersync.jooq.tables.ReferenceTxIn; -import org.cardanofoundation.ledgersync.jooq.tables.ReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.Reserve; import org.cardanofoundation.ledgersync.jooq.tables.ReservedPoolTicker; import org.cardanofoundation.ledgersync.jooq.tables.Reward; @@ -52,18 +48,16 @@ import org.cardanofoundation.ledgersync.jooq.tables.SlotLeader; import org.cardanofoundation.ledgersync.jooq.tables.StakeAddress; import org.cardanofoundation.ledgersync.jooq.tables.StakeDeregistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeKeyReportHistory; import org.cardanofoundation.ledgersync.jooq.tables.StakeRegistration; -import org.cardanofoundation.ledgersync.jooq.tables.StakeTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfo; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfoCheckpoint; import org.cardanofoundation.ledgersync.jooq.tables.Treasury; import org.cardanofoundation.ledgersync.jooq.tables.Tx; +import org.cardanofoundation.ledgersync.jooq.tables.TxBootstrapWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.TxChart; import org.cardanofoundation.ledgersync.jooq.tables.TxIn; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadata; import org.cardanofoundation.ledgersync.jooq.tables.TxMetadataHash; import org.cardanofoundation.ledgersync.jooq.tables.TxOut; +import org.cardanofoundation.ledgersync.jooq.tables.TxWitnesses; import org.cardanofoundation.ledgersync.jooq.tables.UnconsumeTxIn; import org.cardanofoundation.ledgersync.jooq.tables.Withdrawal; @@ -99,26 +93,6 @@ public class Tables { */ public static final AddressTxBalance ADDRESS_TX_BALANCE = AddressTxBalance.ADDRESS_TX_BALANCE; - /** - * The table agg_address_token. - */ - public static final AggAddressToken AGG_ADDRESS_TOKEN = AggAddressToken.AGG_ADDRESS_TOKEN; - - /** - * The table agg_address_tx_balance. - */ - public static final AggAddressTxBalance AGG_ADDRESS_TX_BALANCE = AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE; - - /** - * The table agg_pool_info. - */ - public static final AggPoolInfo AGG_POOL_INFO = AggPoolInfo.AGG_POOL_INFO; - - /** - * The table asset_metadata. - */ - public static final AssetMetadata ASSET_METADATA = AssetMetadata.ASSET_METADATA; - /** * The table block. */ @@ -129,6 +103,11 @@ public class Tables { */ public static final CostModel COST_MODEL = CostModel.COST_MODEL; + /** + * The table cursor_. + */ + public static final Cursor_ CURSOR_ = Cursor_.CURSOR_; + /** * The table datum. */ @@ -164,6 +143,11 @@ public class Tables { */ public static final EpochSyncTime EPOCH_SYNC_TIME = EpochSyncTime.EPOCH_SYNC_TIME; + /** + * The table era. + */ + public static final Era ERA = Era.ERA; + /** * The table extra_key_witness. */ @@ -229,11 +213,6 @@ public class Tables { */ public static final PoolRelay POOL_RELAY = PoolRelay.POOL_RELAY; - /** - * The table pool_report_history. - */ - public static final PoolReportHistory POOL_REPORT_HISTORY = PoolReportHistory.POOL_REPORT_HISTORY; - /** * The table pool_retire. */ @@ -264,11 +243,6 @@ public class Tables { */ public static final ReferenceTxIn REFERENCE_TX_IN = ReferenceTxIn.REFERENCE_TX_IN; - /** - * The table report_history. - */ - public static final ReportHistory REPORT_HISTORY = ReportHistory.REPORT_HISTORY; - /** * The table reserve. */ @@ -314,31 +288,11 @@ public class Tables { */ public static final StakeDeregistration STAKE_DEREGISTRATION = StakeDeregistration.STAKE_DEREGISTRATION; - /** - * The table stake_key_report_history. - */ - public static final StakeKeyReportHistory STAKE_KEY_REPORT_HISTORY = StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY; - /** * The table stake_registration. */ public static final StakeRegistration STAKE_REGISTRATION = StakeRegistration.STAKE_REGISTRATION; - /** - * The table stake_tx_balance. - */ - public static final StakeTxBalance STAKE_TX_BALANCE = StakeTxBalance.STAKE_TX_BALANCE; - - /** - * The table token_info. - */ - public static final TokenInfo TOKEN_INFO = TokenInfo.TOKEN_INFO; - - /** - * The table token_info_checkpoint. - */ - public static final TokenInfoCheckpoint TOKEN_INFO_CHECKPOINT = TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT; - /** * The table treasury. */ @@ -349,6 +303,11 @@ public class Tables { */ public static final Tx TX = Tx.TX; + /** + * The table tx_bootstrap_witnesses. + */ + public static final TxBootstrapWitnesses TX_BOOTSTRAP_WITNESSES = TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES; + /** * The table tx_chart. */ @@ -374,6 +333,11 @@ public class Tables { */ public static final TxOut TX_OUT = TxOut.TX_OUT; + /** + * The table tx_witnesses. + */ + public static final TxWitnesses TX_WITNESSES = TxWitnesses.TX_WITNESSES; + /** * The table unconsume_tx_in. */ diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressToken.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressToken.java index 1c18243e..2c849ff9 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressToken.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressToken.java @@ -119,7 +119,7 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.ADDRESS_TOKEN_IDENT_STAKE_TX_ID_BALANCE_IDX, Indexes.ADDRESS_TOKEN_IDENT_TX_ID_BALANCE_IDX, Indexes.IDX_ADDRESS_TOKEN_ADDRESS_ID, Indexes.IDX_ADDRESS_TOKEN_IDENT, Indexes.IDX_ADDRESS_TOKEN_TX_ID); + return Arrays.asList(Indexes.ADDRESS_TOKEN_IDENT_STAKE_TX_ID_BALANCE_IDX, Indexes.IDX_ADDRESS_TOKEN_ADDRESS_ID, Indexes.IDX_ADDRESS_TOKEN_IDENT, Indexes.IDX_ADDRESS_TOKEN_TX_ID); } @Override diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTokenBalance.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTokenBalance.java index 4c4fb595..4cb1b56a 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTokenBalance.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTokenBalance.java @@ -119,7 +119,7 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.ADDRESS_TOKEN_BALANCE_IDENT_STAKE_ADDRESS_ID_BALANCE_IDX, Indexes.ADDRESS_TOKEN_BALANCE_STAKE_ADDRESS_ID_IDX, Indexes.IDX_ADDRESS_TOKEN_BALANCE_ADDRESS_ID, Indexes.IDX_ADDRESS_TOKEN_BALANCE_ADDRESS_ID_IDENT, Indexes.IDX_ADDRESS_TOKEN_BALANCE_IDENT, Indexes.IDX_ADDRESS_TOKEN_BALANCE_IDENT_ADDRESS_ID); + return Arrays.asList(Indexes.ADDRESS_TOKEN_BALANCE_IDENT_STAKE_ADDRESS_ID_BALANCE_IDX, Indexes.IDX_ADDRESS_TOKEN_BALANCE_ADDRESS_ID, Indexes.IDX_ADDRESS_TOKEN_BALANCE_ADDRESS_ID_IDENT, Indexes.IDX_ADDRESS_TOKEN_BALANCE_IDENT, Indexes.IDX_ADDRESS_TOKEN_BALANCE_IDENT_ADDRESS_ID, Indexes.IDX_ADDRESS_TOKEN_BALANCE_STAKE_ADDRESS_ID); } @Override diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTxBalance.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTxBalance.java index d5d10597..357a32a9 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTxBalance.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AddressTxBalance.java @@ -125,7 +125,7 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.ADDRESS_TX_BALANCE_ADDRESS_ID_TIME_BALANCE_INDEX, Indexes.ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_IDX, Indexes.ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_TX_ID_BALANCE_IDX, Indexes.ADDRESS_TX_BALANCE_TX_ID_IDX, Indexes.IDX_ADDRESS_TX_BALANCE_ADDRESS_ID, Indexes.IDX_ADDRESS_TX_BALANCE_TIME, Indexes.IDX_ADDRESS_TX_BALANCE_TX_ID); + return Arrays.asList(Indexes.ADDRESS_TX_BALANCE_ADDRESS_ID_TIME_BALANCE_INDEX, Indexes.ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_TX_ID_BALANCE_IDX, Indexes.ADDRESS_TX_BALANCE_TX_ID_IDX, Indexes.IDX_ADDRESS_TX_BALANCE_ADDRESS_ID, Indexes.IDX_ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID, Indexes.IDX_ADDRESS_TX_BALANCE_TIME, Indexes.IDX_ADDRESS_TX_BALANCE_TX_ID); } @Override diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggAddressToken.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggAddressToken.java deleted file mode 100644 index dca3f26e..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggAddressToken.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggAddressTokenRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function4; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row4; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggAddressToken extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of agg_address_token - */ - public static final AggAddressToken AGG_ADDRESS_TOKEN = new AggAddressToken(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return AggAddressTokenRecord.class; - } - - /** - * The column agg_address_token.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column agg_address_token.balance. - */ - public final TableField BALANCE = createField(DSL.name("balance"), SQLDataType.DECIMAL_INTEGER(39).nullable(false), this, ""); - - /** - * The column agg_address_token.ident. - */ - public final TableField IDENT = createField(DSL.name("ident"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column agg_address_token.day. - */ - public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE, this, ""); - - private AggAddressToken(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private AggAddressToken(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased agg_address_token table reference - */ - public AggAddressToken(String alias) { - this(DSL.name(alias), AGG_ADDRESS_TOKEN); - } - - /** - * Create an aliased agg_address_token table reference - */ - public AggAddressToken(Name alias) { - this(alias, AGG_ADDRESS_TOKEN); - } - - /** - * Create a agg_address_token table reference - */ - public AggAddressToken() { - this(DSL.name("agg_address_token"), null); - } - - public AggAddressToken(Table child, ForeignKey key) { - super(child, key, AGG_ADDRESS_TOKEN); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.AGG_ADDRESS_TOKEN_DAY_IDX, Indexes.AGG_ADDRESS_TOKEN_IDENT_DAY_BALANCE_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.AGG_ADDRESS_TOKEN_PKEY; - } - - @Override - public AggAddressToken as(String alias) { - return new AggAddressToken(DSL.name(alias), this); - } - - @Override - public AggAddressToken as(Name alias) { - return new AggAddressToken(alias, this); - } - - @Override - public AggAddressToken as(Table alias) { - return new AggAddressToken(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public AggAddressToken rename(String name) { - return new AggAddressToken(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public AggAddressToken rename(Name name) { - return new AggAddressToken(name, null); - } - - /** - * Rename this table - */ - @Override - public AggAddressToken rename(Table name) { - return new AggAddressToken(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function4 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function4 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggAddressTxBalance.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggAddressTxBalance.java deleted file mode 100644 index fd5657e3..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggAddressTxBalance.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggAddressTxBalanceRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function5; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row5; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggAddressTxBalance extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of agg_address_tx_balance - */ - public static final AggAddressTxBalance AGG_ADDRESS_TX_BALANCE = new AggAddressTxBalance(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return AggAddressTxBalanceRecord.class; - } - - /** - * The column agg_address_tx_balance.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column agg_address_tx_balance.stake_address_id. - */ - public final TableField STAKE_ADDRESS_ID = createField(DSL.name("stake_address_id"), SQLDataType.BIGINT, this, ""); - - /** - * The column agg_address_tx_balance.address_id. - */ - public final TableField ADDRESS_ID = createField(DSL.name("address_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column agg_address_tx_balance.balance. - */ - public final TableField BALANCE = createField(DSL.name("balance"), SQLDataType.DECIMAL_INTEGER(39).nullable(false), this, ""); - - /** - * The column agg_address_tx_balance.day. - */ - public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE.nullable(false), this, ""); - - private AggAddressTxBalance(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private AggAddressTxBalance(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased agg_address_tx_balance table reference - */ - public AggAddressTxBalance(String alias) { - this(DSL.name(alias), AGG_ADDRESS_TX_BALANCE); - } - - /** - * Create an aliased agg_address_tx_balance table reference - */ - public AggAddressTxBalance(Name alias) { - this(alias, AGG_ADDRESS_TX_BALANCE); - } - - /** - * Create a agg_address_tx_balance table reference - */ - public AggAddressTxBalance() { - this(DSL.name("agg_address_tx_balance"), null); - } - - public AggAddressTxBalance(Table child, ForeignKey key) { - super(child, key, AGG_ADDRESS_TX_BALANCE); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.AGG_ADDRESS_TX_BALANCE_ADDRESS_ID_DAY_BALANCE_IDX, Indexes.AGG_ADDRESS_TX_BALANCE_DAY_IDX, Indexes.AGG_ADDRESS_TX_BALANCE_DAY_INDEX, Indexes.AGG_ADDRESS_TX_BALANCE_STAKE_ADDRESS_ID_DAY_BALANCE_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.AGG_ADDRESS_TX_BALANCE_PKEY; - } - - @Override - public AggAddressTxBalance as(String alias) { - return new AggAddressTxBalance(DSL.name(alias), this); - } - - @Override - public AggAddressTxBalance as(Name alias) { - return new AggAddressTxBalance(alias, this); - } - - @Override - public AggAddressTxBalance as(Table alias) { - return new AggAddressTxBalance(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public AggAddressTxBalance rename(String name) { - return new AggAddressTxBalance(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public AggAddressTxBalance rename(Name name) { - return new AggAddressTxBalance(name, null); - } - - /** - * Rename this table - */ - @Override - public AggAddressTxBalance rename(Table name) { - return new AggAddressTxBalance(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function5 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function5 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggPoolInfo.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggPoolInfo.java deleted file mode 100644 index fd9da751..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AggPoolInfo.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.time.LocalDateTime; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggPoolInfoRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function7; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row7; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggPoolInfo extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of agg_pool_info - */ - public static final AggPoolInfo AGG_POOL_INFO = new AggPoolInfo(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return AggPoolInfoRecord.class; - } - - /** - * The column agg_pool_info.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column agg_pool_info.pool_id. - */ - public final TableField POOL_ID = createField(DSL.name("pool_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column agg_pool_info.block_in_epoch. - */ - public final TableField BLOCK_IN_EPOCH = createField(DSL.name("block_in_epoch"), SQLDataType.BIGINT, this, ""); - - /** - * The column agg_pool_info.block_life_time. - */ - public final TableField BLOCK_LIFE_TIME = createField(DSL.name("block_life_time"), SQLDataType.BIGINT, this, ""); - - /** - * The column agg_pool_info.delegator_cnt. - */ - public final TableField DELEGATOR_CNT = createField(DSL.name("delegator_cnt"), SQLDataType.BIGINT, this, ""); - - /** - * The column agg_pool_info.block_check_point. - */ - public final TableField BLOCK_CHECK_POINT = createField(DSL.name("block_check_point"), SQLDataType.BIGINT, this, ""); - - /** - * The column agg_pool_info.update_time. - */ - public final TableField UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(6), this, ""); - - private AggPoolInfo(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private AggPoolInfo(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased agg_pool_info table reference - */ - public AggPoolInfo(String alias) { - this(DSL.name(alias), AGG_POOL_INFO); - } - - /** - * Create an aliased agg_pool_info table reference - */ - public AggPoolInfo(Name alias) { - this(alias, AGG_POOL_INFO); - } - - /** - * Create a agg_pool_info table reference - */ - public AggPoolInfo() { - this(DSL.name("agg_pool_info"), null); - } - - public AggPoolInfo(Table child, ForeignKey key) { - super(child, key, AGG_POOL_INFO); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.AGG_POOL_INFO_BLOCK_IN_EPOCH_IDX, Indexes.AGG_POOL_INFO_BLOCK_LIFE_TIME_IDX, Indexes.AGG_POOL_INFO_DELEGATOR_CNT_IDX, Indexes.EXAGG_POOL_INFO_POOL_ID_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.AGG_POOL_INFO_PKEY; - } - - @Override - public AggPoolInfo as(String alias) { - return new AggPoolInfo(DSL.name(alias), this); - } - - @Override - public AggPoolInfo as(Name alias) { - return new AggPoolInfo(alias, this); - } - - @Override - public AggPoolInfo as(Table alias) { - return new AggPoolInfo(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public AggPoolInfo rename(String name) { - return new AggPoolInfo(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public AggPoolInfo rename(Name name) { - return new AggPoolInfo(name, null); - } - - /** - * Rename this table - */ - @Override - public AggPoolInfo rename(Table name) { - return new AggPoolInfo(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row7 type methods - // ------------------------------------------------------------------------- - - @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function7 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function7 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AssetMetadata.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AssetMetadata.java deleted file mode 100644 index 4c1121f1..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/AssetMetadata.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.AssetMetadataRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function11; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row11; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AssetMetadata extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of asset_metadata - */ - public static final AssetMetadata ASSET_METADATA = new AssetMetadata(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return AssetMetadataRecord.class; - } - - /** - * The column asset_metadata.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column asset_metadata.decimals. - */ - public final TableField DECIMALS = createField(DSL.name("decimals"), SQLDataType.INTEGER, this, ""); - - /** - * The column asset_metadata.description. - */ - public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(65535).nullable(false), this, ""); - - /** - * The column asset_metadata.logo. - */ - public final TableField LOGO = createField(DSL.name("logo"), SQLDataType.VARCHAR(100000), this, ""); - - /** - * The column asset_metadata.name. - */ - public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(500).nullable(false), this, ""); - - /** - * The column asset_metadata.policy. - */ - public final TableField POLICY = createField(DSL.name("policy"), SQLDataType.VARCHAR(500), this, ""); - - /** - * The column asset_metadata.subject. - */ - public final TableField SUBJECT = createField(DSL.name("subject"), SQLDataType.VARCHAR(500).nullable(false), this, ""); - - /** - * The column asset_metadata.ticker. - */ - public final TableField TICKER = createField(DSL.name("ticker"), SQLDataType.VARCHAR(255), this, ""); - - /** - * The column asset_metadata.url. - */ - public final TableField URL = createField(DSL.name("url"), SQLDataType.VARCHAR(2048), this, ""); - - /** - * The column asset_metadata.ident. - */ - public final TableField IDENT = createField(DSL.name("ident"), SQLDataType.BIGINT, this, ""); - - /** - * The column asset_metadata.logo_hash. - */ - public final TableField LOGO_HASH = createField(DSL.name("logo_hash"), SQLDataType.VARCHAR(64), this, ""); - - private AssetMetadata(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private AssetMetadata(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased asset_metadata table reference - */ - public AssetMetadata(String alias) { - this(DSL.name(alias), ASSET_METADATA); - } - - /** - * Create an aliased asset_metadata table reference - */ - public AssetMetadata(Name alias) { - this(alias, ASSET_METADATA); - } - - /** - * Create a asset_metadata table reference - */ - public AssetMetadata() { - this(DSL.name("asset_metadata"), null); - } - - public AssetMetadata(Table child, ForeignKey key) { - super(child, key, ASSET_METADATA); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.ASSET_METADATA_SUBJECT_IDX, Indexes.ASSET_METADATA_UX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.ASSET_METADATA_PKEY; - } - - @Override - public AssetMetadata as(String alias) { - return new AssetMetadata(DSL.name(alias), this); - } - - @Override - public AssetMetadata as(Name alias) { - return new AssetMetadata(alias, this); - } - - @Override - public AssetMetadata as(Table alias) { - return new AssetMetadata(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public AssetMetadata rename(String name) { - return new AssetMetadata(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public AssetMetadata rename(Name name) { - return new AssetMetadata(name, null); - } - - /** - * Rename this table - */ - @Override - public AssetMetadata rename(Table name) { - return new AssetMetadata(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row11 type methods - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function11 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function11 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/CostModel.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/CostModel.java index d1039c47..9d88f3b7 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/CostModel.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/CostModel.java @@ -59,7 +59,7 @@ public Class getRecordType() { /** * The column cost_model.costs. */ - public final TableField COSTS = createField(DSL.name("costs"), SQLDataType.VARCHAR(65535).nullable(false), this, ""); + public final TableField COSTS = createField(DSL.name("costs"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column cost_model.hash. diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Cursor_.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Cursor_.java new file mode 100644 index 00000000..e1cf8bc2 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Cursor_.java @@ -0,0 +1,206 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import org.cardanofoundation.ledgersync.jooq.DefaultSchema; +import org.cardanofoundation.ledgersync.jooq.Indexes; +import org.cardanofoundation.ledgersync.jooq.Keys; +import org.cardanofoundation.ledgersync.jooq.tables.records.Cursor_Record; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function8; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row8; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Cursor_ extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of cursor_ + */ + public static final Cursor_ CURSOR_ = new Cursor_(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return Cursor_Record.class; + } + + /** + * The column cursor_.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column cursor_.block_hash. + */ + public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); + + /** + * The column cursor_.slot. + */ + public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); + + /** + * The column cursor_.block_number. + */ + public final TableField BLOCK_NUMBER = createField(DSL.name("block_number"), SQLDataType.BIGINT, this, ""); + + /** + * The column cursor_.era. + */ + public final TableField ERA = createField(DSL.name("era"), SQLDataType.INTEGER, this, ""); + + /** + * The column cursor_.prev_block_hash. + */ + public final TableField PREV_BLOCK_HASH = createField(DSL.name("prev_block_hash"), SQLDataType.VARCHAR(64), this, ""); + + /** + * The column cursor_.create_datetime. + */ + public final TableField CREATE_DATETIME = createField(DSL.name("create_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column cursor_.update_datetime. + */ + public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); + + private Cursor_(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private Cursor_(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased cursor_ table reference + */ + public Cursor_(String alias) { + this(DSL.name(alias), CURSOR_); + } + + /** + * Create an aliased cursor_ table reference + */ + public Cursor_(Name alias) { + this(alias, CURSOR_); + } + + /** + * Create a cursor_ table reference + */ + public Cursor_() { + this(DSL.name("cursor_"), null); + } + + public Cursor_(Table child, ForeignKey key) { + super(child, key, CURSOR_); + } + + @Override + public Schema getSchema() { + return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.IDX_CURSOR_BLOCK_HASH, Indexes.IDX_CURSOR_BLOCK_NUMBER, Indexes.IDX_CURSOR_ID, Indexes.IDX_CURSOR_SLOT); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.CURSOR__PKEY; + } + + @Override + public Cursor_ as(String alias) { + return new Cursor_(DSL.name(alias), this); + } + + @Override + public Cursor_ as(Name alias) { + return new Cursor_(alias, this); + } + + @Override + public Cursor_ as(Table alias) { + return new Cursor_(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public Cursor_ rename(String name) { + return new Cursor_(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public Cursor_ rename(Name name) { + return new Cursor_(name, null); + } + + /** + * Rename this table + */ + @Override + public Cursor_ rename(Table name) { + return new Cursor_(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row8 type methods + // ------------------------------------------------------------------------- + + @Override + public Row8 fieldsRow() { + return (Row8) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function8 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function8 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Datum.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Datum.java index 6016fa81..33fd69d0 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Datum.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Datum.java @@ -71,7 +71,7 @@ public Class getRecordType() { /** * The column datum.value. */ - public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR(65535), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.CLOB, this, ""); /** * The column datum.tx_id. diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Era.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Era.java new file mode 100644 index 00000000..824f7667 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Era.java @@ -0,0 +1,176 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables; + + +import java.util.function.Function; + +import org.cardanofoundation.ledgersync.jooq.DefaultSchema; +import org.cardanofoundation.ledgersync.jooq.Keys; +import org.cardanofoundation.ledgersync.jooq.tables.records.EraRecord; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function4; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row4; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Era extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of era + */ + public static final Era ERA = new Era(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return EraRecord.class; + } + + /** + * The column era.era. + */ + public final TableField ERA_ = createField(DSL.name("era"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column era.start_slot. + */ + public final TableField START_SLOT = createField(DSL.name("start_slot"), SQLDataType.BIGINT.nullable(false), this, ""); + + /** + * The column era.block. + */ + public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT.nullable(false), this, ""); + + /** + * The column era.block_hash. + */ + public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); + + private Era(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private Era(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased era table reference + */ + public Era(String alias) { + this(DSL.name(alias), ERA); + } + + /** + * Create an aliased era table reference + */ + public Era(Name alias) { + this(alias, ERA); + } + + /** + * Create a era table reference + */ + public Era() { + this(DSL.name("era"), null); + } + + public Era(Table child, ForeignKey key) { + super(child, key, ERA); + } + + @Override + public Schema getSchema() { + return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.ERA_PKEY; + } + + @Override + public Era as(String alias) { + return new Era(DSL.name(alias), this); + } + + @Override + public Era as(Name alias) { + return new Era(alias, this); + } + + @Override + public Era as(Table alias) { + return new Era(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public Era rename(String name) { + return new Era(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public Era rename(Name name) { + return new Era(name, null); + } + + /** + * Rename this table + */ + @Override + public Era rename(Table name) { + return new Era(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row4 type methods + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function4 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function4 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolOfflineFetchError.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolOfflineFetchError.java index cb5d8e15..bd4abe38 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolOfflineFetchError.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolOfflineFetchError.java @@ -124,7 +124,7 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.IDX_POOL_OFFLINE_FETCH_ERROR_PMR_ID, Indexes.POOL_OFFLINE_FETCH_ERROR_POOL_ID_IDX, Indexes.POOL_OFFLINE_FETCH_ERROR_POOL_ID_PMR_ID_IDX); + return Arrays.asList(Indexes.IDX_POOL_OFFLINE_FETCH_ERROR_PMR_ID); } @Override diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolReportHistory.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolReportHistory.java deleted file mode 100644 index 0dec14d5..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/PoolReportHistory.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.PoolReportHistoryRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function11; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row11; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class PoolReportHistory extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of pool_report_history - */ - public static final PoolReportHistory POOL_REPORT_HISTORY = new PoolReportHistory(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return PoolReportHistoryRecord.class; - } - - /** - * The column pool_report_history.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column pool_report_history.pool_id. - */ - public final TableField POOL_ID = createField(DSL.name("pool_id"), SQLDataType.VARCHAR(255).nullable(false), this, ""); - - /** - * The column pool_report_history.is_pool_size. - */ - public final TableField IS_POOL_SIZE = createField(DSL.name("is_pool_size"), SQLDataType.BOOLEAN.nullable(false), this, ""); - - /** - * The column pool_report_history.is_fees_paid. - */ - public final TableField IS_FEES_PAID = createField(DSL.name("is_fees_paid"), SQLDataType.BOOLEAN.nullable(false), this, ""); - - /** - * The column pool_report_history.begin_epoch. - */ - public final TableField BEGIN_EPOCH = createField(DSL.name("begin_epoch"), SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column pool_report_history.end_epoch. - */ - public final TableField END_EPOCH = createField(DSL.name("end_epoch"), SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column pool_report_history.report_id. - */ - public final TableField REPORT_ID = createField(DSL.name("report_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column pool_report_history.event_registration. - */ - public final TableField EVENT_REGISTRATION = createField(DSL.name("event_registration"), SQLDataType.BOOLEAN.nullable(false), this, ""); - - /** - * The column pool_report_history.event_deregistration. - */ - public final TableField EVENT_DEREGISTRATION = createField(DSL.name("event_deregistration"), SQLDataType.BOOLEAN.nullable(false), this, ""); - - /** - * The column pool_report_history.event_reward. - */ - public final TableField EVENT_REWARD = createField(DSL.name("event_reward"), SQLDataType.BOOLEAN.nullable(false), this, ""); - - /** - * The column pool_report_history.event_pool_update. - */ - public final TableField EVENT_POOL_UPDATE = createField(DSL.name("event_pool_update"), SQLDataType.BOOLEAN.nullable(false), this, ""); - - private PoolReportHistory(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private PoolReportHistory(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased pool_report_history table reference - */ - public PoolReportHistory(String alias) { - this(DSL.name(alias), POOL_REPORT_HISTORY); - } - - /** - * Create an aliased pool_report_history table reference - */ - public PoolReportHistory(Name alias) { - this(alias, POOL_REPORT_HISTORY); - } - - /** - * Create a pool_report_history table reference - */ - public PoolReportHistory() { - this(DSL.name("pool_report_history"), null); - } - - public PoolReportHistory(Table child, ForeignKey key) { - super(child, key, POOL_REPORT_HISTORY); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.POOL_REPORT_HISTORY_POOL_ID_IDX, Indexes.POOL_REPORT_HISTORY_POOL_ID_REPORT_ID_IDX, Indexes.POOL_REPORT_HISTORY_REPORT_ID_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.POOL_REPORT_HISTORY_PKEY; - } - - @Override - public PoolReportHistory as(String alias) { - return new PoolReportHistory(DSL.name(alias), this); - } - - @Override - public PoolReportHistory as(Name alias) { - return new PoolReportHistory(alias, this); - } - - @Override - public PoolReportHistory as(Table alias) { - return new PoolReportHistory(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public PoolReportHistory rename(String name) { - return new PoolReportHistory(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public PoolReportHistory rename(Name name) { - return new PoolReportHistory(name, null); - } - - /** - * Rename this table - */ - @Override - public PoolReportHistory rename(Table name) { - return new PoolReportHistory(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row11 type methods - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function11 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function11 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Redeemer.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Redeemer.java index 3932e33e..df0c42b7 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Redeemer.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Redeemer.java @@ -139,7 +139,7 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.REDEEMER_REDEEMER_DATA_ID_IDX); + return Arrays.asList(Indexes.REDEEMER_REDEEMER_DATA_ID_IDX, Indexes.REDEEMER_SCRIPT_HASH_IDX); } @Override diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/ReportHistory.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/ReportHistory.java deleted file mode 100644 index 519b1c9d..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/ReportHistory.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.time.LocalDateTime; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.ReportHistoryRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function8; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row8; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ReportHistory extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of report_history - */ - public static final ReportHistory REPORT_HISTORY = new ReportHistory(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return ReportHistoryRecord.class; - } - - /** - * The column report_history.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column report_history.report_name. - */ - public final TableField REPORT_NAME = createField(DSL.name("report_name"), SQLDataType.VARCHAR(255).nullable(false), this, ""); - - /** - * The column report_history.created_at. - */ - public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.LOCALDATETIME(6), this, ""); - - /** - * The column report_history.username. - */ - public final TableField USERNAME = createField(DSL.name("username"), SQLDataType.VARCHAR(255).nullable(false), this, ""); - - /** - * The column report_history.status. - */ - public final TableField STATUS = createField(DSL.name("status"), SQLDataType.VARCHAR(255), this, ""); - - /** - * The column report_history.type. - */ - public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(255), this, ""); - - /** - * The column report_history.storage_key. - */ - public final TableField STORAGE_KEY = createField(DSL.name("storage_key"), SQLDataType.VARCHAR(255), this, ""); - - /** - * The column report_history.uploaded_at. - */ - public final TableField UPLOADED_AT = createField(DSL.name("uploaded_at"), SQLDataType.LOCALDATETIME(6), this, ""); - - private ReportHistory(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private ReportHistory(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased report_history table reference - */ - public ReportHistory(String alias) { - this(DSL.name(alias), REPORT_HISTORY); - } - - /** - * Create an aliased report_history table reference - */ - public ReportHistory(Name alias) { - this(alias, REPORT_HISTORY); - } - - /** - * Create a report_history table reference - */ - public ReportHistory() { - this(DSL.name("report_history"), null); - } - - public ReportHistory(Table child, ForeignKey key) { - super(child, key, REPORT_HISTORY); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.REPORT_HISTORY_STATUS_IDX, Indexes.REPORT_HISTORY_USERNAME_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.REPORT_HISTORY_PKEY; - } - - @Override - public List> getUniqueKeys() { - return Arrays.asList(Keys.STORAGE_KEY_UNIQUE); - } - - @Override - public ReportHistory as(String alias) { - return new ReportHistory(DSL.name(alias), this); - } - - @Override - public ReportHistory as(Name alias) { - return new ReportHistory(alias, this); - } - - @Override - public ReportHistory as(Table alias) { - return new ReportHistory(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public ReportHistory rename(String name) { - return new ReportHistory(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public ReportHistory rename(Name name) { - return new ReportHistory(name, null); - } - - /** - * Rename this table - */ - @Override - public ReportHistory rename(Table name) { - return new ReportHistory(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row8 type methods - // ------------------------------------------------------------------------- - - @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function8 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function8 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Script.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Script.java index 0eb7e36d..cc206ee5 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Script.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/Script.java @@ -14,13 +14,13 @@ import org.cardanofoundation.ledgersync.jooq.tables.records.ScriptRecord; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Function7; +import org.jooq.Function8; import org.jooq.Identity; import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Records; -import org.jooq.Row7; +import org.jooq.Row8; import org.jooq.Schema; import org.jooq.SelectField; import org.jooq.Table; @@ -71,7 +71,7 @@ public Class getRecordType() { /** * The column script.json. */ - public final TableField JSON = createField(DSL.name("json"), SQLDataType.VARCHAR(65535), this, ""); + public final TableField JSON = createField(DSL.name("json"), SQLDataType.CLOB, this, ""); /** * The column script.serialised_size. @@ -88,6 +88,11 @@ public Class getRecordType() { */ public final TableField TX_ID = createField(DSL.name("tx_id"), SQLDataType.BIGINT.nullable(false), this, ""); + /** + * The column script.verified. + */ + public final TableField VERIFIED = createField(DSL.name("verified"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); + private Script(Name alias, Table aliased) { this(alias, aliased, null); } @@ -181,18 +186,18 @@ public Script rename(Table name) { } // ------------------------------------------------------------------------- - // Row7 type methods + // Row8 type methods // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public Row8 fieldsRow() { + return (Row8) super.fieldsRow(); } /** * Convenience mapping calling {@link SelectField#convertFrom(Function)}. */ - public SelectField mapping(Function7 from) { + public SelectField mapping(Function8 from) { return convertFrom(Records.mapping(from)); } @@ -200,7 +205,7 @@ public SelectField mapping(Function7 SelectField mapping(Class toType, Function7 from) { + public SelectField mapping(Class toType, Function8 from) { return convertFrom(toType, Records.mapping(from)); } } diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/StakeKeyReportHistory.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/StakeKeyReportHistory.java deleted file mode 100644 index ad17b91e..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/StakeKeyReportHistory.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.time.LocalDateTime; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.StakeKeyReportHistoryRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function12; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row12; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class StakeKeyReportHistory extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of stake_key_report_history - */ - public static final StakeKeyReportHistory STAKE_KEY_REPORT_HISTORY = new StakeKeyReportHistory(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return StakeKeyReportHistoryRecord.class; - } - - /** - * The column stake_key_report_history.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column stake_key_report_history.stake_key. - */ - public final TableField STAKE_KEY = createField(DSL.name("stake_key"), SQLDataType.VARCHAR(255).nullable(false), this, ""); - - /** - * The column stake_key_report_history.from_date. - */ - public final TableField FROM_DATE = createField(DSL.name("from_date"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); - - /** - * The column stake_key_report_history.to_date. - */ - public final TableField TO_DATE = createField(DSL.name("to_date"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); - - /** - * The column stake_key_report_history.is_ada_transfer. - */ - public final TableField IS_ADA_TRANSFER = createField(DSL.name("is_ada_transfer"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - /** - * The column stake_key_report_history.is_fees_paid. - */ - public final TableField IS_FEES_PAID = createField(DSL.name("is_fees_paid"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - /** - * The column stake_key_report_history.report_id. - */ - public final TableField REPORT_ID = createField(DSL.name("report_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column stake_key_report_history.event_registration. - */ - public final TableField EVENT_REGISTRATION = createField(DSL.name("event_registration"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - /** - * The column stake_key_report_history.event_delegation. - */ - public final TableField EVENT_DELEGATION = createField(DSL.name("event_delegation"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - /** - * The column stake_key_report_history.event_rewards. - */ - public final TableField EVENT_REWARDS = createField(DSL.name("event_rewards"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - /** - * The column stake_key_report_history.event_withdrawal. - */ - public final TableField EVENT_WITHDRAWAL = createField(DSL.name("event_withdrawal"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - /** - * The column stake_key_report_history.event_deregistration. - */ - public final TableField EVENT_DEREGISTRATION = createField(DSL.name("event_deregistration"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - - private StakeKeyReportHistory(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private StakeKeyReportHistory(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased stake_key_report_history table reference - */ - public StakeKeyReportHistory(String alias) { - this(DSL.name(alias), STAKE_KEY_REPORT_HISTORY); - } - - /** - * Create an aliased stake_key_report_history table reference - */ - public StakeKeyReportHistory(Name alias) { - this(alias, STAKE_KEY_REPORT_HISTORY); - } - - /** - * Create a stake_key_report_history table reference - */ - public StakeKeyReportHistory() { - this(DSL.name("stake_key_report_history"), null); - } - - public StakeKeyReportHistory(Table child, ForeignKey key) { - super(child, key, STAKE_KEY_REPORT_HISTORY); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.STAKE_KEY_REPORT_HISTORY_REPORT_ID_IDX, Indexes.STAKE_KEY_REPORT_HISTORY_STAKE_KEY_IDX, Indexes.STAKE_KEY_REPORT_HISTORY_STAKE_KEY_REPORT_ID_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.STAKE_KEY_REPORT_HISTORY_PKEY; - } - - @Override - public StakeKeyReportHistory as(String alias) { - return new StakeKeyReportHistory(DSL.name(alias), this); - } - - @Override - public StakeKeyReportHistory as(Name alias) { - return new StakeKeyReportHistory(alias, this); - } - - @Override - public StakeKeyReportHistory as(Table alias) { - return new StakeKeyReportHistory(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public StakeKeyReportHistory rename(String name) { - return new StakeKeyReportHistory(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public StakeKeyReportHistory rename(Name name) { - return new StakeKeyReportHistory(name, null); - } - - /** - * Rename this table - */ - @Override - public StakeKeyReportHistory rename(Table name) { - return new StakeKeyReportHistory(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row12 type methods - // ------------------------------------------------------------------------- - - @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function12 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function12 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/StakeTxBalance.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/StakeTxBalance.java deleted file mode 100644 index 0c56ac3a..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/StakeTxBalance.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.time.LocalDateTime; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Indexes; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.StakeTxBalanceRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function5; -import org.jooq.Identity; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row5; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class StakeTxBalance extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of stake_tx_balance - */ - public static final StakeTxBalance STAKE_TX_BALANCE = new StakeTxBalance(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return StakeTxBalanceRecord.class; - } - - /** - * The column stake_tx_balance.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column stake_tx_balance.stake_address_id. - */ - public final TableField STAKE_ADDRESS_ID = createField(DSL.name("stake_address_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column stake_tx_balance.tx_id. - */ - public final TableField TX_ID = createField(DSL.name("tx_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column stake_tx_balance.balance_change. - */ - public final TableField BALANCE_CHANGE = createField(DSL.name("balance_change"), SQLDataType.BIGINT, this, ""); - - /** - * The column stake_tx_balance.time. - */ - public final TableField TIME = createField(DSL.name("time"), SQLDataType.LOCALDATETIME(6), this, ""); - - private StakeTxBalance(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private StakeTxBalance(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased stake_tx_balance table reference - */ - public StakeTxBalance(String alias) { - this(DSL.name(alias), STAKE_TX_BALANCE); - } - - /** - * Create an aliased stake_tx_balance table reference - */ - public StakeTxBalance(Name alias) { - this(alias, STAKE_TX_BALANCE); - } - - /** - * Create a stake_tx_balance table reference - */ - public StakeTxBalance() { - this(DSL.name("stake_tx_balance"), null); - } - - public StakeTxBalance(Table child, ForeignKey key) { - super(child, key, STAKE_TX_BALANCE); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.STAKE_TX_BALANCE_STAKE_ADDRESS_ID_IDX, Indexes.STAKE_TX_BALANCE_TIME_IDX, Indexes.STAKE_TX_BALANCE_TX_ID_IDX); - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.STAKE_TX_BALANCE_PKEY; - } - - @Override - public StakeTxBalance as(String alias) { - return new StakeTxBalance(DSL.name(alias), this); - } - - @Override - public StakeTxBalance as(Name alias) { - return new StakeTxBalance(alias, this); - } - - @Override - public StakeTxBalance as(Table alias) { - return new StakeTxBalance(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public StakeTxBalance rename(String name) { - return new StakeTxBalance(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public StakeTxBalance rename(Name name) { - return new StakeTxBalance(name, null); - } - - /** - * Rename this table - */ - @Override - public StakeTxBalance rename(Table name) { - return new StakeTxBalance(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function5 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function5 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TokenInfo.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TokenInfo.java deleted file mode 100644 index f5e09f3c..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TokenInfo.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.math.BigInteger; -import java.time.LocalDateTime; -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.TokenInfoRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function6; -import org.jooq.Identity; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row6; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TokenInfo extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of token_info - */ - public static final TokenInfo TOKEN_INFO = new TokenInfo(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return TokenInfoRecord.class; - } - - /** - * The column token_info.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column token_info.ident. - */ - public final TableField IDENT = createField(DSL.name("ident"), SQLDataType.BIGINT, this, ""); - - /** - * The column token_info.number_of_holders. - */ - public final TableField NUMBER_OF_HOLDERS = createField(DSL.name("number_of_holders"), SQLDataType.BIGINT, this, ""); - - /** - * The column token_info.volume_24h. - */ - public final TableField VOLUME_24H = createField(DSL.name("volume_24h"), SQLDataType.DECIMAL_INTEGER(40), this, ""); - - /** - * The column token_info.block_no. - */ - public final TableField BLOCK_NO = createField(DSL.name("block_no"), SQLDataType.BIGINT, this, ""); - - /** - * The column token_info.update_time. - */ - public final TableField UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(6), this, ""); - - private TokenInfo(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private TokenInfo(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased token_info table reference - */ - public TokenInfo(String alias) { - this(DSL.name(alias), TOKEN_INFO); - } - - /** - * Create an aliased token_info table reference - */ - public TokenInfo(Name alias) { - this(alias, TOKEN_INFO); - } - - /** - * Create a token_info table reference - */ - public TokenInfo() { - this(DSL.name("token_info"), null); - } - - public TokenInfo(Table child, ForeignKey key) { - super(child, key, TOKEN_INFO); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.TOKEN_INFO_PKEY; - } - - @Override - public List> getUniqueKeys() { - return Arrays.asList(Keys.UNIQUE_TOKEN_INFO); - } - - @Override - public TokenInfo as(String alias) { - return new TokenInfo(DSL.name(alias), this); - } - - @Override - public TokenInfo as(Name alias) { - return new TokenInfo(alias, this); - } - - @Override - public TokenInfo as(Table alias) { - return new TokenInfo(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public TokenInfo rename(String name) { - return new TokenInfo(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public TokenInfo rename(Name name) { - return new TokenInfo(name, null); - } - - /** - * Rename this table - */ - @Override - public TokenInfo rename(Table name) { - return new TokenInfo(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function6 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function6 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TokenInfoCheckpoint.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TokenInfoCheckpoint.java deleted file mode 100644 index 5aeb0089..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TokenInfoCheckpoint.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables; - - -import java.time.LocalDateTime; -import java.util.function.Function; - -import org.cardanofoundation.ledgersync.jooq.DefaultSchema; -import org.cardanofoundation.ledgersync.jooq.Keys; -import org.cardanofoundation.ledgersync.jooq.tables.records.TokenInfoCheckpointRecord; -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Function3; -import org.jooq.Identity; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Records; -import org.jooq.Row3; -import org.jooq.Schema; -import org.jooq.SelectField; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TokenInfoCheckpoint extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of token_info_checkpoint - */ - public static final TokenInfoCheckpoint TOKEN_INFO_CHECKPOINT = new TokenInfoCheckpoint(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return TokenInfoCheckpointRecord.class; - } - - /** - * The column token_info_checkpoint.id. - */ - public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - - /** - * The column token_info_checkpoint.block_no. - */ - public final TableField BLOCK_NO = createField(DSL.name("block_no"), SQLDataType.BIGINT, this, ""); - - /** - * The column token_info_checkpoint.update_time. - */ - public final TableField UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(6), this, ""); - - private TokenInfoCheckpoint(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private TokenInfoCheckpoint(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased token_info_checkpoint table reference - */ - public TokenInfoCheckpoint(String alias) { - this(DSL.name(alias), TOKEN_INFO_CHECKPOINT); - } - - /** - * Create an aliased token_info_checkpoint table reference - */ - public TokenInfoCheckpoint(Name alias) { - this(alias, TOKEN_INFO_CHECKPOINT); - } - - /** - * Create a token_info_checkpoint table reference - */ - public TokenInfoCheckpoint() { - this(DSL.name("token_info_checkpoint"), null); - } - - public TokenInfoCheckpoint(Table child, ForeignKey key) { - super(child, key, TOKEN_INFO_CHECKPOINT); - } - - @Override - public Schema getSchema() { - return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.BLOCK_TOKEN_INFO_PKEY; - } - - @Override - public TokenInfoCheckpoint as(String alias) { - return new TokenInfoCheckpoint(DSL.name(alias), this); - } - - @Override - public TokenInfoCheckpoint as(Name alias) { - return new TokenInfoCheckpoint(alias, this); - } - - @Override - public TokenInfoCheckpoint as(Table alias) { - return new TokenInfoCheckpoint(alias.getQualifiedName(), this); - } - - /** - * Rename this table - */ - @Override - public TokenInfoCheckpoint rename(String name) { - return new TokenInfoCheckpoint(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public TokenInfoCheckpoint rename(Name name) { - return new TokenInfoCheckpoint(name, null); - } - - /** - * Rename this table - */ - @Override - public TokenInfoCheckpoint rename(Table name) { - return new TokenInfoCheckpoint(name.getQualifiedName(), null); - } - - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Function)}. - */ - public SelectField mapping(Function3 from) { - return convertFrom(Records.mapping(from)); - } - - /** - * Convenience mapping calling {@link SelectField#convertFrom(Class, - * Function)}. - */ - public SelectField mapping(Class toType, Function3 from) { - return convertFrom(toType, Records.mapping(from)); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxBootstrapWitnesses.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxBootstrapWitnesses.java new file mode 100644 index 00000000..de16a3e0 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxBootstrapWitnesses.java @@ -0,0 +1,201 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import org.cardanofoundation.ledgersync.jooq.DefaultSchema; +import org.cardanofoundation.ledgersync.jooq.Indexes; +import org.cardanofoundation.ledgersync.jooq.Keys; +import org.cardanofoundation.ledgersync.jooq.tables.records.TxBootstrapWitnessesRecord; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function6; +import org.jooq.Identity; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row6; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TxBootstrapWitnesses extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of tx_bootstrap_witnesses + */ + public static final TxBootstrapWitnesses TX_BOOTSTRAP_WITNESSES = new TxBootstrapWitnesses(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TxBootstrapWitnessesRecord.class; + } + + /** + * The column tx_bootstrap_witnesses.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); + + /** + * The column tx_bootstrap_witnesses.tx_id. + */ + public final TableField TX_ID = createField(DSL.name("tx_id"), SQLDataType.BIGINT.nullable(false), this, ""); + + /** + * The column tx_bootstrap_witnesses.public_key. + */ + public final TableField PUBLIC_KEY = createField(DSL.name("public_key"), SQLDataType.VARCHAR, this, ""); + + /** + * The column tx_bootstrap_witnesses.signature. + */ + public final TableField SIGNATURE = createField(DSL.name("signature"), SQLDataType.VARCHAR, this, ""); + + /** + * The column tx_bootstrap_witnesses.chain_code. + */ + public final TableField CHAIN_CODE = createField(DSL.name("chain_code"), SQLDataType.VARCHAR, this, ""); + + /** + * The column tx_bootstrap_witnesses.attributes. + */ + public final TableField ATTRIBUTES = createField(DSL.name("attributes"), SQLDataType.VARCHAR, this, ""); + + private TxBootstrapWitnesses(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private TxBootstrapWitnesses(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased tx_bootstrap_witnesses table reference + */ + public TxBootstrapWitnesses(String alias) { + this(DSL.name(alias), TX_BOOTSTRAP_WITNESSES); + } + + /** + * Create an aliased tx_bootstrap_witnesses table reference + */ + public TxBootstrapWitnesses(Name alias) { + this(alias, TX_BOOTSTRAP_WITNESSES); + } + + /** + * Create a tx_bootstrap_witnesses table reference + */ + public TxBootstrapWitnesses() { + this(DSL.name("tx_bootstrap_witnesses"), null); + } + + public TxBootstrapWitnesses(Table child, ForeignKey key) { + super(child, key, TX_BOOTSTRAP_WITNESSES); + } + + @Override + public Schema getSchema() { + return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.TX_BOOTSTRAP_WITNESSES_TX_ID_IDX); + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.TX_BOOTSTRAP_WITNESSES_PKEY; + } + + @Override + public TxBootstrapWitnesses as(String alias) { + return new TxBootstrapWitnesses(DSL.name(alias), this); + } + + @Override + public TxBootstrapWitnesses as(Name alias) { + return new TxBootstrapWitnesses(alias, this); + } + + @Override + public TxBootstrapWitnesses as(Table alias) { + return new TxBootstrapWitnesses(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TxBootstrapWitnesses rename(String name) { + return new TxBootstrapWitnesses(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TxBootstrapWitnesses rename(Name name) { + return new TxBootstrapWitnesses(name, null); + } + + /** + * Rename this table + */ + @Override + public TxBootstrapWitnesses rename(Table name) { + return new TxBootstrapWitnesses(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row6 type methods + // ------------------------------------------------------------------------- + + @Override + public Row6 fieldsRow() { + return (Row6) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function6 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function6 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxMetadata.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxMetadata.java index c45bb5e1..d8996507 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxMetadata.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxMetadata.java @@ -67,7 +67,7 @@ public Class getRecordType() { /** * The column tx_metadata.json. */ - public final TableField JSON = createField(DSL.name("json"), SQLDataType.VARCHAR(65535), this, ""); + public final TableField JSON = createField(DSL.name("json"), SQLDataType.CLOB, this, ""); /** * The column tx_metadata.key. diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxWitnesses.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxWitnesses.java new file mode 100644 index 00000000..c04e98b7 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/TxWitnesses.java @@ -0,0 +1,206 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import org.cardanofoundation.ledgersync.jooq.DefaultSchema; +import org.cardanofoundation.ledgersync.jooq.Indexes; +import org.cardanofoundation.ledgersync.jooq.Keys; +import org.cardanofoundation.ledgersync.jooq.tables.records.TxWitnessesRecord; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function7; +import org.jooq.Identity; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row7; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TxWitnesses extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of tx_witnesses + */ + public static final TxWitnesses TX_WITNESSES = new TxWitnesses(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TxWitnessesRecord.class; + } + + /** + * The column tx_witnesses.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); + + /** + * The column tx_witnesses.tx_id. + */ + public final TableField TX_ID = createField(DSL.name("tx_id"), SQLDataType.BIGINT.nullable(false), this, ""); + + /** + * The column tx_witnesses.key. + */ + public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR, this, ""); + + /** + * The column tx_witnesses.signature. + */ + public final TableField SIGNATURE = createField(DSL.name("signature"), SQLDataType.VARCHAR, this, ""); + + /** + * The column tx_witnesses.index_arr. + */ + public final TableField INDEX_ARR = createField(DSL.name("index_arr"), SQLDataType.INTEGER.array(), this, ""); + + /** + * The column tx_witnesses.index_arr_size. + */ + public final TableField INDEX_ARR_SIZE = createField(DSL.name("index_arr_size"), SQLDataType.INTEGER, this, ""); + + /** + * The column tx_witnesses.type. + */ + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(50), this, ""); + + private TxWitnesses(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private TxWitnesses(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased tx_witnesses table reference + */ + public TxWitnesses(String alias) { + this(DSL.name(alias), TX_WITNESSES); + } + + /** + * Create an aliased tx_witnesses table reference + */ + public TxWitnesses(Name alias) { + this(alias, TX_WITNESSES); + } + + /** + * Create a tx_witnesses table reference + */ + public TxWitnesses() { + this(DSL.name("tx_witnesses"), null); + } + + public TxWitnesses(Table child, ForeignKey key) { + super(child, key, TX_WITNESSES); + } + + @Override + public Schema getSchema() { + return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.TX_WITNESSES_TX_ID_IDX); + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.TX_WITNESSES_PKEY; + } + + @Override + public TxWitnesses as(String alias) { + return new TxWitnesses(DSL.name(alias), this); + } + + @Override + public TxWitnesses as(Name alias) { + return new TxWitnesses(alias, this); + } + + @Override + public TxWitnesses as(Table alias) { + return new TxWitnesses(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TxWitnesses rename(String name) { + return new TxWitnesses(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TxWitnesses rename(Name name) { + return new TxWitnesses(name, null); + } + + /** + * Rename this table + */ + @Override + public TxWitnesses rename(Table name) { + return new TxWitnesses(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row7 type methods + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function7 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function7 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/UnconsumeTxIn.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/UnconsumeTxIn.java index eb88b843..d592f8d7 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/UnconsumeTxIn.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/UnconsumeTxIn.java @@ -9,16 +9,18 @@ import java.util.function.Function; import org.cardanofoundation.ledgersync.jooq.DefaultSchema; +import org.cardanofoundation.ledgersync.jooq.Indexes; import org.cardanofoundation.ledgersync.jooq.Keys; import org.cardanofoundation.ledgersync.jooq.tables.records.UnconsumeTxInRecord; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Function4; +import org.jooq.Function5; import org.jooq.Identity; +import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Records; -import org.jooq.Row4; +import org.jooq.Row5; import org.jooq.Schema; import org.jooq.SelectField; import org.jooq.Table; @@ -71,6 +73,11 @@ public Class getRecordType() { */ public final TableField TX_OUT_ID = createField(DSL.name("tx_out_id"), SQLDataType.BIGINT.nullable(false), this, ""); + /** + * The column unconsume_tx_in.redeemer_id. + */ + public final TableField REDEEMER_ID = createField(DSL.name("redeemer_id"), SQLDataType.BIGINT, this, ""); + private UnconsumeTxIn(Name alias, Table aliased) { this(alias, aliased, null); } @@ -109,6 +116,11 @@ public Schema getSchema() { return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA; } + @Override + public List getIndexes() { + return Arrays.asList(Indexes.IDX_UNCONSUME_TX_IN_REDEEMER_ID); + } + @Override public Identity getIdentity() { return (Identity) super.getIdentity(); @@ -164,18 +176,18 @@ public UnconsumeTxIn rename(Table name) { } // ------------------------------------------------------------------------- - // Row4 type methods + // Row5 type methods // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public Row5 fieldsRow() { + return (Row5) super.fieldsRow(); } /** * Convenience mapping calling {@link SelectField#convertFrom(Function)}. */ - public SelectField mapping(Function4 from) { + public SelectField mapping(Function5 from) { return convertFrom(Records.mapping(from)); } @@ -183,7 +195,7 @@ public SelectField mapping(Function4 SelectField mapping(Class toType, Function4 from) { + public SelectField mapping(Class toType, Function5 from) { return convertFrom(toType, Records.mapping(from)); } } diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggAddressTokenDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggAddressTokenDao.java deleted file mode 100644 index 0151b98d..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggAddressTokenDao.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressToken; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggAddressTokenRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class AggAddressTokenDao extends AbstractSpringDAOImpl { - - /** - * Create a new AggAddressTokenDao without any configuration - */ - public AggAddressTokenDao() { - super(AggAddressToken.AGG_ADDRESS_TOKEN, org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressToken.class); - } - - /** - * Create a new AggAddressTokenDao with an attached configuration - */ - @Autowired - public AggAddressTokenDao(Configuration configuration) { - super(AggAddressToken.AGG_ADDRESS_TOKEN, org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressToken.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressToken object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggAddressToken.AGG_ADDRESS_TOKEN.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(AggAddressToken.AGG_ADDRESS_TOKEN.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressToken fetchOneById(Long value) { - return fetchOne(AggAddressToken.AGG_ADDRESS_TOKEN.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(AggAddressToken.AGG_ADDRESS_TOKEN.ID, value); - } - - /** - * Fetch records that have balance BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBalance(BigInteger lowerInclusive, BigInteger upperInclusive) { - return fetchRange(AggAddressToken.AGG_ADDRESS_TOKEN.BALANCE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have balance IN (values) - */ - public List fetchByBalance(BigInteger... values) { - return fetch(AggAddressToken.AGG_ADDRESS_TOKEN.BALANCE, values); - } - - /** - * Fetch records that have ident BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIdent(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggAddressToken.AGG_ADDRESS_TOKEN.IDENT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have ident IN (values) - */ - public List fetchByIdent(Long... values) { - return fetch(AggAddressToken.AGG_ADDRESS_TOKEN.IDENT, values); - } - - /** - * Fetch records that have day BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfDay(LocalDate lowerInclusive, LocalDate upperInclusive) { - return fetchRange(AggAddressToken.AGG_ADDRESS_TOKEN.DAY, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have day IN (values) - */ - public List fetchByDay(LocalDate... values) { - return fetch(AggAddressToken.AGG_ADDRESS_TOKEN.DAY, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggAddressTxBalanceDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggAddressTxBalanceDao.java deleted file mode 100644 index 924c353c..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggAddressTxBalanceDao.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggAddressTxBalanceRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class AggAddressTxBalanceDao extends AbstractSpringDAOImpl { - - /** - * Create a new AggAddressTxBalanceDao without any configuration - */ - public AggAddressTxBalanceDao() { - super(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressTxBalance.class); - } - - /** - * Create a new AggAddressTxBalanceDao with an attached configuration - */ - @Autowired - public AggAddressTxBalanceDao(Configuration configuration) { - super(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE, org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressTxBalance.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressTxBalance object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressTxBalance fetchOneById(Long value) { - return fetchOne(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ID, value); - } - - /** - * Fetch records that have stake_address_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfStakeAddressId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have stake_address_id IN (values) - */ - public List fetchByStakeAddressId(Long... values) { - return fetch(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID, values); - } - - /** - * Fetch records that have address_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfAddressId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ADDRESS_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have address_id IN (values) - */ - public List fetchByAddressId(Long... values) { - return fetch(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ADDRESS_ID, values); - } - - /** - * Fetch records that have balance BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBalance(BigInteger lowerInclusive, BigInteger upperInclusive) { - return fetchRange(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.BALANCE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have balance IN (values) - */ - public List fetchByBalance(BigInteger... values) { - return fetch(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.BALANCE, values); - } - - /** - * Fetch records that have day BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfDay(LocalDate lowerInclusive, LocalDate upperInclusive) { - return fetchRange(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have day IN (values) - */ - public List fetchByDay(LocalDate... values) { - return fetch(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggPoolInfoDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggPoolInfoDao.java deleted file mode 100644 index eb2e4e06..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AggPoolInfoDao.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.time.LocalDateTime; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.AggPoolInfo; -import org.cardanofoundation.ledgersync.jooq.tables.records.AggPoolInfoRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class AggPoolInfoDao extends AbstractSpringDAOImpl { - - /** - * Create a new AggPoolInfoDao without any configuration - */ - public AggPoolInfoDao() { - super(AggPoolInfo.AGG_POOL_INFO, org.cardanofoundation.ledgersync.jooq.tables.pojos.AggPoolInfo.class); - } - - /** - * Create a new AggPoolInfoDao with an attached configuration - */ - @Autowired - public AggPoolInfoDao(Configuration configuration) { - super(AggPoolInfo.AGG_POOL_INFO, org.cardanofoundation.ledgersync.jooq.tables.pojos.AggPoolInfo.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.AggPoolInfo object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.AggPoolInfo fetchOneById(Long value) { - return fetchOne(AggPoolInfo.AGG_POOL_INFO.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(AggPoolInfo.AGG_POOL_INFO.ID, value); - } - - /** - * Fetch records that have pool_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfPoolId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.POOL_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have pool_id IN (values) - */ - public List fetchByPoolId(Long... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.POOL_ID, values); - } - - /** - * Fetch records that have block_in_epoch BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBlockInEpoch(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.BLOCK_IN_EPOCH, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have block_in_epoch IN (values) - */ - public List fetchByBlockInEpoch(Long... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.BLOCK_IN_EPOCH, values); - } - - /** - * Fetch records that have block_life_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBlockLifeTime(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.BLOCK_LIFE_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have block_life_time IN (values) - */ - public List fetchByBlockLifeTime(Long... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.BLOCK_LIFE_TIME, values); - } - - /** - * Fetch records that have delegator_cnt BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfDelegatorCnt(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.DELEGATOR_CNT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have delegator_cnt IN (values) - */ - public List fetchByDelegatorCnt(Long... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.DELEGATOR_CNT, values); - } - - /** - * Fetch records that have block_check_point BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfBlockCheckPoint(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.BLOCK_CHECK_POINT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have block_check_point IN (values) - */ - public List fetchByBlockCheckPoint(Long... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.BLOCK_CHECK_POINT, values); - } - - /** - * Fetch records that have update_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(AggPoolInfo.AGG_POOL_INFO.UPDATE_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have update_time IN (values) - */ - public List fetchByUpdateTime(LocalDateTime... values) { - return fetch(AggPoolInfo.AGG_POOL_INFO.UPDATE_TIME, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AssetMetadataDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AssetMetadataDao.java deleted file mode 100644 index 55f27525..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/AssetMetadataDao.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.AssetMetadata; -import org.cardanofoundation.ledgersync.jooq.tables.records.AssetMetadataRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class AssetMetadataDao extends AbstractSpringDAOImpl { - - /** - * Create a new AssetMetadataDao without any configuration - */ - public AssetMetadataDao() { - super(AssetMetadata.ASSET_METADATA, org.cardanofoundation.ledgersync.jooq.tables.pojos.AssetMetadata.class); - } - - /** - * Create a new AssetMetadataDao with an attached configuration - */ - @Autowired - public AssetMetadataDao(Configuration configuration) { - super(AssetMetadata.ASSET_METADATA, org.cardanofoundation.ledgersync.jooq.tables.pojos.AssetMetadata.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.AssetMetadata object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(AssetMetadata.ASSET_METADATA.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.AssetMetadata fetchOneById(Long value) { - return fetchOne(AssetMetadata.ASSET_METADATA.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(AssetMetadata.ASSET_METADATA.ID, value); - } - - /** - * Fetch records that have decimals BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfDecimals(Integer lowerInclusive, Integer upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.DECIMALS, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have decimals IN (values) - */ - public List fetchByDecimals(Integer... values) { - return fetch(AssetMetadata.ASSET_METADATA.DECIMALS, values); - } - - /** - * Fetch records that have description BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.DESCRIPTION, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have description IN (values) - */ - public List fetchByDescription(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.DESCRIPTION, values); - } - - /** - * Fetch records that have logo BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfLogo(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.LOGO, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have logo IN (values) - */ - public List fetchByLogo(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.LOGO, values); - } - - /** - * Fetch records that have name BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.NAME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have name IN (values) - */ - public List fetchByName(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.NAME, values); - } - - /** - * Fetch records that have policy BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfPolicy(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.POLICY, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have policy IN (values) - */ - public List fetchByPolicy(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.POLICY, values); - } - - /** - * Fetch records that have subject BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfSubject(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.SUBJECT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have subject IN (values) - */ - public List fetchBySubject(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.SUBJECT, values); - } - - /** - * Fetch records that have ticker BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfTicker(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.TICKER, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have ticker IN (values) - */ - public List fetchByTicker(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.TICKER, values); - } - - /** - * Fetch records that have url BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUrl(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.URL, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have url IN (values) - */ - public List fetchByUrl(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.URL, values); - } - - /** - * Fetch records that have ident BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIdent(Long lowerInclusive, Long upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.IDENT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have ident IN (values) - */ - public List fetchByIdent(Long... values) { - return fetch(AssetMetadata.ASSET_METADATA.IDENT, values); - } - - /** - * Fetch records that have logo_hash BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfLogoHash(String lowerInclusive, String upperInclusive) { - return fetchRange(AssetMetadata.ASSET_METADATA.LOGO_HASH, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have logo_hash IN (values) - */ - public List fetchByLogoHash(String... values) { - return fetch(AssetMetadata.ASSET_METADATA.LOGO_HASH, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/Cursor_Dao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/Cursor_Dao.java new file mode 100644 index 00000000..642e8056 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/Cursor_Dao.java @@ -0,0 +1,165 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; + +import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; +import org.cardanofoundation.ledgersync.jooq.tables.Cursor_; +import org.cardanofoundation.ledgersync.jooq.tables.records.Cursor_Record; +import org.jooq.Configuration; +import org.jooq.Record2; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class Cursor_Dao extends AbstractSpringDAOImpl> { + + /** + * Create a new Cursor_Dao without any configuration + */ + public Cursor_Dao() { + super(Cursor_.CURSOR_, org.cardanofoundation.ledgersync.jooq.tables.pojos.Cursor_.class); + } + + /** + * Create a new Cursor_Dao with an attached configuration + */ + @Autowired + public Cursor_Dao(Configuration configuration) { + super(Cursor_.CURSOR_, org.cardanofoundation.ledgersync.jooq.tables.pojos.Cursor_.class, configuration); + } + + @Override + public Record2 getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.Cursor_ object) { + return compositeKeyRecord(object.getId(), object.getBlockHash()); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(Cursor_.CURSOR_.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(Integer... values) { + return fetch(Cursor_.CURSOR_.ID, values); + } + + /** + * Fetch records that have block_hash BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlockHash(String lowerInclusive, String upperInclusive) { + return fetchRange(Cursor_.CURSOR_.BLOCK_HASH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block_hash IN (values) + */ + public List fetchByBlockHash(String... values) { + return fetch(Cursor_.CURSOR_.BLOCK_HASH, values); + } + + /** + * Fetch records that have slot BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSlot(Long lowerInclusive, Long upperInclusive) { + return fetchRange(Cursor_.CURSOR_.SLOT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have slot IN (values) + */ + public List fetchBySlot(Long... values) { + return fetch(Cursor_.CURSOR_.SLOT, values); + } + + /** + * Fetch records that have block_number BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlockNumber(Long lowerInclusive, Long upperInclusive) { + return fetchRange(Cursor_.CURSOR_.BLOCK_NUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block_number IN (values) + */ + public List fetchByBlockNumber(Long... values) { + return fetch(Cursor_.CURSOR_.BLOCK_NUMBER, values); + } + + /** + * Fetch records that have era BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEra(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(Cursor_.CURSOR_.ERA, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have era IN (values) + */ + public List fetchByEra(Integer... values) { + return fetch(Cursor_.CURSOR_.ERA, values); + } + + /** + * Fetch records that have prev_block_hash BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPrevBlockHash(String lowerInclusive, String upperInclusive) { + return fetchRange(Cursor_.CURSOR_.PREV_BLOCK_HASH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have prev_block_hash IN (values) + */ + public List fetchByPrevBlockHash(String... values) { + return fetch(Cursor_.CURSOR_.PREV_BLOCK_HASH, values); + } + + /** + * Fetch records that have create_datetime BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCreateDatetime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(Cursor_.CURSOR_.CREATE_DATETIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have create_datetime IN (values) + */ + public List fetchByCreateDatetime(LocalDateTime... values) { + return fetch(Cursor_.CURSOR_.CREATE_DATETIME, values); + } + + /** + * Fetch records that have update_datetime BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUpdateDatetime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(Cursor_.CURSOR_.UPDATE_DATETIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_datetime IN (values) + */ + public List fetchByUpdateDatetime(LocalDateTime... values) { + return fetch(Cursor_.CURSOR_.UPDATE_DATETIME, values); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/EraDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/EraDao.java new file mode 100644 index 00000000..4af7733d --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/EraDao.java @@ -0,0 +1,118 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; +import org.cardanofoundation.ledgersync.jooq.tables.Era; +import org.cardanofoundation.ledgersync.jooq.tables.records.EraRecord; +import org.jooq.Configuration; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class EraDao extends AbstractSpringDAOImpl { + + /** + * Create a new EraDao without any configuration + */ + public EraDao() { + super(Era.ERA, org.cardanofoundation.ledgersync.jooq.tables.pojos.Era.class); + } + + /** + * Create a new EraDao with an attached configuration + */ + @Autowired + public EraDao(Configuration configuration) { + super(Era.ERA, org.cardanofoundation.ledgersync.jooq.tables.pojos.Era.class, configuration); + } + + @Override + public Integer getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.Era object) { + return object.getEra(); + } + + /** + * Fetch records that have era BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEra(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(Era.ERA.ERA_, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have era IN (values) + */ + public List fetchByEra(Integer... values) { + return fetch(Era.ERA.ERA_, values); + } + + /** + * Fetch a unique record that has era = value + */ + public org.cardanofoundation.ledgersync.jooq.tables.pojos.Era fetchOneByEra(Integer value) { + return fetchOne(Era.ERA.ERA_, value); + } + + /** + * Fetch a unique record that has era = value + */ + public Optional fetchOptionalByEra(Integer value) { + return fetchOptional(Era.ERA.ERA_, value); + } + + /** + * Fetch records that have start_slot BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStartSlot(Long lowerInclusive, Long upperInclusive) { + return fetchRange(Era.ERA.START_SLOT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have start_slot IN (values) + */ + public List fetchByStartSlot(Long... values) { + return fetch(Era.ERA.START_SLOT, values); + } + + /** + * Fetch records that have block BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlock(Long lowerInclusive, Long upperInclusive) { + return fetchRange(Era.ERA.BLOCK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block IN (values) + */ + public List fetchByBlock(Long... values) { + return fetch(Era.ERA.BLOCK, values); + } + + /** + * Fetch records that have block_hash BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlockHash(String lowerInclusive, String upperInclusive) { + return fetchRange(Era.ERA.BLOCK_HASH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block_hash IN (values) + */ + public List fetchByBlockHash(String... values) { + return fetch(Era.ERA.BLOCK_HASH, values); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/PoolReportHistoryDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/PoolReportHistoryDao.java deleted file mode 100644 index 3cf3cdd9..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/PoolReportHistoryDao.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.PoolReportHistory; -import org.cardanofoundation.ledgersync.jooq.tables.records.PoolReportHistoryRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class PoolReportHistoryDao extends AbstractSpringDAOImpl { - - /** - * Create a new PoolReportHistoryDao without any configuration - */ - public PoolReportHistoryDao() { - super(PoolReportHistory.POOL_REPORT_HISTORY, org.cardanofoundation.ledgersync.jooq.tables.pojos.PoolReportHistory.class); - } - - /** - * Create a new PoolReportHistoryDao with an attached configuration - */ - @Autowired - public PoolReportHistoryDao(Configuration configuration) { - super(PoolReportHistory.POOL_REPORT_HISTORY, org.cardanofoundation.ledgersync.jooq.tables.pojos.PoolReportHistory.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.PoolReportHistory object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.PoolReportHistory fetchOneById(Long value) { - return fetchOne(PoolReportHistory.POOL_REPORT_HISTORY.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(PoolReportHistory.POOL_REPORT_HISTORY.ID, value); - } - - /** - * Fetch records that have pool_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfPoolId(String lowerInclusive, String upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.POOL_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have pool_id IN (values) - */ - public List fetchByPoolId(String... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.POOL_ID, values); - } - - /** - * Fetch records that have is_pool_size BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIsPoolSize(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.IS_POOL_SIZE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have is_pool_size IN (values) - */ - public List fetchByIsPoolSize(Boolean... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.IS_POOL_SIZE, values); - } - - /** - * Fetch records that have is_fees_paid BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIsFeesPaid(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.IS_FEES_PAID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have is_fees_paid IN (values) - */ - public List fetchByIsFeesPaid(Boolean... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.IS_FEES_PAID, values); - } - - /** - * Fetch records that have begin_epoch BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBeginEpoch(Integer lowerInclusive, Integer upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.BEGIN_EPOCH, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have begin_epoch IN (values) - */ - public List fetchByBeginEpoch(Integer... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.BEGIN_EPOCH, values); - } - - /** - * Fetch records that have end_epoch BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfEndEpoch(Integer lowerInclusive, Integer upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.END_EPOCH, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have end_epoch IN (values) - */ - public List fetchByEndEpoch(Integer... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.END_EPOCH, values); - } - - /** - * Fetch records that have report_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfReportId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.REPORT_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have report_id IN (values) - */ - public List fetchByReportId(Long... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.REPORT_ID, values); - } - - /** - * Fetch records that have event_registration BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfEventRegistration(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_REGISTRATION, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_registration IN (values) - */ - public List fetchByEventRegistration(Boolean... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_REGISTRATION, values); - } - - /** - * Fetch records that have event_deregistration BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfEventDeregistration(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_DEREGISTRATION, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_deregistration IN (values) - */ - public List fetchByEventDeregistration(Boolean... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_DEREGISTRATION, values); - } - - /** - * Fetch records that have event_reward BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfEventReward(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_REWARD, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_reward IN (values) - */ - public List fetchByEventReward(Boolean... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_REWARD, values); - } - - /** - * Fetch records that have event_pool_update BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfEventPoolUpdate(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_POOL_UPDATE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_pool_update IN (values) - */ - public List fetchByEventPoolUpdate(Boolean... values) { - return fetch(PoolReportHistory.POOL_REPORT_HISTORY.EVENT_POOL_UPDATE, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ReportHistoryDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ReportHistoryDao.java deleted file mode 100644 index 7891f391..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ReportHistoryDao.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.time.LocalDateTime; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.ReportHistory; -import org.cardanofoundation.ledgersync.jooq.tables.records.ReportHistoryRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class ReportHistoryDao extends AbstractSpringDAOImpl { - - /** - * Create a new ReportHistoryDao without any configuration - */ - public ReportHistoryDao() { - super(ReportHistory.REPORT_HISTORY, org.cardanofoundation.ledgersync.jooq.tables.pojos.ReportHistory.class); - } - - /** - * Create a new ReportHistoryDao with an attached configuration - */ - @Autowired - public ReportHistoryDao(Configuration configuration) { - super(ReportHistory.REPORT_HISTORY, org.cardanofoundation.ledgersync.jooq.tables.pojos.ReportHistory.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.ReportHistory object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(ReportHistory.REPORT_HISTORY.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.ReportHistory fetchOneById(Long value) { - return fetchOne(ReportHistory.REPORT_HISTORY.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(ReportHistory.REPORT_HISTORY.ID, value); - } - - /** - * Fetch records that have report_name BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfReportName(String lowerInclusive, String upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.REPORT_NAME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have report_name IN (values) - */ - public List fetchByReportName(String... values) { - return fetch(ReportHistory.REPORT_HISTORY.REPORT_NAME, values); - } - - /** - * Fetch records that have created_at BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfCreatedAt(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.CREATED_AT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have created_at IN (values) - */ - public List fetchByCreatedAt(LocalDateTime... values) { - return fetch(ReportHistory.REPORT_HISTORY.CREATED_AT, values); - } - - /** - * Fetch records that have username BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUsername(String lowerInclusive, String upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.USERNAME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have username IN (values) - */ - public List fetchByUsername(String... values) { - return fetch(ReportHistory.REPORT_HISTORY.USERNAME, values); - } - - /** - * Fetch records that have status BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfStatus(String lowerInclusive, String upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.STATUS, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have status IN (values) - */ - public List fetchByStatus(String... values) { - return fetch(ReportHistory.REPORT_HISTORY.STATUS, values); - } - - /** - * Fetch records that have type BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfType(String lowerInclusive, String upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.TYPE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have type IN (values) - */ - public List fetchByType(String... values) { - return fetch(ReportHistory.REPORT_HISTORY.TYPE, values); - } - - /** - * Fetch records that have storage_key BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfStorageKey(String lowerInclusive, String upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.STORAGE_KEY, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have storage_key IN (values) - */ - public List fetchByStorageKey(String... values) { - return fetch(ReportHistory.REPORT_HISTORY.STORAGE_KEY, values); - } - - /** - * Fetch a unique record that has storage_key = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.ReportHistory fetchOneByStorageKey(String value) { - return fetchOne(ReportHistory.REPORT_HISTORY.STORAGE_KEY, value); - } - - /** - * Fetch a unique record that has storage_key = value - */ - public Optional fetchOptionalByStorageKey(String value) { - return fetchOptional(ReportHistory.REPORT_HISTORY.STORAGE_KEY, value); - } - - /** - * Fetch records that have uploaded_at BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUploadedAt(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(ReportHistory.REPORT_HISTORY.UPLOADED_AT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have uploaded_at IN (values) - */ - public List fetchByUploadedAt(LocalDateTime... values) { - return fetch(ReportHistory.REPORT_HISTORY.UPLOADED_AT, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ScriptDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ScriptDao.java index 3f441a54..05f189ba 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ScriptDao.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/ScriptDao.java @@ -160,4 +160,19 @@ public List fetchRang public List fetchByTxId(Long... values) { return fetch(Script.SCRIPT.TX_ID, values); } + + /** + * Fetch records that have verified BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfVerified(Boolean lowerInclusive, Boolean upperInclusive) { + return fetchRange(Script.SCRIPT.VERIFIED, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have verified IN (values) + */ + public List fetchByVerified(Boolean... values) { + return fetch(Script.SCRIPT.VERIFIED, values); + } } diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/StakeKeyReportHistoryDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/StakeKeyReportHistoryDao.java deleted file mode 100644 index a0795c9f..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/StakeKeyReportHistoryDao.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.time.LocalDateTime; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.StakeKeyReportHistory; -import org.cardanofoundation.ledgersync.jooq.tables.records.StakeKeyReportHistoryRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class StakeKeyReportHistoryDao extends AbstractSpringDAOImpl { - - /** - * Create a new StakeKeyReportHistoryDao without any configuration - */ - public StakeKeyReportHistoryDao() { - super(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeKeyReportHistory.class); - } - - /** - * Create a new StakeKeyReportHistoryDao with an attached configuration - */ - @Autowired - public StakeKeyReportHistoryDao(Configuration configuration) { - super(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY, org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeKeyReportHistory.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeKeyReportHistory object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeKeyReportHistory fetchOneById(Long value) { - return fetchOne(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.ID, value); - } - - /** - * Fetch records that have stake_key BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfStakeKey(String lowerInclusive, String upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.STAKE_KEY, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have stake_key IN (values) - */ - public List fetchByStakeKey(String... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.STAKE_KEY, values); - } - - /** - * Fetch records that have from_date BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfFromDate(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.FROM_DATE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have from_date IN (values) - */ - public List fetchByFromDate(LocalDateTime... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.FROM_DATE, values); - } - - /** - * Fetch records that have to_date BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfToDate(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.TO_DATE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have to_date IN (values) - */ - public List fetchByToDate(LocalDateTime... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.TO_DATE, values); - } - - /** - * Fetch records that have is_ada_transfer BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIsAdaTransfer(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.IS_ADA_TRANSFER, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have is_ada_transfer IN (values) - */ - public List fetchByIsAdaTransfer(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.IS_ADA_TRANSFER, values); - } - - /** - * Fetch records that have is_fees_paid BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIsFeesPaid(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.IS_FEES_PAID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have is_fees_paid IN (values) - */ - public List fetchByIsFeesPaid(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.IS_FEES_PAID, values); - } - - /** - * Fetch records that have report_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfReportId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.REPORT_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have report_id IN (values) - */ - public List fetchByReportId(Long... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.REPORT_ID, values); - } - - /** - * Fetch records that have event_registration BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfEventRegistration(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_REGISTRATION, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_registration IN (values) - */ - public List fetchByEventRegistration(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_REGISTRATION, values); - } - - /** - * Fetch records that have event_delegation BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfEventDelegation(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_DELEGATION, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_delegation IN (values) - */ - public List fetchByEventDelegation(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_DELEGATION, values); - } - - /** - * Fetch records that have event_rewards BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfEventRewards(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_REWARDS, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_rewards IN (values) - */ - public List fetchByEventRewards(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_REWARDS, values); - } - - /** - * Fetch records that have event_withdrawal BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfEventWithdrawal(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_WITHDRAWAL, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_withdrawal IN (values) - */ - public List fetchByEventWithdrawal(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_WITHDRAWAL, values); - } - - /** - * Fetch records that have event_deregistration BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfEventDeregistration(Boolean lowerInclusive, Boolean upperInclusive) { - return fetchRange(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_DEREGISTRATION, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have event_deregistration IN (values) - */ - public List fetchByEventDeregistration(Boolean... values) { - return fetch(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_DEREGISTRATION, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/StakeTxBalanceDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/StakeTxBalanceDao.java deleted file mode 100644 index 3ec0fb48..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/StakeTxBalanceDao.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.time.LocalDateTime; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.StakeTxBalance; -import org.cardanofoundation.ledgersync.jooq.tables.records.StakeTxBalanceRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class StakeTxBalanceDao extends AbstractSpringDAOImpl { - - /** - * Create a new StakeTxBalanceDao without any configuration - */ - public StakeTxBalanceDao() { - super(StakeTxBalance.STAKE_TX_BALANCE, org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeTxBalance.class); - } - - /** - * Create a new StakeTxBalanceDao with an attached configuration - */ - @Autowired - public StakeTxBalanceDao(Configuration configuration) { - super(StakeTxBalance.STAKE_TX_BALANCE, org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeTxBalance.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeTxBalance object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(StakeTxBalance.STAKE_TX_BALANCE.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(StakeTxBalance.STAKE_TX_BALANCE.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeTxBalance fetchOneById(Long value) { - return fetchOne(StakeTxBalance.STAKE_TX_BALANCE.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(StakeTxBalance.STAKE_TX_BALANCE.ID, value); - } - - /** - * Fetch records that have stake_address_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfStakeAddressId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(StakeTxBalance.STAKE_TX_BALANCE.STAKE_ADDRESS_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have stake_address_id IN (values) - */ - public List fetchByStakeAddressId(Long... values) { - return fetch(StakeTxBalance.STAKE_TX_BALANCE.STAKE_ADDRESS_ID, values); - } - - /** - * Fetch records that have tx_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfTxId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(StakeTxBalance.STAKE_TX_BALANCE.TX_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have tx_id IN (values) - */ - public List fetchByTxId(Long... values) { - return fetch(StakeTxBalance.STAKE_TX_BALANCE.TX_ID, values); - } - - /** - * Fetch records that have balance_change BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBalanceChange(Long lowerInclusive, Long upperInclusive) { - return fetchRange(StakeTxBalance.STAKE_TX_BALANCE.BALANCE_CHANGE, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have balance_change IN (values) - */ - public List fetchByBalanceChange(Long... values) { - return fetch(StakeTxBalance.STAKE_TX_BALANCE.BALANCE_CHANGE, values); - } - - /** - * Fetch records that have time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(StakeTxBalance.STAKE_TX_BALANCE.TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have time IN (values) - */ - public List fetchByTime(LocalDateTime... values) { - return fetch(StakeTxBalance.STAKE_TX_BALANCE.TIME, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TokenInfoCheckpointDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TokenInfoCheckpointDao.java deleted file mode 100644 index a7cd6f7e..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TokenInfoCheckpointDao.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.time.LocalDateTime; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfoCheckpoint; -import org.cardanofoundation.ledgersync.jooq.tables.records.TokenInfoCheckpointRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class TokenInfoCheckpointDao extends AbstractSpringDAOImpl { - - /** - * Create a new TokenInfoCheckpointDao without any configuration - */ - public TokenInfoCheckpointDao() { - super(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT, org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfoCheckpoint.class); - } - - /** - * Create a new TokenInfoCheckpointDao with an attached configuration - */ - @Autowired - public TokenInfoCheckpointDao(Configuration configuration) { - super(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT, org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfoCheckpoint.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfoCheckpoint object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfoCheckpoint fetchOneById(Long value) { - return fetchOne(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.ID, value); - } - - /** - * Fetch records that have block_no BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBlockNo(Long lowerInclusive, Long upperInclusive) { - return fetchRange(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.BLOCK_NO, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have block_no IN (values) - */ - public List fetchByBlockNo(Long... values) { - return fetch(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.BLOCK_NO, values); - } - - /** - * Fetch records that have update_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.UPDATE_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have update_time IN (values) - */ - public List fetchByUpdateTime(LocalDateTime... values) { - return fetch(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.UPDATE_TIME, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TokenInfoDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TokenInfoDao.java deleted file mode 100644 index f3c1d70e..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TokenInfoDao.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.daos; - - -import java.math.BigInteger; -import java.time.LocalDateTime; -import java.util.List; -import java.util.Optional; - -import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfo; -import org.cardanofoundation.ledgersync.jooq.tables.records.TokenInfoRecord; -import org.jooq.Configuration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Repository; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -@Repository -public class TokenInfoDao extends AbstractSpringDAOImpl { - - /** - * Create a new TokenInfoDao without any configuration - */ - public TokenInfoDao() { - super(TokenInfo.TOKEN_INFO, org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfo.class); - } - - /** - * Create a new TokenInfoDao with an attached configuration - */ - @Autowired - public TokenInfoDao(Configuration configuration) { - super(TokenInfo.TOKEN_INFO, org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfo.class, configuration); - } - - @Override - public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfo object) { - return object.getId(); - } - - /** - * Fetch records that have id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(TokenInfo.TOKEN_INFO.ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have id IN (values) - */ - public List fetchById(Long... values) { - return fetch(TokenInfo.TOKEN_INFO.ID, values); - } - - /** - * Fetch a unique record that has id = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfo fetchOneById(Long value) { - return fetchOne(TokenInfo.TOKEN_INFO.ID, value); - } - - /** - * Fetch a unique record that has id = value - */ - public Optional fetchOptionalById(Long value) { - return fetchOptional(TokenInfo.TOKEN_INFO.ID, value); - } - - /** - * Fetch records that have ident BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIdent(Long lowerInclusive, Long upperInclusive) { - return fetchRange(TokenInfo.TOKEN_INFO.IDENT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have ident IN (values) - */ - public List fetchByIdent(Long... values) { - return fetch(TokenInfo.TOKEN_INFO.IDENT, values); - } - - /** - * Fetch a unique record that has ident = value - */ - public org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfo fetchOneByIdent(Long value) { - return fetchOne(TokenInfo.TOKEN_INFO.IDENT, value); - } - - /** - * Fetch a unique record that has ident = value - */ - public Optional fetchOptionalByIdent(Long value) { - return fetchOptional(TokenInfo.TOKEN_INFO.IDENT, value); - } - - /** - * Fetch records that have number_of_holders BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfNumberOfHolders(Long lowerInclusive, Long upperInclusive) { - return fetchRange(TokenInfo.TOKEN_INFO.NUMBER_OF_HOLDERS, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have number_of_holders IN (values) - */ - public List fetchByNumberOfHolders(Long... values) { - return fetch(TokenInfo.TOKEN_INFO.NUMBER_OF_HOLDERS, values); - } - - /** - * Fetch records that have volume_24h BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfVolume_24h(BigInteger lowerInclusive, BigInteger upperInclusive) { - return fetchRange(TokenInfo.TOKEN_INFO.VOLUME_24H, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have volume_24h IN (values) - */ - public List fetchByVolume_24h(BigInteger... values) { - return fetch(TokenInfo.TOKEN_INFO.VOLUME_24H, values); - } - - /** - * Fetch records that have block_no BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfBlockNo(Long lowerInclusive, Long upperInclusive) { - return fetchRange(TokenInfo.TOKEN_INFO.BLOCK_NO, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have block_no IN (values) - */ - public List fetchByBlockNo(Long... values) { - return fetch(TokenInfo.TOKEN_INFO.BLOCK_NO, values); - } - - /** - * Fetch records that have update_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(TokenInfo.TOKEN_INFO.UPDATE_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have update_time IN (values) - */ - public List fetchByUpdateTime(LocalDateTime... values) { - return fetch(TokenInfo.TOKEN_INFO.UPDATE_TIME, values); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TxBootstrapWitnessesDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TxBootstrapWitnessesDao.java new file mode 100644 index 00000000..da32b194 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TxBootstrapWitnessesDao.java @@ -0,0 +1,148 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; +import org.cardanofoundation.ledgersync.jooq.tables.TxBootstrapWitnesses; +import org.cardanofoundation.ledgersync.jooq.tables.records.TxBootstrapWitnessesRecord; +import org.jooq.Configuration; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class TxBootstrapWitnessesDao extends AbstractSpringDAOImpl { + + /** + * Create a new TxBootstrapWitnessesDao without any configuration + */ + public TxBootstrapWitnessesDao() { + super(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES, org.cardanofoundation.ledgersync.jooq.tables.pojos.TxBootstrapWitnesses.class); + } + + /** + * Create a new TxBootstrapWitnessesDao with an attached configuration + */ + @Autowired + public TxBootstrapWitnessesDao(Configuration configuration) { + super(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES, org.cardanofoundation.ledgersync.jooq.tables.pojos.TxBootstrapWitnesses.class, configuration); + } + + @Override + public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.TxBootstrapWitnesses object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(Long... values) { + return fetch(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public org.cardanofoundation.ledgersync.jooq.tables.pojos.TxBootstrapWitnesses fetchOneById(Long value) { + return fetchOne(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(Long value) { + return fetchOptional(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ID, value); + } + + /** + * Fetch records that have tx_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTxId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.TX_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have tx_id IN (values) + */ + public List fetchByTxId(Long... values) { + return fetch(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.TX_ID, values); + } + + /** + * Fetch records that have public_key BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPublicKey(String lowerInclusive, String upperInclusive) { + return fetchRange(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.PUBLIC_KEY, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have public_key IN (values) + */ + public List fetchByPublicKey(String... values) { + return fetch(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.PUBLIC_KEY, values); + } + + /** + * Fetch records that have signature BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSignature(String lowerInclusive, String upperInclusive) { + return fetchRange(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.SIGNATURE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have signature IN (values) + */ + public List fetchBySignature(String... values) { + return fetch(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.SIGNATURE, values); + } + + /** + * Fetch records that have chain_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfChainCode(String lowerInclusive, String upperInclusive) { + return fetchRange(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.CHAIN_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have chain_code IN (values) + */ + public List fetchByChainCode(String... values) { + return fetch(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.CHAIN_CODE, values); + } + + /** + * Fetch records that have attributes BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAttributes(String lowerInclusive, String upperInclusive) { + return fetchRange(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ATTRIBUTES, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have attributes IN (values) + */ + public List fetchByAttributes(String... values) { + return fetch(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ATTRIBUTES, values); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TxWitnessesDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TxWitnessesDao.java new file mode 100644 index 00000000..11c353dd --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/TxWitnessesDao.java @@ -0,0 +1,163 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import org.cardanofoundation.ledgersync.jooq.AbstractSpringDAOImpl; +import org.cardanofoundation.ledgersync.jooq.tables.TxWitnesses; +import org.cardanofoundation.ledgersync.jooq.tables.records.TxWitnessesRecord; +import org.jooq.Configuration; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class TxWitnessesDao extends AbstractSpringDAOImpl { + + /** + * Create a new TxWitnessesDao without any configuration + */ + public TxWitnessesDao() { + super(TxWitnesses.TX_WITNESSES, org.cardanofoundation.ledgersync.jooq.tables.pojos.TxWitnesses.class); + } + + /** + * Create a new TxWitnessesDao with an attached configuration + */ + @Autowired + public TxWitnessesDao(Configuration configuration) { + super(TxWitnesses.TX_WITNESSES, org.cardanofoundation.ledgersync.jooq.tables.pojos.TxWitnesses.class, configuration); + } + + @Override + public Long getId(org.cardanofoundation.ledgersync.jooq.tables.pojos.TxWitnesses object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(Long... values) { + return fetch(TxWitnesses.TX_WITNESSES.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public org.cardanofoundation.ledgersync.jooq.tables.pojos.TxWitnesses fetchOneById(Long value) { + return fetchOne(TxWitnesses.TX_WITNESSES.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(Long value) { + return fetchOptional(TxWitnesses.TX_WITNESSES.ID, value); + } + + /** + * Fetch records that have tx_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTxId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.TX_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have tx_id IN (values) + */ + public List fetchByTxId(Long... values) { + return fetch(TxWitnesses.TX_WITNESSES.TX_ID, values); + } + + /** + * Fetch records that have key BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfKey(String lowerInclusive, String upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.KEY, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have key IN (values) + */ + public List fetchByKey(String... values) { + return fetch(TxWitnesses.TX_WITNESSES.KEY, values); + } + + /** + * Fetch records that have signature BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSignature(String lowerInclusive, String upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.SIGNATURE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have signature IN (values) + */ + public List fetchBySignature(String... values) { + return fetch(TxWitnesses.TX_WITNESSES.SIGNATURE, values); + } + + /** + * Fetch records that have index_arr BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIndexArr(Integer[] lowerInclusive, Integer[] upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.INDEX_ARR, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have index_arr IN (values) + */ + public List fetchByIndexArr(Integer[]... values) { + return fetch(TxWitnesses.TX_WITNESSES.INDEX_ARR, values); + } + + /** + * Fetch records that have index_arr_size BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIndexArrSize(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.INDEX_ARR_SIZE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have index_arr_size IN (values) + */ + public List fetchByIndexArrSize(Integer... values) { + return fetch(TxWitnesses.TX_WITNESSES.INDEX_ARR_SIZE, values); + } + + /** + * Fetch records that have type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfType(String lowerInclusive, String upperInclusive) { + return fetchRange(TxWitnesses.TX_WITNESSES.TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have type IN (values) + */ + public List fetchByType(String... values) { + return fetch(TxWitnesses.TX_WITNESSES.TYPE, values); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/UnconsumeTxInDao.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/UnconsumeTxInDao.java index 53a88db0..956cc594 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/UnconsumeTxInDao.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/daos/UnconsumeTxInDao.java @@ -115,4 +115,19 @@ public List fe public List fetchByTxOutId(Long... values) { return fetch(UnconsumeTxIn.UNCONSUME_TX_IN.TX_OUT_ID, values); } + + /** + * Fetch records that have redeemer_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRedeemerId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(UnconsumeTxIn.UNCONSUME_TX_IN.REDEEMER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have redeemer_id IN (values) + */ + public List fetchByRedeemerId(Long... values) { + return fetch(UnconsumeTxIn.UNCONSUME_TX_IN.REDEEMER_ID, values); + } } diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggAddressToken.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggAddressToken.java deleted file mode 100644 index c8c4e1a5..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggAddressToken.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.math.BigInteger; -import java.time.LocalDate; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggAddressToken implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private BigInteger balance; - private Long ident; - private LocalDate day; - - public AggAddressToken() {} - - public AggAddressToken(AggAddressToken value) { - this.id = value.id; - this.balance = value.balance; - this.ident = value.ident; - this.day = value.day; - } - - public AggAddressToken( - Long id, - BigInteger balance, - Long ident, - LocalDate day - ) { - this.id = id; - this.balance = balance; - this.ident = ident; - this.day = day; - } - - /** - * Getter for agg_address_token.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for agg_address_token.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for agg_address_token.balance. - */ - public BigInteger getBalance() { - return this.balance; - } - - /** - * Setter for agg_address_token.balance. - */ - public void setBalance(BigInteger balance) { - this.balance = balance; - } - - /** - * Getter for agg_address_token.ident. - */ - public Long getIdent() { - return this.ident; - } - - /** - * Setter for agg_address_token.ident. - */ - public void setIdent(Long ident) { - this.ident = ident; - } - - /** - * Getter for agg_address_token.day. - */ - public LocalDate getDay() { - return this.day; - } - - /** - * Setter for agg_address_token.day. - */ - public void setDay(LocalDate day) { - this.day = day; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final AggAddressToken other = (AggAddressToken) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.balance == null) { - if (other.balance != null) - return false; - } - else if (!this.balance.equals(other.balance)) - return false; - if (this.ident == null) { - if (other.ident != null) - return false; - } - else if (!this.ident.equals(other.ident)) - return false; - if (this.day == null) { - if (other.day != null) - return false; - } - else if (!this.day.equals(other.day)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.balance == null) ? 0 : this.balance.hashCode()); - result = prime * result + ((this.ident == null) ? 0 : this.ident.hashCode()); - result = prime * result + ((this.day == null) ? 0 : this.day.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("AggAddressToken ("); - - sb.append(id); - sb.append(", ").append(balance); - sb.append(", ").append(ident); - sb.append(", ").append(day); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggAddressTxBalance.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggAddressTxBalance.java deleted file mode 100644 index d0d8c853..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggAddressTxBalance.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.math.BigInteger; -import java.time.LocalDate; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggAddressTxBalance implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private Long stakeAddressId; - private Long addressId; - private BigInteger balance; - private LocalDate day; - - public AggAddressTxBalance() {} - - public AggAddressTxBalance(AggAddressTxBalance value) { - this.id = value.id; - this.stakeAddressId = value.stakeAddressId; - this.addressId = value.addressId; - this.balance = value.balance; - this.day = value.day; - } - - public AggAddressTxBalance( - Long id, - Long stakeAddressId, - Long addressId, - BigInteger balance, - LocalDate day - ) { - this.id = id; - this.stakeAddressId = stakeAddressId; - this.addressId = addressId; - this.balance = balance; - this.day = day; - } - - /** - * Getter for agg_address_tx_balance.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for agg_address_tx_balance.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for agg_address_tx_balance.stake_address_id. - */ - public Long getStakeAddressId() { - return this.stakeAddressId; - } - - /** - * Setter for agg_address_tx_balance.stake_address_id. - */ - public void setStakeAddressId(Long stakeAddressId) { - this.stakeAddressId = stakeAddressId; - } - - /** - * Getter for agg_address_tx_balance.address_id. - */ - public Long getAddressId() { - return this.addressId; - } - - /** - * Setter for agg_address_tx_balance.address_id. - */ - public void setAddressId(Long addressId) { - this.addressId = addressId; - } - - /** - * Getter for agg_address_tx_balance.balance. - */ - public BigInteger getBalance() { - return this.balance; - } - - /** - * Setter for agg_address_tx_balance.balance. - */ - public void setBalance(BigInteger balance) { - this.balance = balance; - } - - /** - * Getter for agg_address_tx_balance.day. - */ - public LocalDate getDay() { - return this.day; - } - - /** - * Setter for agg_address_tx_balance.day. - */ - public void setDay(LocalDate day) { - this.day = day; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final AggAddressTxBalance other = (AggAddressTxBalance) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.stakeAddressId == null) { - if (other.stakeAddressId != null) - return false; - } - else if (!this.stakeAddressId.equals(other.stakeAddressId)) - return false; - if (this.addressId == null) { - if (other.addressId != null) - return false; - } - else if (!this.addressId.equals(other.addressId)) - return false; - if (this.balance == null) { - if (other.balance != null) - return false; - } - else if (!this.balance.equals(other.balance)) - return false; - if (this.day == null) { - if (other.day != null) - return false; - } - else if (!this.day.equals(other.day)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.stakeAddressId == null) ? 0 : this.stakeAddressId.hashCode()); - result = prime * result + ((this.addressId == null) ? 0 : this.addressId.hashCode()); - result = prime * result + ((this.balance == null) ? 0 : this.balance.hashCode()); - result = prime * result + ((this.day == null) ? 0 : this.day.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("AggAddressTxBalance ("); - - sb.append(id); - sb.append(", ").append(stakeAddressId); - sb.append(", ").append(addressId); - sb.append(", ").append(balance); - sb.append(", ").append(day); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggPoolInfo.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggPoolInfo.java deleted file mode 100644 index 7072f0af..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AggPoolInfo.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggPoolInfo implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private Long poolId; - private Long blockInEpoch; - private Long blockLifeTime; - private Long delegatorCnt; - private Long blockCheckPoint; - private LocalDateTime updateTime; - - public AggPoolInfo() {} - - public AggPoolInfo(AggPoolInfo value) { - this.id = value.id; - this.poolId = value.poolId; - this.blockInEpoch = value.blockInEpoch; - this.blockLifeTime = value.blockLifeTime; - this.delegatorCnt = value.delegatorCnt; - this.blockCheckPoint = value.blockCheckPoint; - this.updateTime = value.updateTime; - } - - public AggPoolInfo( - Long id, - Long poolId, - Long blockInEpoch, - Long blockLifeTime, - Long delegatorCnt, - Long blockCheckPoint, - LocalDateTime updateTime - ) { - this.id = id; - this.poolId = poolId; - this.blockInEpoch = blockInEpoch; - this.blockLifeTime = blockLifeTime; - this.delegatorCnt = delegatorCnt; - this.blockCheckPoint = blockCheckPoint; - this.updateTime = updateTime; - } - - /** - * Getter for agg_pool_info.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for agg_pool_info.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for agg_pool_info.pool_id. - */ - public Long getPoolId() { - return this.poolId; - } - - /** - * Setter for agg_pool_info.pool_id. - */ - public void setPoolId(Long poolId) { - this.poolId = poolId; - } - - /** - * Getter for agg_pool_info.block_in_epoch. - */ - public Long getBlockInEpoch() { - return this.blockInEpoch; - } - - /** - * Setter for agg_pool_info.block_in_epoch. - */ - public void setBlockInEpoch(Long blockInEpoch) { - this.blockInEpoch = blockInEpoch; - } - - /** - * Getter for agg_pool_info.block_life_time. - */ - public Long getBlockLifeTime() { - return this.blockLifeTime; - } - - /** - * Setter for agg_pool_info.block_life_time. - */ - public void setBlockLifeTime(Long blockLifeTime) { - this.blockLifeTime = blockLifeTime; - } - - /** - * Getter for agg_pool_info.delegator_cnt. - */ - public Long getDelegatorCnt() { - return this.delegatorCnt; - } - - /** - * Setter for agg_pool_info.delegator_cnt. - */ - public void setDelegatorCnt(Long delegatorCnt) { - this.delegatorCnt = delegatorCnt; - } - - /** - * Getter for agg_pool_info.block_check_point. - */ - public Long getBlockCheckPoint() { - return this.blockCheckPoint; - } - - /** - * Setter for agg_pool_info.block_check_point. - */ - public void setBlockCheckPoint(Long blockCheckPoint) { - this.blockCheckPoint = blockCheckPoint; - } - - /** - * Getter for agg_pool_info.update_time. - */ - public LocalDateTime getUpdateTime() { - return this.updateTime; - } - - /** - * Setter for agg_pool_info.update_time. - */ - public void setUpdateTime(LocalDateTime updateTime) { - this.updateTime = updateTime; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final AggPoolInfo other = (AggPoolInfo) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.poolId == null) { - if (other.poolId != null) - return false; - } - else if (!this.poolId.equals(other.poolId)) - return false; - if (this.blockInEpoch == null) { - if (other.blockInEpoch != null) - return false; - } - else if (!this.blockInEpoch.equals(other.blockInEpoch)) - return false; - if (this.blockLifeTime == null) { - if (other.blockLifeTime != null) - return false; - } - else if (!this.blockLifeTime.equals(other.blockLifeTime)) - return false; - if (this.delegatorCnt == null) { - if (other.delegatorCnt != null) - return false; - } - else if (!this.delegatorCnt.equals(other.delegatorCnt)) - return false; - if (this.blockCheckPoint == null) { - if (other.blockCheckPoint != null) - return false; - } - else if (!this.blockCheckPoint.equals(other.blockCheckPoint)) - return false; - if (this.updateTime == null) { - if (other.updateTime != null) - return false; - } - else if (!this.updateTime.equals(other.updateTime)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.poolId == null) ? 0 : this.poolId.hashCode()); - result = prime * result + ((this.blockInEpoch == null) ? 0 : this.blockInEpoch.hashCode()); - result = prime * result + ((this.blockLifeTime == null) ? 0 : this.blockLifeTime.hashCode()); - result = prime * result + ((this.delegatorCnt == null) ? 0 : this.delegatorCnt.hashCode()); - result = prime * result + ((this.blockCheckPoint == null) ? 0 : this.blockCheckPoint.hashCode()); - result = prime * result + ((this.updateTime == null) ? 0 : this.updateTime.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("AggPoolInfo ("); - - sb.append(id); - sb.append(", ").append(poolId); - sb.append(", ").append(blockInEpoch); - sb.append(", ").append(blockLifeTime); - sb.append(", ").append(delegatorCnt); - sb.append(", ").append(blockCheckPoint); - sb.append(", ").append(updateTime); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AssetMetadata.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AssetMetadata.java deleted file mode 100644 index e088d7a2..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/AssetMetadata.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AssetMetadata implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private Integer decimals; - private String description; - private String logo; - private String name; - private String policy; - private String subject; - private String ticker; - private String url; - private Long ident; - private String logoHash; - - public AssetMetadata() {} - - public AssetMetadata(AssetMetadata value) { - this.id = value.id; - this.decimals = value.decimals; - this.description = value.description; - this.logo = value.logo; - this.name = value.name; - this.policy = value.policy; - this.subject = value.subject; - this.ticker = value.ticker; - this.url = value.url; - this.ident = value.ident; - this.logoHash = value.logoHash; - } - - public AssetMetadata( - Long id, - Integer decimals, - String description, - String logo, - String name, - String policy, - String subject, - String ticker, - String url, - Long ident, - String logoHash - ) { - this.id = id; - this.decimals = decimals; - this.description = description; - this.logo = logo; - this.name = name; - this.policy = policy; - this.subject = subject; - this.ticker = ticker; - this.url = url; - this.ident = ident; - this.logoHash = logoHash; - } - - /** - * Getter for asset_metadata.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for asset_metadata.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for asset_metadata.decimals. - */ - public Integer getDecimals() { - return this.decimals; - } - - /** - * Setter for asset_metadata.decimals. - */ - public void setDecimals(Integer decimals) { - this.decimals = decimals; - } - - /** - * Getter for asset_metadata.description. - */ - public String getDescription() { - return this.description; - } - - /** - * Setter for asset_metadata.description. - */ - public void setDescription(String description) { - this.description = description; - } - - /** - * Getter for asset_metadata.logo. - */ - public String getLogo() { - return this.logo; - } - - /** - * Setter for asset_metadata.logo. - */ - public void setLogo(String logo) { - this.logo = logo; - } - - /** - * Getter for asset_metadata.name. - */ - public String getName() { - return this.name; - } - - /** - * Setter for asset_metadata.name. - */ - public void setName(String name) { - this.name = name; - } - - /** - * Getter for asset_metadata.policy. - */ - public String getPolicy() { - return this.policy; - } - - /** - * Setter for asset_metadata.policy. - */ - public void setPolicy(String policy) { - this.policy = policy; - } - - /** - * Getter for asset_metadata.subject. - */ - public String getSubject() { - return this.subject; - } - - /** - * Setter for asset_metadata.subject. - */ - public void setSubject(String subject) { - this.subject = subject; - } - - /** - * Getter for asset_metadata.ticker. - */ - public String getTicker() { - return this.ticker; - } - - /** - * Setter for asset_metadata.ticker. - */ - public void setTicker(String ticker) { - this.ticker = ticker; - } - - /** - * Getter for asset_metadata.url. - */ - public String getUrl() { - return this.url; - } - - /** - * Setter for asset_metadata.url. - */ - public void setUrl(String url) { - this.url = url; - } - - /** - * Getter for asset_metadata.ident. - */ - public Long getIdent() { - return this.ident; - } - - /** - * Setter for asset_metadata.ident. - */ - public void setIdent(Long ident) { - this.ident = ident; - } - - /** - * Getter for asset_metadata.logo_hash. - */ - public String getLogoHash() { - return this.logoHash; - } - - /** - * Setter for asset_metadata.logo_hash. - */ - public void setLogoHash(String logoHash) { - this.logoHash = logoHash; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final AssetMetadata other = (AssetMetadata) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.decimals == null) { - if (other.decimals != null) - return false; - } - else if (!this.decimals.equals(other.decimals)) - return false; - if (this.description == null) { - if (other.description != null) - return false; - } - else if (!this.description.equals(other.description)) - return false; - if (this.logo == null) { - if (other.logo != null) - return false; - } - else if (!this.logo.equals(other.logo)) - return false; - if (this.name == null) { - if (other.name != null) - return false; - } - else if (!this.name.equals(other.name)) - return false; - if (this.policy == null) { - if (other.policy != null) - return false; - } - else if (!this.policy.equals(other.policy)) - return false; - if (this.subject == null) { - if (other.subject != null) - return false; - } - else if (!this.subject.equals(other.subject)) - return false; - if (this.ticker == null) { - if (other.ticker != null) - return false; - } - else if (!this.ticker.equals(other.ticker)) - return false; - if (this.url == null) { - if (other.url != null) - return false; - } - else if (!this.url.equals(other.url)) - return false; - if (this.ident == null) { - if (other.ident != null) - return false; - } - else if (!this.ident.equals(other.ident)) - return false; - if (this.logoHash == null) { - if (other.logoHash != null) - return false; - } - else if (!this.logoHash.equals(other.logoHash)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.decimals == null) ? 0 : this.decimals.hashCode()); - result = prime * result + ((this.description == null) ? 0 : this.description.hashCode()); - result = prime * result + ((this.logo == null) ? 0 : this.logo.hashCode()); - result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); - result = prime * result + ((this.policy == null) ? 0 : this.policy.hashCode()); - result = prime * result + ((this.subject == null) ? 0 : this.subject.hashCode()); - result = prime * result + ((this.ticker == null) ? 0 : this.ticker.hashCode()); - result = prime * result + ((this.url == null) ? 0 : this.url.hashCode()); - result = prime * result + ((this.ident == null) ? 0 : this.ident.hashCode()); - result = prime * result + ((this.logoHash == null) ? 0 : this.logoHash.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("AssetMetadata ("); - - sb.append(id); - sb.append(", ").append(decimals); - sb.append(", ").append(description); - sb.append(", ").append(logo); - sb.append(", ").append(name); - sb.append(", ").append(policy); - sb.append(", ").append(subject); - sb.append(", ").append(ticker); - sb.append(", ").append(url); - sb.append(", ").append(ident); - sb.append(", ").append(logoHash); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Cursor_.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Cursor_.java new file mode 100644 index 00000000..af756b22 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Cursor_.java @@ -0,0 +1,264 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Cursor_ implements Serializable { + + private static final long serialVersionUID = 1L; + + private Integer id; + private String blockHash; + private Long slot; + private Long blockNumber; + private Integer era; + private String prevBlockHash; + private LocalDateTime createDatetime; + private LocalDateTime updateDatetime; + + public Cursor_() {} + + public Cursor_(Cursor_ value) { + this.id = value.id; + this.blockHash = value.blockHash; + this.slot = value.slot; + this.blockNumber = value.blockNumber; + this.era = value.era; + this.prevBlockHash = value.prevBlockHash; + this.createDatetime = value.createDatetime; + this.updateDatetime = value.updateDatetime; + } + + public Cursor_( + Integer id, + String blockHash, + Long slot, + Long blockNumber, + Integer era, + String prevBlockHash, + LocalDateTime createDatetime, + LocalDateTime updateDatetime + ) { + this.id = id; + this.blockHash = blockHash; + this.slot = slot; + this.blockNumber = blockNumber; + this.era = era; + this.prevBlockHash = prevBlockHash; + this.createDatetime = createDatetime; + this.updateDatetime = updateDatetime; + } + + /** + * Getter for cursor_.id. + */ + public Integer getId() { + return this.id; + } + + /** + * Setter for cursor_.id. + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Getter for cursor_.block_hash. + */ + public String getBlockHash() { + return this.blockHash; + } + + /** + * Setter for cursor_.block_hash. + */ + public void setBlockHash(String blockHash) { + this.blockHash = blockHash; + } + + /** + * Getter for cursor_.slot. + */ + public Long getSlot() { + return this.slot; + } + + /** + * Setter for cursor_.slot. + */ + public void setSlot(Long slot) { + this.slot = slot; + } + + /** + * Getter for cursor_.block_number. + */ + public Long getBlockNumber() { + return this.blockNumber; + } + + /** + * Setter for cursor_.block_number. + */ + public void setBlockNumber(Long blockNumber) { + this.blockNumber = blockNumber; + } + + /** + * Getter for cursor_.era. + */ + public Integer getEra() { + return this.era; + } + + /** + * Setter for cursor_.era. + */ + public void setEra(Integer era) { + this.era = era; + } + + /** + * Getter for cursor_.prev_block_hash. + */ + public String getPrevBlockHash() { + return this.prevBlockHash; + } + + /** + * Setter for cursor_.prev_block_hash. + */ + public void setPrevBlockHash(String prevBlockHash) { + this.prevBlockHash = prevBlockHash; + } + + /** + * Getter for cursor_.create_datetime. + */ + public LocalDateTime getCreateDatetime() { + return this.createDatetime; + } + + /** + * Setter for cursor_.create_datetime. + */ + public void setCreateDatetime(LocalDateTime createDatetime) { + this.createDatetime = createDatetime; + } + + /** + * Getter for cursor_.update_datetime. + */ + public LocalDateTime getUpdateDatetime() { + return this.updateDatetime; + } + + /** + * Setter for cursor_.update_datetime. + */ + public void setUpdateDatetime(LocalDateTime updateDatetime) { + this.updateDatetime = updateDatetime; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final Cursor_ other = (Cursor_) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.blockHash == null) { + if (other.blockHash != null) + return false; + } + else if (!this.blockHash.equals(other.blockHash)) + return false; + if (this.slot == null) { + if (other.slot != null) + return false; + } + else if (!this.slot.equals(other.slot)) + return false; + if (this.blockNumber == null) { + if (other.blockNumber != null) + return false; + } + else if (!this.blockNumber.equals(other.blockNumber)) + return false; + if (this.era == null) { + if (other.era != null) + return false; + } + else if (!this.era.equals(other.era)) + return false; + if (this.prevBlockHash == null) { + if (other.prevBlockHash != null) + return false; + } + else if (!this.prevBlockHash.equals(other.prevBlockHash)) + return false; + if (this.createDatetime == null) { + if (other.createDatetime != null) + return false; + } + else if (!this.createDatetime.equals(other.createDatetime)) + return false; + if (this.updateDatetime == null) { + if (other.updateDatetime != null) + return false; + } + else if (!this.updateDatetime.equals(other.updateDatetime)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.blockHash == null) ? 0 : this.blockHash.hashCode()); + result = prime * result + ((this.slot == null) ? 0 : this.slot.hashCode()); + result = prime * result + ((this.blockNumber == null) ? 0 : this.blockNumber.hashCode()); + result = prime * result + ((this.era == null) ? 0 : this.era.hashCode()); + result = prime * result + ((this.prevBlockHash == null) ? 0 : this.prevBlockHash.hashCode()); + result = prime * result + ((this.createDatetime == null) ? 0 : this.createDatetime.hashCode()); + result = prime * result + ((this.updateDatetime == null) ? 0 : this.updateDatetime.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("Cursor_ ("); + + sb.append(id); + sb.append(", ").append(blockHash); + sb.append(", ").append(slot); + sb.append(", ").append(blockNumber); + sb.append(", ").append(era); + sb.append(", ").append(prevBlockHash); + sb.append(", ").append(createDatetime); + sb.append(", ").append(updateDatetime); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Era.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Era.java new file mode 100644 index 00000000..45a9fa36 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Era.java @@ -0,0 +1,159 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Era implements Serializable { + + private static final long serialVersionUID = 1L; + + private Integer era; + private Long startSlot; + private Long block; + private String blockHash; + + public Era() {} + + public Era(Era value) { + this.era = value.era; + this.startSlot = value.startSlot; + this.block = value.block; + this.blockHash = value.blockHash; + } + + public Era( + Integer era, + Long startSlot, + Long block, + String blockHash + ) { + this.era = era; + this.startSlot = startSlot; + this.block = block; + this.blockHash = blockHash; + } + + /** + * Getter for era.era. + */ + public Integer getEra() { + return this.era; + } + + /** + * Setter for era.era. + */ + public void setEra(Integer era) { + this.era = era; + } + + /** + * Getter for era.start_slot. + */ + public Long getStartSlot() { + return this.startSlot; + } + + /** + * Setter for era.start_slot. + */ + public void setStartSlot(Long startSlot) { + this.startSlot = startSlot; + } + + /** + * Getter for era.block. + */ + public Long getBlock() { + return this.block; + } + + /** + * Setter for era.block. + */ + public void setBlock(Long block) { + this.block = block; + } + + /** + * Getter for era.block_hash. + */ + public String getBlockHash() { + return this.blockHash; + } + + /** + * Setter for era.block_hash. + */ + public void setBlockHash(String blockHash) { + this.blockHash = blockHash; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final Era other = (Era) obj; + if (this.era == null) { + if (other.era != null) + return false; + } + else if (!this.era.equals(other.era)) + return false; + if (this.startSlot == null) { + if (other.startSlot != null) + return false; + } + else if (!this.startSlot.equals(other.startSlot)) + return false; + if (this.block == null) { + if (other.block != null) + return false; + } + else if (!this.block.equals(other.block)) + return false; + if (this.blockHash == null) { + if (other.blockHash != null) + return false; + } + else if (!this.blockHash.equals(other.blockHash)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.era == null) ? 0 : this.era.hashCode()); + result = prime * result + ((this.startSlot == null) ? 0 : this.startSlot.hashCode()); + result = prime * result + ((this.block == null) ? 0 : this.block.hashCode()); + result = prime * result + ((this.blockHash == null) ? 0 : this.blockHash.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("Era ("); + + sb.append(era); + sb.append(", ").append(startSlot); + sb.append(", ").append(block); + sb.append(", ").append(blockHash); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/PoolReportHistory.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/PoolReportHistory.java deleted file mode 100644 index 7202910a..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/PoolReportHistory.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class PoolReportHistory implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private String poolId; - private Boolean isPoolSize; - private Boolean isFeesPaid; - private Integer beginEpoch; - private Integer endEpoch; - private Long reportId; - private Boolean eventRegistration; - private Boolean eventDeregistration; - private Boolean eventReward; - private Boolean eventPoolUpdate; - - public PoolReportHistory() {} - - public PoolReportHistory(PoolReportHistory value) { - this.id = value.id; - this.poolId = value.poolId; - this.isPoolSize = value.isPoolSize; - this.isFeesPaid = value.isFeesPaid; - this.beginEpoch = value.beginEpoch; - this.endEpoch = value.endEpoch; - this.reportId = value.reportId; - this.eventRegistration = value.eventRegistration; - this.eventDeregistration = value.eventDeregistration; - this.eventReward = value.eventReward; - this.eventPoolUpdate = value.eventPoolUpdate; - } - - public PoolReportHistory( - Long id, - String poolId, - Boolean isPoolSize, - Boolean isFeesPaid, - Integer beginEpoch, - Integer endEpoch, - Long reportId, - Boolean eventRegistration, - Boolean eventDeregistration, - Boolean eventReward, - Boolean eventPoolUpdate - ) { - this.id = id; - this.poolId = poolId; - this.isPoolSize = isPoolSize; - this.isFeesPaid = isFeesPaid; - this.beginEpoch = beginEpoch; - this.endEpoch = endEpoch; - this.reportId = reportId; - this.eventRegistration = eventRegistration; - this.eventDeregistration = eventDeregistration; - this.eventReward = eventReward; - this.eventPoolUpdate = eventPoolUpdate; - } - - /** - * Getter for pool_report_history.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for pool_report_history.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for pool_report_history.pool_id. - */ - public String getPoolId() { - return this.poolId; - } - - /** - * Setter for pool_report_history.pool_id. - */ - public void setPoolId(String poolId) { - this.poolId = poolId; - } - - /** - * Getter for pool_report_history.is_pool_size. - */ - public Boolean getIsPoolSize() { - return this.isPoolSize; - } - - /** - * Setter for pool_report_history.is_pool_size. - */ - public void setIsPoolSize(Boolean isPoolSize) { - this.isPoolSize = isPoolSize; - } - - /** - * Getter for pool_report_history.is_fees_paid. - */ - public Boolean getIsFeesPaid() { - return this.isFeesPaid; - } - - /** - * Setter for pool_report_history.is_fees_paid. - */ - public void setIsFeesPaid(Boolean isFeesPaid) { - this.isFeesPaid = isFeesPaid; - } - - /** - * Getter for pool_report_history.begin_epoch. - */ - public Integer getBeginEpoch() { - return this.beginEpoch; - } - - /** - * Setter for pool_report_history.begin_epoch. - */ - public void setBeginEpoch(Integer beginEpoch) { - this.beginEpoch = beginEpoch; - } - - /** - * Getter for pool_report_history.end_epoch. - */ - public Integer getEndEpoch() { - return this.endEpoch; - } - - /** - * Setter for pool_report_history.end_epoch. - */ - public void setEndEpoch(Integer endEpoch) { - this.endEpoch = endEpoch; - } - - /** - * Getter for pool_report_history.report_id. - */ - public Long getReportId() { - return this.reportId; - } - - /** - * Setter for pool_report_history.report_id. - */ - public void setReportId(Long reportId) { - this.reportId = reportId; - } - - /** - * Getter for pool_report_history.event_registration. - */ - public Boolean getEventRegistration() { - return this.eventRegistration; - } - - /** - * Setter for pool_report_history.event_registration. - */ - public void setEventRegistration(Boolean eventRegistration) { - this.eventRegistration = eventRegistration; - } - - /** - * Getter for pool_report_history.event_deregistration. - */ - public Boolean getEventDeregistration() { - return this.eventDeregistration; - } - - /** - * Setter for pool_report_history.event_deregistration. - */ - public void setEventDeregistration(Boolean eventDeregistration) { - this.eventDeregistration = eventDeregistration; - } - - /** - * Getter for pool_report_history.event_reward. - */ - public Boolean getEventReward() { - return this.eventReward; - } - - /** - * Setter for pool_report_history.event_reward. - */ - public void setEventReward(Boolean eventReward) { - this.eventReward = eventReward; - } - - /** - * Getter for pool_report_history.event_pool_update. - */ - public Boolean getEventPoolUpdate() { - return this.eventPoolUpdate; - } - - /** - * Setter for pool_report_history.event_pool_update. - */ - public void setEventPoolUpdate(Boolean eventPoolUpdate) { - this.eventPoolUpdate = eventPoolUpdate; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final PoolReportHistory other = (PoolReportHistory) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.poolId == null) { - if (other.poolId != null) - return false; - } - else if (!this.poolId.equals(other.poolId)) - return false; - if (this.isPoolSize == null) { - if (other.isPoolSize != null) - return false; - } - else if (!this.isPoolSize.equals(other.isPoolSize)) - return false; - if (this.isFeesPaid == null) { - if (other.isFeesPaid != null) - return false; - } - else if (!this.isFeesPaid.equals(other.isFeesPaid)) - return false; - if (this.beginEpoch == null) { - if (other.beginEpoch != null) - return false; - } - else if (!this.beginEpoch.equals(other.beginEpoch)) - return false; - if (this.endEpoch == null) { - if (other.endEpoch != null) - return false; - } - else if (!this.endEpoch.equals(other.endEpoch)) - return false; - if (this.reportId == null) { - if (other.reportId != null) - return false; - } - else if (!this.reportId.equals(other.reportId)) - return false; - if (this.eventRegistration == null) { - if (other.eventRegistration != null) - return false; - } - else if (!this.eventRegistration.equals(other.eventRegistration)) - return false; - if (this.eventDeregistration == null) { - if (other.eventDeregistration != null) - return false; - } - else if (!this.eventDeregistration.equals(other.eventDeregistration)) - return false; - if (this.eventReward == null) { - if (other.eventReward != null) - return false; - } - else if (!this.eventReward.equals(other.eventReward)) - return false; - if (this.eventPoolUpdate == null) { - if (other.eventPoolUpdate != null) - return false; - } - else if (!this.eventPoolUpdate.equals(other.eventPoolUpdate)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.poolId == null) ? 0 : this.poolId.hashCode()); - result = prime * result + ((this.isPoolSize == null) ? 0 : this.isPoolSize.hashCode()); - result = prime * result + ((this.isFeesPaid == null) ? 0 : this.isFeesPaid.hashCode()); - result = prime * result + ((this.beginEpoch == null) ? 0 : this.beginEpoch.hashCode()); - result = prime * result + ((this.endEpoch == null) ? 0 : this.endEpoch.hashCode()); - result = prime * result + ((this.reportId == null) ? 0 : this.reportId.hashCode()); - result = prime * result + ((this.eventRegistration == null) ? 0 : this.eventRegistration.hashCode()); - result = prime * result + ((this.eventDeregistration == null) ? 0 : this.eventDeregistration.hashCode()); - result = prime * result + ((this.eventReward == null) ? 0 : this.eventReward.hashCode()); - result = prime * result + ((this.eventPoolUpdate == null) ? 0 : this.eventPoolUpdate.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("PoolReportHistory ("); - - sb.append(id); - sb.append(", ").append(poolId); - sb.append(", ").append(isPoolSize); - sb.append(", ").append(isFeesPaid); - sb.append(", ").append(beginEpoch); - sb.append(", ").append(endEpoch); - sb.append(", ").append(reportId); - sb.append(", ").append(eventRegistration); - sb.append(", ").append(eventDeregistration); - sb.append(", ").append(eventReward); - sb.append(", ").append(eventPoolUpdate); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/ReportHistory.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/ReportHistory.java deleted file mode 100644 index b57401a6..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/ReportHistory.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ReportHistory implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private String reportName; - private LocalDateTime createdAt; - private String username; - private String status; - private String type; - private String storageKey; - private LocalDateTime uploadedAt; - - public ReportHistory() {} - - public ReportHistory(ReportHistory value) { - this.id = value.id; - this.reportName = value.reportName; - this.createdAt = value.createdAt; - this.username = value.username; - this.status = value.status; - this.type = value.type; - this.storageKey = value.storageKey; - this.uploadedAt = value.uploadedAt; - } - - public ReportHistory( - Long id, - String reportName, - LocalDateTime createdAt, - String username, - String status, - String type, - String storageKey, - LocalDateTime uploadedAt - ) { - this.id = id; - this.reportName = reportName; - this.createdAt = createdAt; - this.username = username; - this.status = status; - this.type = type; - this.storageKey = storageKey; - this.uploadedAt = uploadedAt; - } - - /** - * Getter for report_history.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for report_history.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for report_history.report_name. - */ - public String getReportName() { - return this.reportName; - } - - /** - * Setter for report_history.report_name. - */ - public void setReportName(String reportName) { - this.reportName = reportName; - } - - /** - * Getter for report_history.created_at. - */ - public LocalDateTime getCreatedAt() { - return this.createdAt; - } - - /** - * Setter for report_history.created_at. - */ - public void setCreatedAt(LocalDateTime createdAt) { - this.createdAt = createdAt; - } - - /** - * Getter for report_history.username. - */ - public String getUsername() { - return this.username; - } - - /** - * Setter for report_history.username. - */ - public void setUsername(String username) { - this.username = username; - } - - /** - * Getter for report_history.status. - */ - public String getStatus() { - return this.status; - } - - /** - * Setter for report_history.status. - */ - public void setStatus(String status) { - this.status = status; - } - - /** - * Getter for report_history.type. - */ - public String getType() { - return this.type; - } - - /** - * Setter for report_history.type. - */ - public void setType(String type) { - this.type = type; - } - - /** - * Getter for report_history.storage_key. - */ - public String getStorageKey() { - return this.storageKey; - } - - /** - * Setter for report_history.storage_key. - */ - public void setStorageKey(String storageKey) { - this.storageKey = storageKey; - } - - /** - * Getter for report_history.uploaded_at. - */ - public LocalDateTime getUploadedAt() { - return this.uploadedAt; - } - - /** - * Setter for report_history.uploaded_at. - */ - public void setUploadedAt(LocalDateTime uploadedAt) { - this.uploadedAt = uploadedAt; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final ReportHistory other = (ReportHistory) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.reportName == null) { - if (other.reportName != null) - return false; - } - else if (!this.reportName.equals(other.reportName)) - return false; - if (this.createdAt == null) { - if (other.createdAt != null) - return false; - } - else if (!this.createdAt.equals(other.createdAt)) - return false; - if (this.username == null) { - if (other.username != null) - return false; - } - else if (!this.username.equals(other.username)) - return false; - if (this.status == null) { - if (other.status != null) - return false; - } - else if (!this.status.equals(other.status)) - return false; - if (this.type == null) { - if (other.type != null) - return false; - } - else if (!this.type.equals(other.type)) - return false; - if (this.storageKey == null) { - if (other.storageKey != null) - return false; - } - else if (!this.storageKey.equals(other.storageKey)) - return false; - if (this.uploadedAt == null) { - if (other.uploadedAt != null) - return false; - } - else if (!this.uploadedAt.equals(other.uploadedAt)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.reportName == null) ? 0 : this.reportName.hashCode()); - result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode()); - result = prime * result + ((this.username == null) ? 0 : this.username.hashCode()); - result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); - result = prime * result + ((this.type == null) ? 0 : this.type.hashCode()); - result = prime * result + ((this.storageKey == null) ? 0 : this.storageKey.hashCode()); - result = prime * result + ((this.uploadedAt == null) ? 0 : this.uploadedAt.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("ReportHistory ("); - - sb.append(id); - sb.append(", ").append(reportName); - sb.append(", ").append(createdAt); - sb.append(", ").append(username); - sb.append(", ").append(status); - sb.append(", ").append(type); - sb.append(", ").append(storageKey); - sb.append(", ").append(uploadedAt); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Script.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Script.java index fe1960ab..8b01ebff 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Script.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/Script.java @@ -23,6 +23,7 @@ public class Script implements Serializable { private Integer serialisedSize; private String type; private Long txId; + private Boolean verified; public Script() {} @@ -34,6 +35,7 @@ public Script(Script value) { this.serialisedSize = value.serialisedSize; this.type = value.type; this.txId = value.txId; + this.verified = value.verified; } public Script( @@ -43,7 +45,8 @@ public Script( String json, Integer serialisedSize, String type, - Long txId + Long txId, + Boolean verified ) { this.id = id; this.bytes = bytes; @@ -52,6 +55,7 @@ public Script( this.serialisedSize = serialisedSize; this.type = type; this.txId = txId; + this.verified = verified; } /** @@ -152,6 +156,20 @@ public void setTxId(Long txId) { this.txId = txId; } + /** + * Getter for script.verified. + */ + public Boolean getVerified() { + return this.verified; + } + + /** + * Setter for script.verified. + */ + public void setVerified(Boolean verified) { + this.verified = verified; + } + @Override public boolean equals(Object obj) { if (this == obj) @@ -203,6 +221,12 @@ else if (!this.type.equals(other.type)) } else if (!this.txId.equals(other.txId)) return false; + if (this.verified == null) { + if (other.verified != null) + return false; + } + else if (!this.verified.equals(other.verified)) + return false; return true; } @@ -217,6 +241,7 @@ public int hashCode() { result = prime * result + ((this.serialisedSize == null) ? 0 : this.serialisedSize.hashCode()); result = prime * result + ((this.type == null) ? 0 : this.type.hashCode()); result = prime * result + ((this.txId == null) ? 0 : this.txId.hashCode()); + result = prime * result + ((this.verified == null) ? 0 : this.verified.hashCode()); return result; } @@ -231,6 +256,7 @@ public String toString() { sb.append(", ").append(serialisedSize); sb.append(", ").append(type); sb.append(", ").append(txId); + sb.append(", ").append(verified); sb.append(")"); return sb.toString(); diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/StakeKeyReportHistory.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/StakeKeyReportHistory.java deleted file mode 100644 index 49837e85..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/StakeKeyReportHistory.java +++ /dev/null @@ -1,368 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class StakeKeyReportHistory implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private String stakeKey; - private LocalDateTime fromDate; - private LocalDateTime toDate; - private Boolean isAdaTransfer; - private Boolean isFeesPaid; - private Long reportId; - private Boolean eventRegistration; - private Boolean eventDelegation; - private Boolean eventRewards; - private Boolean eventWithdrawal; - private Boolean eventDeregistration; - - public StakeKeyReportHistory() {} - - public StakeKeyReportHistory(StakeKeyReportHistory value) { - this.id = value.id; - this.stakeKey = value.stakeKey; - this.fromDate = value.fromDate; - this.toDate = value.toDate; - this.isAdaTransfer = value.isAdaTransfer; - this.isFeesPaid = value.isFeesPaid; - this.reportId = value.reportId; - this.eventRegistration = value.eventRegistration; - this.eventDelegation = value.eventDelegation; - this.eventRewards = value.eventRewards; - this.eventWithdrawal = value.eventWithdrawal; - this.eventDeregistration = value.eventDeregistration; - } - - public StakeKeyReportHistory( - Long id, - String stakeKey, - LocalDateTime fromDate, - LocalDateTime toDate, - Boolean isAdaTransfer, - Boolean isFeesPaid, - Long reportId, - Boolean eventRegistration, - Boolean eventDelegation, - Boolean eventRewards, - Boolean eventWithdrawal, - Boolean eventDeregistration - ) { - this.id = id; - this.stakeKey = stakeKey; - this.fromDate = fromDate; - this.toDate = toDate; - this.isAdaTransfer = isAdaTransfer; - this.isFeesPaid = isFeesPaid; - this.reportId = reportId; - this.eventRegistration = eventRegistration; - this.eventDelegation = eventDelegation; - this.eventRewards = eventRewards; - this.eventWithdrawal = eventWithdrawal; - this.eventDeregistration = eventDeregistration; - } - - /** - * Getter for stake_key_report_history.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for stake_key_report_history.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for stake_key_report_history.stake_key. - */ - public String getStakeKey() { - return this.stakeKey; - } - - /** - * Setter for stake_key_report_history.stake_key. - */ - public void setStakeKey(String stakeKey) { - this.stakeKey = stakeKey; - } - - /** - * Getter for stake_key_report_history.from_date. - */ - public LocalDateTime getFromDate() { - return this.fromDate; - } - - /** - * Setter for stake_key_report_history.from_date. - */ - public void setFromDate(LocalDateTime fromDate) { - this.fromDate = fromDate; - } - - /** - * Getter for stake_key_report_history.to_date. - */ - public LocalDateTime getToDate() { - return this.toDate; - } - - /** - * Setter for stake_key_report_history.to_date. - */ - public void setToDate(LocalDateTime toDate) { - this.toDate = toDate; - } - - /** - * Getter for stake_key_report_history.is_ada_transfer. - */ - public Boolean getIsAdaTransfer() { - return this.isAdaTransfer; - } - - /** - * Setter for stake_key_report_history.is_ada_transfer. - */ - public void setIsAdaTransfer(Boolean isAdaTransfer) { - this.isAdaTransfer = isAdaTransfer; - } - - /** - * Getter for stake_key_report_history.is_fees_paid. - */ - public Boolean getIsFeesPaid() { - return this.isFeesPaid; - } - - /** - * Setter for stake_key_report_history.is_fees_paid. - */ - public void setIsFeesPaid(Boolean isFeesPaid) { - this.isFeesPaid = isFeesPaid; - } - - /** - * Getter for stake_key_report_history.report_id. - */ - public Long getReportId() { - return this.reportId; - } - - /** - * Setter for stake_key_report_history.report_id. - */ - public void setReportId(Long reportId) { - this.reportId = reportId; - } - - /** - * Getter for stake_key_report_history.event_registration. - */ - public Boolean getEventRegistration() { - return this.eventRegistration; - } - - /** - * Setter for stake_key_report_history.event_registration. - */ - public void setEventRegistration(Boolean eventRegistration) { - this.eventRegistration = eventRegistration; - } - - /** - * Getter for stake_key_report_history.event_delegation. - */ - public Boolean getEventDelegation() { - return this.eventDelegation; - } - - /** - * Setter for stake_key_report_history.event_delegation. - */ - public void setEventDelegation(Boolean eventDelegation) { - this.eventDelegation = eventDelegation; - } - - /** - * Getter for stake_key_report_history.event_rewards. - */ - public Boolean getEventRewards() { - return this.eventRewards; - } - - /** - * Setter for stake_key_report_history.event_rewards. - */ - public void setEventRewards(Boolean eventRewards) { - this.eventRewards = eventRewards; - } - - /** - * Getter for stake_key_report_history.event_withdrawal. - */ - public Boolean getEventWithdrawal() { - return this.eventWithdrawal; - } - - /** - * Setter for stake_key_report_history.event_withdrawal. - */ - public void setEventWithdrawal(Boolean eventWithdrawal) { - this.eventWithdrawal = eventWithdrawal; - } - - /** - * Getter for stake_key_report_history.event_deregistration. - */ - public Boolean getEventDeregistration() { - return this.eventDeregistration; - } - - /** - * Setter for stake_key_report_history.event_deregistration. - */ - public void setEventDeregistration(Boolean eventDeregistration) { - this.eventDeregistration = eventDeregistration; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final StakeKeyReportHistory other = (StakeKeyReportHistory) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.stakeKey == null) { - if (other.stakeKey != null) - return false; - } - else if (!this.stakeKey.equals(other.stakeKey)) - return false; - if (this.fromDate == null) { - if (other.fromDate != null) - return false; - } - else if (!this.fromDate.equals(other.fromDate)) - return false; - if (this.toDate == null) { - if (other.toDate != null) - return false; - } - else if (!this.toDate.equals(other.toDate)) - return false; - if (this.isAdaTransfer == null) { - if (other.isAdaTransfer != null) - return false; - } - else if (!this.isAdaTransfer.equals(other.isAdaTransfer)) - return false; - if (this.isFeesPaid == null) { - if (other.isFeesPaid != null) - return false; - } - else if (!this.isFeesPaid.equals(other.isFeesPaid)) - return false; - if (this.reportId == null) { - if (other.reportId != null) - return false; - } - else if (!this.reportId.equals(other.reportId)) - return false; - if (this.eventRegistration == null) { - if (other.eventRegistration != null) - return false; - } - else if (!this.eventRegistration.equals(other.eventRegistration)) - return false; - if (this.eventDelegation == null) { - if (other.eventDelegation != null) - return false; - } - else if (!this.eventDelegation.equals(other.eventDelegation)) - return false; - if (this.eventRewards == null) { - if (other.eventRewards != null) - return false; - } - else if (!this.eventRewards.equals(other.eventRewards)) - return false; - if (this.eventWithdrawal == null) { - if (other.eventWithdrawal != null) - return false; - } - else if (!this.eventWithdrawal.equals(other.eventWithdrawal)) - return false; - if (this.eventDeregistration == null) { - if (other.eventDeregistration != null) - return false; - } - else if (!this.eventDeregistration.equals(other.eventDeregistration)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.stakeKey == null) ? 0 : this.stakeKey.hashCode()); - result = prime * result + ((this.fromDate == null) ? 0 : this.fromDate.hashCode()); - result = prime * result + ((this.toDate == null) ? 0 : this.toDate.hashCode()); - result = prime * result + ((this.isAdaTransfer == null) ? 0 : this.isAdaTransfer.hashCode()); - result = prime * result + ((this.isFeesPaid == null) ? 0 : this.isFeesPaid.hashCode()); - result = prime * result + ((this.reportId == null) ? 0 : this.reportId.hashCode()); - result = prime * result + ((this.eventRegistration == null) ? 0 : this.eventRegistration.hashCode()); - result = prime * result + ((this.eventDelegation == null) ? 0 : this.eventDelegation.hashCode()); - result = prime * result + ((this.eventRewards == null) ? 0 : this.eventRewards.hashCode()); - result = prime * result + ((this.eventWithdrawal == null) ? 0 : this.eventWithdrawal.hashCode()); - result = prime * result + ((this.eventDeregistration == null) ? 0 : this.eventDeregistration.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("StakeKeyReportHistory ("); - - sb.append(id); - sb.append(", ").append(stakeKey); - sb.append(", ").append(fromDate); - sb.append(", ").append(toDate); - sb.append(", ").append(isAdaTransfer); - sb.append(", ").append(isFeesPaid); - sb.append(", ").append(reportId); - sb.append(", ").append(eventRegistration); - sb.append(", ").append(eventDelegation); - sb.append(", ").append(eventRewards); - sb.append(", ").append(eventWithdrawal); - sb.append(", ").append(eventDeregistration); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/StakeTxBalance.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/StakeTxBalance.java deleted file mode 100644 index cd9282d6..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/StakeTxBalance.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class StakeTxBalance implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private Long stakeAddressId; - private Long txId; - private Long balanceChange; - private LocalDateTime time; - - public StakeTxBalance() {} - - public StakeTxBalance(StakeTxBalance value) { - this.id = value.id; - this.stakeAddressId = value.stakeAddressId; - this.txId = value.txId; - this.balanceChange = value.balanceChange; - this.time = value.time; - } - - public StakeTxBalance( - Long id, - Long stakeAddressId, - Long txId, - Long balanceChange, - LocalDateTime time - ) { - this.id = id; - this.stakeAddressId = stakeAddressId; - this.txId = txId; - this.balanceChange = balanceChange; - this.time = time; - } - - /** - * Getter for stake_tx_balance.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for stake_tx_balance.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for stake_tx_balance.stake_address_id. - */ - public Long getStakeAddressId() { - return this.stakeAddressId; - } - - /** - * Setter for stake_tx_balance.stake_address_id. - */ - public void setStakeAddressId(Long stakeAddressId) { - this.stakeAddressId = stakeAddressId; - } - - /** - * Getter for stake_tx_balance.tx_id. - */ - public Long getTxId() { - return this.txId; - } - - /** - * Setter for stake_tx_balance.tx_id. - */ - public void setTxId(Long txId) { - this.txId = txId; - } - - /** - * Getter for stake_tx_balance.balance_change. - */ - public Long getBalanceChange() { - return this.balanceChange; - } - - /** - * Setter for stake_tx_balance.balance_change. - */ - public void setBalanceChange(Long balanceChange) { - this.balanceChange = balanceChange; - } - - /** - * Getter for stake_tx_balance.time. - */ - public LocalDateTime getTime() { - return this.time; - } - - /** - * Setter for stake_tx_balance.time. - */ - public void setTime(LocalDateTime time) { - this.time = time; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final StakeTxBalance other = (StakeTxBalance) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.stakeAddressId == null) { - if (other.stakeAddressId != null) - return false; - } - else if (!this.stakeAddressId.equals(other.stakeAddressId)) - return false; - if (this.txId == null) { - if (other.txId != null) - return false; - } - else if (!this.txId.equals(other.txId)) - return false; - if (this.balanceChange == null) { - if (other.balanceChange != null) - return false; - } - else if (!this.balanceChange.equals(other.balanceChange)) - return false; - if (this.time == null) { - if (other.time != null) - return false; - } - else if (!this.time.equals(other.time)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.stakeAddressId == null) ? 0 : this.stakeAddressId.hashCode()); - result = prime * result + ((this.txId == null) ? 0 : this.txId.hashCode()); - result = prime * result + ((this.balanceChange == null) ? 0 : this.balanceChange.hashCode()); - result = prime * result + ((this.time == null) ? 0 : this.time.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("StakeTxBalance ("); - - sb.append(id); - sb.append(", ").append(stakeAddressId); - sb.append(", ").append(txId); - sb.append(", ").append(balanceChange); - sb.append(", ").append(time); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TokenInfo.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TokenInfo.java deleted file mode 100644 index 011b7846..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TokenInfo.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.math.BigInteger; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TokenInfo implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private Long ident; - private Long numberOfHolders; - private BigInteger volume_24h; - private Long blockNo; - private LocalDateTime updateTime; - - public TokenInfo() {} - - public TokenInfo(TokenInfo value) { - this.id = value.id; - this.ident = value.ident; - this.numberOfHolders = value.numberOfHolders; - this.volume_24h = value.volume_24h; - this.blockNo = value.blockNo; - this.updateTime = value.updateTime; - } - - public TokenInfo( - Long id, - Long ident, - Long numberOfHolders, - BigInteger volume_24h, - Long blockNo, - LocalDateTime updateTime - ) { - this.id = id; - this.ident = ident; - this.numberOfHolders = numberOfHolders; - this.volume_24h = volume_24h; - this.blockNo = blockNo; - this.updateTime = updateTime; - } - - /** - * Getter for token_info.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for token_info.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for token_info.ident. - */ - public Long getIdent() { - return this.ident; - } - - /** - * Setter for token_info.ident. - */ - public void setIdent(Long ident) { - this.ident = ident; - } - - /** - * Getter for token_info.number_of_holders. - */ - public Long getNumberOfHolders() { - return this.numberOfHolders; - } - - /** - * Setter for token_info.number_of_holders. - */ - public void setNumberOfHolders(Long numberOfHolders) { - this.numberOfHolders = numberOfHolders; - } - - /** - * Getter for token_info.volume_24h. - */ - public BigInteger getVolume_24h() { - return this.volume_24h; - } - - /** - * Setter for token_info.volume_24h. - */ - public void setVolume_24h(BigInteger volume_24h) { - this.volume_24h = volume_24h; - } - - /** - * Getter for token_info.block_no. - */ - public Long getBlockNo() { - return this.blockNo; - } - - /** - * Setter for token_info.block_no. - */ - public void setBlockNo(Long blockNo) { - this.blockNo = blockNo; - } - - /** - * Getter for token_info.update_time. - */ - public LocalDateTime getUpdateTime() { - return this.updateTime; - } - - /** - * Setter for token_info.update_time. - */ - public void setUpdateTime(LocalDateTime updateTime) { - this.updateTime = updateTime; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final TokenInfo other = (TokenInfo) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.ident == null) { - if (other.ident != null) - return false; - } - else if (!this.ident.equals(other.ident)) - return false; - if (this.numberOfHolders == null) { - if (other.numberOfHolders != null) - return false; - } - else if (!this.numberOfHolders.equals(other.numberOfHolders)) - return false; - if (this.volume_24h == null) { - if (other.volume_24h != null) - return false; - } - else if (!this.volume_24h.equals(other.volume_24h)) - return false; - if (this.blockNo == null) { - if (other.blockNo != null) - return false; - } - else if (!this.blockNo.equals(other.blockNo)) - return false; - if (this.updateTime == null) { - if (other.updateTime != null) - return false; - } - else if (!this.updateTime.equals(other.updateTime)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.ident == null) ? 0 : this.ident.hashCode()); - result = prime * result + ((this.numberOfHolders == null) ? 0 : this.numberOfHolders.hashCode()); - result = prime * result + ((this.volume_24h == null) ? 0 : this.volume_24h.hashCode()); - result = prime * result + ((this.blockNo == null) ? 0 : this.blockNo.hashCode()); - result = prime * result + ((this.updateTime == null) ? 0 : this.updateTime.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("TokenInfo ("); - - sb.append(id); - sb.append(", ").append(ident); - sb.append(", ").append(numberOfHolders); - sb.append(", ").append(volume_24h); - sb.append(", ").append(blockNo); - sb.append(", ").append(updateTime); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TokenInfoCheckpoint.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TokenInfoCheckpoint.java deleted file mode 100644 index 1f8b72c7..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TokenInfoCheckpoint.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.pojos; - - -import java.io.Serializable; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TokenInfoCheckpoint implements Serializable { - - private static final long serialVersionUID = 1L; - - private Long id; - private Long blockNo; - private LocalDateTime updateTime; - - public TokenInfoCheckpoint() {} - - public TokenInfoCheckpoint(TokenInfoCheckpoint value) { - this.id = value.id; - this.blockNo = value.blockNo; - this.updateTime = value.updateTime; - } - - public TokenInfoCheckpoint( - Long id, - Long blockNo, - LocalDateTime updateTime - ) { - this.id = id; - this.blockNo = blockNo; - this.updateTime = updateTime; - } - - /** - * Getter for token_info_checkpoint.id. - */ - public Long getId() { - return this.id; - } - - /** - * Setter for token_info_checkpoint.id. - */ - public void setId(Long id) { - this.id = id; - } - - /** - * Getter for token_info_checkpoint.block_no. - */ - public Long getBlockNo() { - return this.blockNo; - } - - /** - * Setter for token_info_checkpoint.block_no. - */ - public void setBlockNo(Long blockNo) { - this.blockNo = blockNo; - } - - /** - * Getter for token_info_checkpoint.update_time. - */ - public LocalDateTime getUpdateTime() { - return this.updateTime; - } - - /** - * Setter for token_info_checkpoint.update_time. - */ - public void setUpdateTime(LocalDateTime updateTime) { - this.updateTime = updateTime; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final TokenInfoCheckpoint other = (TokenInfoCheckpoint) obj; - if (this.id == null) { - if (other.id != null) - return false; - } - else if (!this.id.equals(other.id)) - return false; - if (this.blockNo == null) { - if (other.blockNo != null) - return false; - } - else if (!this.blockNo.equals(other.blockNo)) - return false; - if (this.updateTime == null) { - if (other.updateTime != null) - return false; - } - else if (!this.updateTime.equals(other.updateTime)) - return false; - return true; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); - result = prime * result + ((this.blockNo == null) ? 0 : this.blockNo.hashCode()); - result = prime * result + ((this.updateTime == null) ? 0 : this.updateTime.hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("TokenInfoCheckpoint ("); - - sb.append(id); - sb.append(", ").append(blockNo); - sb.append(", ").append(updateTime); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TxBootstrapWitnesses.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TxBootstrapWitnesses.java new file mode 100644 index 00000000..d617b871 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TxBootstrapWitnesses.java @@ -0,0 +1,211 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TxBootstrapWitnesses implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + private Long txId; + private String publicKey; + private String signature; + private String chainCode; + private String attributes; + + public TxBootstrapWitnesses() {} + + public TxBootstrapWitnesses(TxBootstrapWitnesses value) { + this.id = value.id; + this.txId = value.txId; + this.publicKey = value.publicKey; + this.signature = value.signature; + this.chainCode = value.chainCode; + this.attributes = value.attributes; + } + + public TxBootstrapWitnesses( + Long id, + Long txId, + String publicKey, + String signature, + String chainCode, + String attributes + ) { + this.id = id; + this.txId = txId; + this.publicKey = publicKey; + this.signature = signature; + this.chainCode = chainCode; + this.attributes = attributes; + } + + /** + * Getter for tx_bootstrap_witnesses.id. + */ + public Long getId() { + return this.id; + } + + /** + * Setter for tx_bootstrap_witnesses.id. + */ + public void setId(Long id) { + this.id = id; + } + + /** + * Getter for tx_bootstrap_witnesses.tx_id. + */ + public Long getTxId() { + return this.txId; + } + + /** + * Setter for tx_bootstrap_witnesses.tx_id. + */ + public void setTxId(Long txId) { + this.txId = txId; + } + + /** + * Getter for tx_bootstrap_witnesses.public_key. + */ + public String getPublicKey() { + return this.publicKey; + } + + /** + * Setter for tx_bootstrap_witnesses.public_key. + */ + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + /** + * Getter for tx_bootstrap_witnesses.signature. + */ + public String getSignature() { + return this.signature; + } + + /** + * Setter for tx_bootstrap_witnesses.signature. + */ + public void setSignature(String signature) { + this.signature = signature; + } + + /** + * Getter for tx_bootstrap_witnesses.chain_code. + */ + public String getChainCode() { + return this.chainCode; + } + + /** + * Setter for tx_bootstrap_witnesses.chain_code. + */ + public void setChainCode(String chainCode) { + this.chainCode = chainCode; + } + + /** + * Getter for tx_bootstrap_witnesses.attributes. + */ + public String getAttributes() { + return this.attributes; + } + + /** + * Setter for tx_bootstrap_witnesses.attributes. + */ + public void setAttributes(String attributes) { + this.attributes = attributes; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TxBootstrapWitnesses other = (TxBootstrapWitnesses) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.txId == null) { + if (other.txId != null) + return false; + } + else if (!this.txId.equals(other.txId)) + return false; + if (this.publicKey == null) { + if (other.publicKey != null) + return false; + } + else if (!this.publicKey.equals(other.publicKey)) + return false; + if (this.signature == null) { + if (other.signature != null) + return false; + } + else if (!this.signature.equals(other.signature)) + return false; + if (this.chainCode == null) { + if (other.chainCode != null) + return false; + } + else if (!this.chainCode.equals(other.chainCode)) + return false; + if (this.attributes == null) { + if (other.attributes != null) + return false; + } + else if (!this.attributes.equals(other.attributes)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.txId == null) ? 0 : this.txId.hashCode()); + result = prime * result + ((this.publicKey == null) ? 0 : this.publicKey.hashCode()); + result = prime * result + ((this.signature == null) ? 0 : this.signature.hashCode()); + result = prime * result + ((this.chainCode == null) ? 0 : this.chainCode.hashCode()); + result = prime * result + ((this.attributes == null) ? 0 : this.attributes.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TxBootstrapWitnesses ("); + + sb.append(id); + sb.append(", ").append(txId); + sb.append(", ").append(publicKey); + sb.append(", ").append(signature); + sb.append(", ").append(chainCode); + sb.append(", ").append(attributes); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TxWitnesses.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TxWitnesses.java new file mode 100644 index 00000000..82a5836d --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/TxWitnesses.java @@ -0,0 +1,238 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.pojos; + + +import java.io.Serializable; +import java.util.Arrays; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TxWitnesses implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + private Long txId; + private String key; + private String signature; + private Integer[] indexArr; + private Integer indexArrSize; + private String type; + + public TxWitnesses() {} + + public TxWitnesses(TxWitnesses value) { + this.id = value.id; + this.txId = value.txId; + this.key = value.key; + this.signature = value.signature; + this.indexArr = value.indexArr; + this.indexArrSize = value.indexArrSize; + this.type = value.type; + } + + public TxWitnesses( + Long id, + Long txId, + String key, + String signature, + Integer[] indexArr, + Integer indexArrSize, + String type + ) { + this.id = id; + this.txId = txId; + this.key = key; + this.signature = signature; + this.indexArr = indexArr; + this.indexArrSize = indexArrSize; + this.type = type; + } + + /** + * Getter for tx_witnesses.id. + */ + public Long getId() { + return this.id; + } + + /** + * Setter for tx_witnesses.id. + */ + public void setId(Long id) { + this.id = id; + } + + /** + * Getter for tx_witnesses.tx_id. + */ + public Long getTxId() { + return this.txId; + } + + /** + * Setter for tx_witnesses.tx_id. + */ + public void setTxId(Long txId) { + this.txId = txId; + } + + /** + * Getter for tx_witnesses.key. + */ + public String getKey() { + return this.key; + } + + /** + * Setter for tx_witnesses.key. + */ + public void setKey(String key) { + this.key = key; + } + + /** + * Getter for tx_witnesses.signature. + */ + public String getSignature() { + return this.signature; + } + + /** + * Setter for tx_witnesses.signature. + */ + public void setSignature(String signature) { + this.signature = signature; + } + + /** + * Getter for tx_witnesses.index_arr. + */ + public Integer[] getIndexArr() { + return this.indexArr; + } + + /** + * Setter for tx_witnesses.index_arr. + */ + public void setIndexArr(Integer[] indexArr) { + this.indexArr = indexArr; + } + + /** + * Getter for tx_witnesses.index_arr_size. + */ + public Integer getIndexArrSize() { + return this.indexArrSize; + } + + /** + * Setter for tx_witnesses.index_arr_size. + */ + public void setIndexArrSize(Integer indexArrSize) { + this.indexArrSize = indexArrSize; + } + + /** + * Getter for tx_witnesses.type. + */ + public String getType() { + return this.type; + } + + /** + * Setter for tx_witnesses.type. + */ + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TxWitnesses other = (TxWitnesses) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.txId == null) { + if (other.txId != null) + return false; + } + else if (!this.txId.equals(other.txId)) + return false; + if (this.key == null) { + if (other.key != null) + return false; + } + else if (!this.key.equals(other.key)) + return false; + if (this.signature == null) { + if (other.signature != null) + return false; + } + else if (!this.signature.equals(other.signature)) + return false; + if (this.indexArr == null) { + if (other.indexArr != null) + return false; + } + else if (!Arrays.deepEquals(this.indexArr, other.indexArr)) + return false; + if (this.indexArrSize == null) { + if (other.indexArrSize != null) + return false; + } + else if (!this.indexArrSize.equals(other.indexArrSize)) + return false; + if (this.type == null) { + if (other.type != null) + return false; + } + else if (!this.type.equals(other.type)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.txId == null) ? 0 : this.txId.hashCode()); + result = prime * result + ((this.key == null) ? 0 : this.key.hashCode()); + result = prime * result + ((this.signature == null) ? 0 : this.signature.hashCode()); + result = prime * result + ((this.indexArr == null) ? 0 : Arrays.deepHashCode(this.indexArr)); + result = prime * result + ((this.indexArrSize == null) ? 0 : this.indexArrSize.hashCode()); + result = prime * result + ((this.type == null) ? 0 : this.type.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TxWitnesses ("); + + sb.append(id); + sb.append(", ").append(txId); + sb.append(", ").append(key); + sb.append(", ").append(signature); + sb.append(", ").append(Arrays.deepToString(indexArr)); + sb.append(", ").append(indexArrSize); + sb.append(", ").append(type); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/UnconsumeTxIn.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/UnconsumeTxIn.java index c7a2a632..ced5874f 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/UnconsumeTxIn.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/pojos/UnconsumeTxIn.java @@ -19,6 +19,7 @@ public class UnconsumeTxIn implements Serializable { private Short txOutIndex; private Long txInId; private Long txOutId; + private Long redeemerId; public UnconsumeTxIn() {} @@ -27,18 +28,21 @@ public UnconsumeTxIn(UnconsumeTxIn value) { this.txOutIndex = value.txOutIndex; this.txInId = value.txInId; this.txOutId = value.txOutId; + this.redeemerId = value.redeemerId; } public UnconsumeTxIn( Long id, Short txOutIndex, Long txInId, - Long txOutId + Long txOutId, + Long redeemerId ) { this.id = id; this.txOutIndex = txOutIndex; this.txInId = txInId; this.txOutId = txOutId; + this.redeemerId = redeemerId; } /** @@ -97,6 +101,20 @@ public void setTxOutId(Long txOutId) { this.txOutId = txOutId; } + /** + * Getter for unconsume_tx_in.redeemer_id. + */ + public Long getRedeemerId() { + return this.redeemerId; + } + + /** + * Setter for unconsume_tx_in.redeemer_id. + */ + public void setRedeemerId(Long redeemerId) { + this.redeemerId = redeemerId; + } + @Override public boolean equals(Object obj) { if (this == obj) @@ -130,6 +148,12 @@ else if (!this.txInId.equals(other.txInId)) } else if (!this.txOutId.equals(other.txOutId)) return false; + if (this.redeemerId == null) { + if (other.redeemerId != null) + return false; + } + else if (!this.redeemerId.equals(other.redeemerId)) + return false; return true; } @@ -141,6 +165,7 @@ public int hashCode() { result = prime * result + ((this.txOutIndex == null) ? 0 : this.txOutIndex.hashCode()); result = prime * result + ((this.txInId == null) ? 0 : this.txInId.hashCode()); result = prime * result + ((this.txOutId == null) ? 0 : this.txOutId.hashCode()); + result = prime * result + ((this.redeemerId == null) ? 0 : this.redeemerId.hashCode()); return result; } @@ -152,6 +177,7 @@ public String toString() { sb.append(", ").append(txOutIndex); sb.append(", ").append(txInId); sb.append(", ").append(txOutId); + sb.append(", ").append(redeemerId); sb.append(")"); return sb.toString(); diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggAddressTokenRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggAddressTokenRecord.java deleted file mode 100644 index 087addf2..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggAddressTokenRecord.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.math.BigInteger; -import java.time.LocalDate; - -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressToken; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggAddressTokenRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for agg_address_token.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for agg_address_token.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for agg_address_token.balance. - */ - public void setBalance(BigInteger value) { - set(1, value); - } - - /** - * Getter for agg_address_token.balance. - */ - public BigInteger getBalance() { - return (BigInteger) get(1); - } - - /** - * Setter for agg_address_token.ident. - */ - public void setIdent(Long value) { - set(2, value); - } - - /** - * Getter for agg_address_token.ident. - */ - public Long getIdent() { - return (Long) get(2); - } - - /** - * Setter for agg_address_token.day. - */ - public void setDay(LocalDate value) { - set(3, value); - } - - /** - * Getter for agg_address_token.day. - */ - public LocalDate getDay() { - return (LocalDate) get(3); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return AggAddressToken.AGG_ADDRESS_TOKEN.ID; - } - - @Override - public Field field2() { - return AggAddressToken.AGG_ADDRESS_TOKEN.BALANCE; - } - - @Override - public Field field3() { - return AggAddressToken.AGG_ADDRESS_TOKEN.IDENT; - } - - @Override - public Field field4() { - return AggAddressToken.AGG_ADDRESS_TOKEN.DAY; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public BigInteger component2() { - return getBalance(); - } - - @Override - public Long component3() { - return getIdent(); - } - - @Override - public LocalDate component4() { - return getDay(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public BigInteger value2() { - return getBalance(); - } - - @Override - public Long value3() { - return getIdent(); - } - - @Override - public LocalDate value4() { - return getDay(); - } - - @Override - public AggAddressTokenRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public AggAddressTokenRecord value2(BigInteger value) { - setBalance(value); - return this; - } - - @Override - public AggAddressTokenRecord value3(Long value) { - setIdent(value); - return this; - } - - @Override - public AggAddressTokenRecord value4(LocalDate value) { - setDay(value); - return this; - } - - @Override - public AggAddressTokenRecord values(Long value1, BigInteger value2, Long value3, LocalDate value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached AggAddressTokenRecord - */ - public AggAddressTokenRecord() { - super(AggAddressToken.AGG_ADDRESS_TOKEN); - } - - /** - * Create a detached, initialised AggAddressTokenRecord - */ - public AggAddressTokenRecord(Long id, BigInteger balance, Long ident, LocalDate day) { - super(AggAddressToken.AGG_ADDRESS_TOKEN); - - setId(id); - setBalance(balance); - setIdent(ident); - setDay(day); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised AggAddressTokenRecord - */ - public AggAddressTokenRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressToken value) { - super(AggAddressToken.AGG_ADDRESS_TOKEN); - - if (value != null) { - setId(value.getId()); - setBalance(value.getBalance()); - setIdent(value.getIdent()); - setDay(value.getDay()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggAddressTxBalanceRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggAddressTxBalanceRecord.java deleted file mode 100644 index 7b5ffa96..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggAddressTxBalanceRecord.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.math.BigInteger; -import java.time.LocalDate; - -import org.cardanofoundation.ledgersync.jooq.tables.AggAddressTxBalance; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggAddressTxBalanceRecord extends UpdatableRecordImpl implements Record5 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for agg_address_tx_balance.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for agg_address_tx_balance.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for agg_address_tx_balance.stake_address_id. - */ - public void setStakeAddressId(Long value) { - set(1, value); - } - - /** - * Getter for agg_address_tx_balance.stake_address_id. - */ - public Long getStakeAddressId() { - return (Long) get(1); - } - - /** - * Setter for agg_address_tx_balance.address_id. - */ - public void setAddressId(Long value) { - set(2, value); - } - - /** - * Getter for agg_address_tx_balance.address_id. - */ - public Long getAddressId() { - return (Long) get(2); - } - - /** - * Setter for agg_address_tx_balance.balance. - */ - public void setBalance(BigInteger value) { - set(3, value); - } - - /** - * Getter for agg_address_tx_balance.balance. - */ - public BigInteger getBalance() { - return (BigInteger) get(3); - } - - /** - * Setter for agg_address_tx_balance.day. - */ - public void setDay(LocalDate value) { - set(4, value); - } - - /** - * Getter for agg_address_tx_balance.day. - */ - public LocalDate getDay() { - return (LocalDate) get(4); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ID; - } - - @Override - public Field field2() { - return AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.STAKE_ADDRESS_ID; - } - - @Override - public Field field3() { - return AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.ADDRESS_ID; - } - - @Override - public Field field4() { - return AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.BALANCE; - } - - @Override - public Field field5() { - return AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE.DAY; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getStakeAddressId(); - } - - @Override - public Long component3() { - return getAddressId(); - } - - @Override - public BigInteger component4() { - return getBalance(); - } - - @Override - public LocalDate component5() { - return getDay(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getStakeAddressId(); - } - - @Override - public Long value3() { - return getAddressId(); - } - - @Override - public BigInteger value4() { - return getBalance(); - } - - @Override - public LocalDate value5() { - return getDay(); - } - - @Override - public AggAddressTxBalanceRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public AggAddressTxBalanceRecord value2(Long value) { - setStakeAddressId(value); - return this; - } - - @Override - public AggAddressTxBalanceRecord value3(Long value) { - setAddressId(value); - return this; - } - - @Override - public AggAddressTxBalanceRecord value4(BigInteger value) { - setBalance(value); - return this; - } - - @Override - public AggAddressTxBalanceRecord value5(LocalDate value) { - setDay(value); - return this; - } - - @Override - public AggAddressTxBalanceRecord values(Long value1, Long value2, Long value3, BigInteger value4, LocalDate value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached AggAddressTxBalanceRecord - */ - public AggAddressTxBalanceRecord() { - super(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE); - } - - /** - * Create a detached, initialised AggAddressTxBalanceRecord - */ - public AggAddressTxBalanceRecord(Long id, Long stakeAddressId, Long addressId, BigInteger balance, LocalDate day) { - super(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE); - - setId(id); - setStakeAddressId(stakeAddressId); - setAddressId(addressId); - setBalance(balance); - setDay(day); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised AggAddressTxBalanceRecord - */ - public AggAddressTxBalanceRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.AggAddressTxBalance value) { - super(AggAddressTxBalance.AGG_ADDRESS_TX_BALANCE); - - if (value != null) { - setId(value.getId()); - setStakeAddressId(value.getStakeAddressId()); - setAddressId(value.getAddressId()); - setBalance(value.getBalance()); - setDay(value.getDay()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggPoolInfoRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggPoolInfoRecord.java deleted file mode 100644 index a19354a2..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AggPoolInfoRecord.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.time.LocalDateTime; - -import org.cardanofoundation.ledgersync.jooq.tables.AggPoolInfo; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record7; -import org.jooq.Row7; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AggPoolInfoRecord extends UpdatableRecordImpl implements Record7 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for agg_pool_info.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for agg_pool_info.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for agg_pool_info.pool_id. - */ - public void setPoolId(Long value) { - set(1, value); - } - - /** - * Getter for agg_pool_info.pool_id. - */ - public Long getPoolId() { - return (Long) get(1); - } - - /** - * Setter for agg_pool_info.block_in_epoch. - */ - public void setBlockInEpoch(Long value) { - set(2, value); - } - - /** - * Getter for agg_pool_info.block_in_epoch. - */ - public Long getBlockInEpoch() { - return (Long) get(2); - } - - /** - * Setter for agg_pool_info.block_life_time. - */ - public void setBlockLifeTime(Long value) { - set(3, value); - } - - /** - * Getter for agg_pool_info.block_life_time. - */ - public Long getBlockLifeTime() { - return (Long) get(3); - } - - /** - * Setter for agg_pool_info.delegator_cnt. - */ - public void setDelegatorCnt(Long value) { - set(4, value); - } - - /** - * Getter for agg_pool_info.delegator_cnt. - */ - public Long getDelegatorCnt() { - return (Long) get(4); - } - - /** - * Setter for agg_pool_info.block_check_point. - */ - public void setBlockCheckPoint(Long value) { - set(5, value); - } - - /** - * Getter for agg_pool_info.block_check_point. - */ - public Long getBlockCheckPoint() { - return (Long) get(5); - } - - /** - * Setter for agg_pool_info.update_time. - */ - public void setUpdateTime(LocalDateTime value) { - set(6, value); - } - - /** - * Getter for agg_pool_info.update_time. - */ - public LocalDateTime getUpdateTime() { - return (LocalDateTime) get(6); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record7 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); - } - - @Override - public Field field1() { - return AggPoolInfo.AGG_POOL_INFO.ID; - } - - @Override - public Field field2() { - return AggPoolInfo.AGG_POOL_INFO.POOL_ID; - } - - @Override - public Field field3() { - return AggPoolInfo.AGG_POOL_INFO.BLOCK_IN_EPOCH; - } - - @Override - public Field field4() { - return AggPoolInfo.AGG_POOL_INFO.BLOCK_LIFE_TIME; - } - - @Override - public Field field5() { - return AggPoolInfo.AGG_POOL_INFO.DELEGATOR_CNT; - } - - @Override - public Field field6() { - return AggPoolInfo.AGG_POOL_INFO.BLOCK_CHECK_POINT; - } - - @Override - public Field field7() { - return AggPoolInfo.AGG_POOL_INFO.UPDATE_TIME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getPoolId(); - } - - @Override - public Long component3() { - return getBlockInEpoch(); - } - - @Override - public Long component4() { - return getBlockLifeTime(); - } - - @Override - public Long component5() { - return getDelegatorCnt(); - } - - @Override - public Long component6() { - return getBlockCheckPoint(); - } - - @Override - public LocalDateTime component7() { - return getUpdateTime(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getPoolId(); - } - - @Override - public Long value3() { - return getBlockInEpoch(); - } - - @Override - public Long value4() { - return getBlockLifeTime(); - } - - @Override - public Long value5() { - return getDelegatorCnt(); - } - - @Override - public Long value6() { - return getBlockCheckPoint(); - } - - @Override - public LocalDateTime value7() { - return getUpdateTime(); - } - - @Override - public AggPoolInfoRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public AggPoolInfoRecord value2(Long value) { - setPoolId(value); - return this; - } - - @Override - public AggPoolInfoRecord value3(Long value) { - setBlockInEpoch(value); - return this; - } - - @Override - public AggPoolInfoRecord value4(Long value) { - setBlockLifeTime(value); - return this; - } - - @Override - public AggPoolInfoRecord value5(Long value) { - setDelegatorCnt(value); - return this; - } - - @Override - public AggPoolInfoRecord value6(Long value) { - setBlockCheckPoint(value); - return this; - } - - @Override - public AggPoolInfoRecord value7(LocalDateTime value) { - setUpdateTime(value); - return this; - } - - @Override - public AggPoolInfoRecord values(Long value1, Long value2, Long value3, Long value4, Long value5, Long value6, LocalDateTime value7) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached AggPoolInfoRecord - */ - public AggPoolInfoRecord() { - super(AggPoolInfo.AGG_POOL_INFO); - } - - /** - * Create a detached, initialised AggPoolInfoRecord - */ - public AggPoolInfoRecord(Long id, Long poolId, Long blockInEpoch, Long blockLifeTime, Long delegatorCnt, Long blockCheckPoint, LocalDateTime updateTime) { - super(AggPoolInfo.AGG_POOL_INFO); - - setId(id); - setPoolId(poolId); - setBlockInEpoch(blockInEpoch); - setBlockLifeTime(blockLifeTime); - setDelegatorCnt(delegatorCnt); - setBlockCheckPoint(blockCheckPoint); - setUpdateTime(updateTime); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised AggPoolInfoRecord - */ - public AggPoolInfoRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.AggPoolInfo value) { - super(AggPoolInfo.AGG_POOL_INFO); - - if (value != null) { - setId(value.getId()); - setPoolId(value.getPoolId()); - setBlockInEpoch(value.getBlockInEpoch()); - setBlockLifeTime(value.getBlockLifeTime()); - setDelegatorCnt(value.getDelegatorCnt()); - setBlockCheckPoint(value.getBlockCheckPoint()); - setUpdateTime(value.getUpdateTime()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AssetMetadataRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AssetMetadataRecord.java deleted file mode 100644 index 947eb7a8..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/AssetMetadataRecord.java +++ /dev/null @@ -1,499 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import org.cardanofoundation.ledgersync.jooq.tables.AssetMetadata; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record11; -import org.jooq.Row11; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AssetMetadataRecord extends UpdatableRecordImpl implements Record11 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for asset_metadata.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for asset_metadata.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for asset_metadata.decimals. - */ - public void setDecimals(Integer value) { - set(1, value); - } - - /** - * Getter for asset_metadata.decimals. - */ - public Integer getDecimals() { - return (Integer) get(1); - } - - /** - * Setter for asset_metadata.description. - */ - public void setDescription(String value) { - set(2, value); - } - - /** - * Getter for asset_metadata.description. - */ - public String getDescription() { - return (String) get(2); - } - - /** - * Setter for asset_metadata.logo. - */ - public void setLogo(String value) { - set(3, value); - } - - /** - * Getter for asset_metadata.logo. - */ - public String getLogo() { - return (String) get(3); - } - - /** - * Setter for asset_metadata.name. - */ - public void setName(String value) { - set(4, value); - } - - /** - * Getter for asset_metadata.name. - */ - public String getName() { - return (String) get(4); - } - - /** - * Setter for asset_metadata.policy. - */ - public void setPolicy(String value) { - set(5, value); - } - - /** - * Getter for asset_metadata.policy. - */ - public String getPolicy() { - return (String) get(5); - } - - /** - * Setter for asset_metadata.subject. - */ - public void setSubject(String value) { - set(6, value); - } - - /** - * Getter for asset_metadata.subject. - */ - public String getSubject() { - return (String) get(6); - } - - /** - * Setter for asset_metadata.ticker. - */ - public void setTicker(String value) { - set(7, value); - } - - /** - * Getter for asset_metadata.ticker. - */ - public String getTicker() { - return (String) get(7); - } - - /** - * Setter for asset_metadata.url. - */ - public void setUrl(String value) { - set(8, value); - } - - /** - * Getter for asset_metadata.url. - */ - public String getUrl() { - return (String) get(8); - } - - /** - * Setter for asset_metadata.ident. - */ - public void setIdent(Long value) { - set(9, value); - } - - /** - * Getter for asset_metadata.ident. - */ - public Long getIdent() { - return (Long) get(9); - } - - /** - * Setter for asset_metadata.logo_hash. - */ - public void setLogoHash(String value) { - set(10, value); - } - - /** - * Getter for asset_metadata.logo_hash. - */ - public String getLogoHash() { - return (String) get(10); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record11 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); - } - - @Override - public Field field1() { - return AssetMetadata.ASSET_METADATA.ID; - } - - @Override - public Field field2() { - return AssetMetadata.ASSET_METADATA.DECIMALS; - } - - @Override - public Field field3() { - return AssetMetadata.ASSET_METADATA.DESCRIPTION; - } - - @Override - public Field field4() { - return AssetMetadata.ASSET_METADATA.LOGO; - } - - @Override - public Field field5() { - return AssetMetadata.ASSET_METADATA.NAME; - } - - @Override - public Field field6() { - return AssetMetadata.ASSET_METADATA.POLICY; - } - - @Override - public Field field7() { - return AssetMetadata.ASSET_METADATA.SUBJECT; - } - - @Override - public Field field8() { - return AssetMetadata.ASSET_METADATA.TICKER; - } - - @Override - public Field field9() { - return AssetMetadata.ASSET_METADATA.URL; - } - - @Override - public Field field10() { - return AssetMetadata.ASSET_METADATA.IDENT; - } - - @Override - public Field field11() { - return AssetMetadata.ASSET_METADATA.LOGO_HASH; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Integer component2() { - return getDecimals(); - } - - @Override - public String component3() { - return getDescription(); - } - - @Override - public String component4() { - return getLogo(); - } - - @Override - public String component5() { - return getName(); - } - - @Override - public String component6() { - return getPolicy(); - } - - @Override - public String component7() { - return getSubject(); - } - - @Override - public String component8() { - return getTicker(); - } - - @Override - public String component9() { - return getUrl(); - } - - @Override - public Long component10() { - return getIdent(); - } - - @Override - public String component11() { - return getLogoHash(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Integer value2() { - return getDecimals(); - } - - @Override - public String value3() { - return getDescription(); - } - - @Override - public String value4() { - return getLogo(); - } - - @Override - public String value5() { - return getName(); - } - - @Override - public String value6() { - return getPolicy(); - } - - @Override - public String value7() { - return getSubject(); - } - - @Override - public String value8() { - return getTicker(); - } - - @Override - public String value9() { - return getUrl(); - } - - @Override - public Long value10() { - return getIdent(); - } - - @Override - public String value11() { - return getLogoHash(); - } - - @Override - public AssetMetadataRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public AssetMetadataRecord value2(Integer value) { - setDecimals(value); - return this; - } - - @Override - public AssetMetadataRecord value3(String value) { - setDescription(value); - return this; - } - - @Override - public AssetMetadataRecord value4(String value) { - setLogo(value); - return this; - } - - @Override - public AssetMetadataRecord value5(String value) { - setName(value); - return this; - } - - @Override - public AssetMetadataRecord value6(String value) { - setPolicy(value); - return this; - } - - @Override - public AssetMetadataRecord value7(String value) { - setSubject(value); - return this; - } - - @Override - public AssetMetadataRecord value8(String value) { - setTicker(value); - return this; - } - - @Override - public AssetMetadataRecord value9(String value) { - setUrl(value); - return this; - } - - @Override - public AssetMetadataRecord value10(Long value) { - setIdent(value); - return this; - } - - @Override - public AssetMetadataRecord value11(String value) { - setLogoHash(value); - return this; - } - - @Override - public AssetMetadataRecord values(Long value1, Integer value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, Long value10, String value11) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached AssetMetadataRecord - */ - public AssetMetadataRecord() { - super(AssetMetadata.ASSET_METADATA); - } - - /** - * Create a detached, initialised AssetMetadataRecord - */ - public AssetMetadataRecord(Long id, Integer decimals, String description, String logo, String name, String policy, String subject, String ticker, String url, Long ident, String logoHash) { - super(AssetMetadata.ASSET_METADATA); - - setId(id); - setDecimals(decimals); - setDescription(description); - setLogo(logo); - setName(name); - setPolicy(policy); - setSubject(subject); - setTicker(ticker); - setUrl(url); - setIdent(ident); - setLogoHash(logoHash); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised AssetMetadataRecord - */ - public AssetMetadataRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.AssetMetadata value) { - super(AssetMetadata.ASSET_METADATA); - - if (value != null) { - setId(value.getId()); - setDecimals(value.getDecimals()); - setDescription(value.getDescription()); - setLogo(value.getLogo()); - setName(value.getName()); - setPolicy(value.getPolicy()); - setSubject(value.getSubject()); - setTicker(value.getTicker()); - setUrl(value.getUrl()); - setIdent(value.getIdent()); - setLogoHash(value.getLogoHash()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/Cursor_Record.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/Cursor_Record.java new file mode 100644 index 00000000..245f17c7 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/Cursor_Record.java @@ -0,0 +1,387 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.records; + + +import java.time.LocalDateTime; + +import org.cardanofoundation.ledgersync.jooq.tables.Cursor_; +import org.jooq.Field; +import org.jooq.Record2; +import org.jooq.Record8; +import org.jooq.Row8; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Cursor_Record extends UpdatableRecordImpl implements Record8 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for cursor_.id. + */ + public void setId(Integer value) { + set(0, value); + } + + /** + * Getter for cursor_.id. + */ + public Integer getId() { + return (Integer) get(0); + } + + /** + * Setter for cursor_.block_hash. + */ + public void setBlockHash(String value) { + set(1, value); + } + + /** + * Getter for cursor_.block_hash. + */ + public String getBlockHash() { + return (String) get(1); + } + + /** + * Setter for cursor_.slot. + */ + public void setSlot(Long value) { + set(2, value); + } + + /** + * Getter for cursor_.slot. + */ + public Long getSlot() { + return (Long) get(2); + } + + /** + * Setter for cursor_.block_number. + */ + public void setBlockNumber(Long value) { + set(3, value); + } + + /** + * Getter for cursor_.block_number. + */ + public Long getBlockNumber() { + return (Long) get(3); + } + + /** + * Setter for cursor_.era. + */ + public void setEra(Integer value) { + set(4, value); + } + + /** + * Getter for cursor_.era. + */ + public Integer getEra() { + return (Integer) get(4); + } + + /** + * Setter for cursor_.prev_block_hash. + */ + public void setPrevBlockHash(String value) { + set(5, value); + } + + /** + * Getter for cursor_.prev_block_hash. + */ + public String getPrevBlockHash() { + return (String) get(5); + } + + /** + * Setter for cursor_.create_datetime. + */ + public void setCreateDatetime(LocalDateTime value) { + set(6, value); + } + + /** + * Getter for cursor_.create_datetime. + */ + public LocalDateTime getCreateDatetime() { + return (LocalDateTime) get(6); + } + + /** + * Setter for cursor_.update_datetime. + */ + public void setUpdateDatetime(LocalDateTime value) { + set(7, value); + } + + /** + * Getter for cursor_.update_datetime. + */ + public LocalDateTime getUpdateDatetime() { + return (LocalDateTime) get(7); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record2 key() { + return (Record2) super.key(); + } + + // ------------------------------------------------------------------------- + // Record8 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row8 fieldsRow() { + return (Row8) super.fieldsRow(); + } + + @Override + public Row8 valuesRow() { + return (Row8) super.valuesRow(); + } + + @Override + public Field field1() { + return Cursor_.CURSOR_.ID; + } + + @Override + public Field field2() { + return Cursor_.CURSOR_.BLOCK_HASH; + } + + @Override + public Field field3() { + return Cursor_.CURSOR_.SLOT; + } + + @Override + public Field field4() { + return Cursor_.CURSOR_.BLOCK_NUMBER; + } + + @Override + public Field field5() { + return Cursor_.CURSOR_.ERA; + } + + @Override + public Field field6() { + return Cursor_.CURSOR_.PREV_BLOCK_HASH; + } + + @Override + public Field field7() { + return Cursor_.CURSOR_.CREATE_DATETIME; + } + + @Override + public Field field8() { + return Cursor_.CURSOR_.UPDATE_DATETIME; + } + + @Override + public Integer component1() { + return getId(); + } + + @Override + public String component2() { + return getBlockHash(); + } + + @Override + public Long component3() { + return getSlot(); + } + + @Override + public Long component4() { + return getBlockNumber(); + } + + @Override + public Integer component5() { + return getEra(); + } + + @Override + public String component6() { + return getPrevBlockHash(); + } + + @Override + public LocalDateTime component7() { + return getCreateDatetime(); + } + + @Override + public LocalDateTime component8() { + return getUpdateDatetime(); + } + + @Override + public Integer value1() { + return getId(); + } + + @Override + public String value2() { + return getBlockHash(); + } + + @Override + public Long value3() { + return getSlot(); + } + + @Override + public Long value4() { + return getBlockNumber(); + } + + @Override + public Integer value5() { + return getEra(); + } + + @Override + public String value6() { + return getPrevBlockHash(); + } + + @Override + public LocalDateTime value7() { + return getCreateDatetime(); + } + + @Override + public LocalDateTime value8() { + return getUpdateDatetime(); + } + + @Override + public Cursor_Record value1(Integer value) { + setId(value); + return this; + } + + @Override + public Cursor_Record value2(String value) { + setBlockHash(value); + return this; + } + + @Override + public Cursor_Record value3(Long value) { + setSlot(value); + return this; + } + + @Override + public Cursor_Record value4(Long value) { + setBlockNumber(value); + return this; + } + + @Override + public Cursor_Record value5(Integer value) { + setEra(value); + return this; + } + + @Override + public Cursor_Record value6(String value) { + setPrevBlockHash(value); + return this; + } + + @Override + public Cursor_Record value7(LocalDateTime value) { + setCreateDatetime(value); + return this; + } + + @Override + public Cursor_Record value8(LocalDateTime value) { + setUpdateDatetime(value); + return this; + } + + @Override + public Cursor_Record values(Integer value1, String value2, Long value3, Long value4, Integer value5, String value6, LocalDateTime value7, LocalDateTime value8) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached Cursor_Record + */ + public Cursor_Record() { + super(Cursor_.CURSOR_); + } + + /** + * Create a detached, initialised Cursor_Record + */ + public Cursor_Record(Integer id, String blockHash, Long slot, Long blockNumber, Integer era, String prevBlockHash, LocalDateTime createDatetime, LocalDateTime updateDatetime) { + super(Cursor_.CURSOR_); + + setId(id); + setBlockHash(blockHash); + setSlot(slot); + setBlockNumber(blockNumber); + setEra(era); + setPrevBlockHash(prevBlockHash); + setCreateDatetime(createDatetime); + setUpdateDatetime(updateDatetime); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised Cursor_Record + */ + public Cursor_Record(org.cardanofoundation.ledgersync.jooq.tables.pojos.Cursor_ value) { + super(Cursor_.CURSOR_); + + if (value != null) { + setId(value.getId()); + setBlockHash(value.getBlockHash()); + setSlot(value.getSlot()); + setBlockNumber(value.getBlockNumber()); + setEra(value.getEra()); + setPrevBlockHash(value.getPrevBlockHash()); + setCreateDatetime(value.getCreateDatetime()); + setUpdateDatetime(value.getUpdateDatetime()); + resetChangedOnNotNull(); + } + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/EraRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/EraRecord.java new file mode 100644 index 00000000..53284f17 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/EraRecord.java @@ -0,0 +1,233 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.records; + + +import org.cardanofoundation.ledgersync.jooq.tables.Era; +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record4; +import org.jooq.Row4; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class EraRecord extends UpdatableRecordImpl implements Record4 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for era.era. + */ + public void setEra(Integer value) { + set(0, value); + } + + /** + * Getter for era.era. + */ + public Integer getEra() { + return (Integer) get(0); + } + + /** + * Setter for era.start_slot. + */ + public void setStartSlot(Long value) { + set(1, value); + } + + /** + * Getter for era.start_slot. + */ + public Long getStartSlot() { + return (Long) get(1); + } + + /** + * Setter for era.block. + */ + public void setBlock(Long value) { + set(2, value); + } + + /** + * Getter for era.block. + */ + public Long getBlock() { + return (Long) get(2); + } + + /** + * Setter for era.block_hash. + */ + public void setBlockHash(String value) { + set(3, value); + } + + /** + * Getter for era.block_hash. + */ + public String getBlockHash() { + return (String) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record4 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + @Override + public Row4 valuesRow() { + return (Row4) super.valuesRow(); + } + + @Override + public Field field1() { + return Era.ERA.ERA_; + } + + @Override + public Field field2() { + return Era.ERA.START_SLOT; + } + + @Override + public Field field3() { + return Era.ERA.BLOCK; + } + + @Override + public Field field4() { + return Era.ERA.BLOCK_HASH; + } + + @Override + public Integer component1() { + return getEra(); + } + + @Override + public Long component2() { + return getStartSlot(); + } + + @Override + public Long component3() { + return getBlock(); + } + + @Override + public String component4() { + return getBlockHash(); + } + + @Override + public Integer value1() { + return getEra(); + } + + @Override + public Long value2() { + return getStartSlot(); + } + + @Override + public Long value3() { + return getBlock(); + } + + @Override + public String value4() { + return getBlockHash(); + } + + @Override + public EraRecord value1(Integer value) { + setEra(value); + return this; + } + + @Override + public EraRecord value2(Long value) { + setStartSlot(value); + return this; + } + + @Override + public EraRecord value3(Long value) { + setBlock(value); + return this; + } + + @Override + public EraRecord value4(String value) { + setBlockHash(value); + return this; + } + + @Override + public EraRecord values(Integer value1, Long value2, Long value3, String value4) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached EraRecord + */ + public EraRecord() { + super(Era.ERA); + } + + /** + * Create a detached, initialised EraRecord + */ + public EraRecord(Integer era, Long startSlot, Long block, String blockHash) { + super(Era.ERA); + + setEra(era); + setStartSlot(startSlot); + setBlock(block); + setBlockHash(blockHash); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised EraRecord + */ + public EraRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.Era value) { + super(Era.ERA); + + if (value != null) { + setEra(value.getEra()); + setStartSlot(value.getStartSlot()); + setBlock(value.getBlock()); + setBlockHash(value.getBlockHash()); + resetChangedOnNotNull(); + } + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/PoolReportHistoryRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/PoolReportHistoryRecord.java deleted file mode 100644 index af4dabd3..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/PoolReportHistoryRecord.java +++ /dev/null @@ -1,499 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import org.cardanofoundation.ledgersync.jooq.tables.PoolReportHistory; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record11; -import org.jooq.Row11; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class PoolReportHistoryRecord extends UpdatableRecordImpl implements Record11 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for pool_report_history.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for pool_report_history.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for pool_report_history.pool_id. - */ - public void setPoolId(String value) { - set(1, value); - } - - /** - * Getter for pool_report_history.pool_id. - */ - public String getPoolId() { - return (String) get(1); - } - - /** - * Setter for pool_report_history.is_pool_size. - */ - public void setIsPoolSize(Boolean value) { - set(2, value); - } - - /** - * Getter for pool_report_history.is_pool_size. - */ - public Boolean getIsPoolSize() { - return (Boolean) get(2); - } - - /** - * Setter for pool_report_history.is_fees_paid. - */ - public void setIsFeesPaid(Boolean value) { - set(3, value); - } - - /** - * Getter for pool_report_history.is_fees_paid. - */ - public Boolean getIsFeesPaid() { - return (Boolean) get(3); - } - - /** - * Setter for pool_report_history.begin_epoch. - */ - public void setBeginEpoch(Integer value) { - set(4, value); - } - - /** - * Getter for pool_report_history.begin_epoch. - */ - public Integer getBeginEpoch() { - return (Integer) get(4); - } - - /** - * Setter for pool_report_history.end_epoch. - */ - public void setEndEpoch(Integer value) { - set(5, value); - } - - /** - * Getter for pool_report_history.end_epoch. - */ - public Integer getEndEpoch() { - return (Integer) get(5); - } - - /** - * Setter for pool_report_history.report_id. - */ - public void setReportId(Long value) { - set(6, value); - } - - /** - * Getter for pool_report_history.report_id. - */ - public Long getReportId() { - return (Long) get(6); - } - - /** - * Setter for pool_report_history.event_registration. - */ - public void setEventRegistration(Boolean value) { - set(7, value); - } - - /** - * Getter for pool_report_history.event_registration. - */ - public Boolean getEventRegistration() { - return (Boolean) get(7); - } - - /** - * Setter for pool_report_history.event_deregistration. - */ - public void setEventDeregistration(Boolean value) { - set(8, value); - } - - /** - * Getter for pool_report_history.event_deregistration. - */ - public Boolean getEventDeregistration() { - return (Boolean) get(8); - } - - /** - * Setter for pool_report_history.event_reward. - */ - public void setEventReward(Boolean value) { - set(9, value); - } - - /** - * Getter for pool_report_history.event_reward. - */ - public Boolean getEventReward() { - return (Boolean) get(9); - } - - /** - * Setter for pool_report_history.event_pool_update. - */ - public void setEventPoolUpdate(Boolean value) { - set(10, value); - } - - /** - * Getter for pool_report_history.event_pool_update. - */ - public Boolean getEventPoolUpdate() { - return (Boolean) get(10); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record11 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); - } - - @Override - public Field field1() { - return PoolReportHistory.POOL_REPORT_HISTORY.ID; - } - - @Override - public Field field2() { - return PoolReportHistory.POOL_REPORT_HISTORY.POOL_ID; - } - - @Override - public Field field3() { - return PoolReportHistory.POOL_REPORT_HISTORY.IS_POOL_SIZE; - } - - @Override - public Field field4() { - return PoolReportHistory.POOL_REPORT_HISTORY.IS_FEES_PAID; - } - - @Override - public Field field5() { - return PoolReportHistory.POOL_REPORT_HISTORY.BEGIN_EPOCH; - } - - @Override - public Field field6() { - return PoolReportHistory.POOL_REPORT_HISTORY.END_EPOCH; - } - - @Override - public Field field7() { - return PoolReportHistory.POOL_REPORT_HISTORY.REPORT_ID; - } - - @Override - public Field field8() { - return PoolReportHistory.POOL_REPORT_HISTORY.EVENT_REGISTRATION; - } - - @Override - public Field field9() { - return PoolReportHistory.POOL_REPORT_HISTORY.EVENT_DEREGISTRATION; - } - - @Override - public Field field10() { - return PoolReportHistory.POOL_REPORT_HISTORY.EVENT_REWARD; - } - - @Override - public Field field11() { - return PoolReportHistory.POOL_REPORT_HISTORY.EVENT_POOL_UPDATE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getPoolId(); - } - - @Override - public Boolean component3() { - return getIsPoolSize(); - } - - @Override - public Boolean component4() { - return getIsFeesPaid(); - } - - @Override - public Integer component5() { - return getBeginEpoch(); - } - - @Override - public Integer component6() { - return getEndEpoch(); - } - - @Override - public Long component7() { - return getReportId(); - } - - @Override - public Boolean component8() { - return getEventRegistration(); - } - - @Override - public Boolean component9() { - return getEventDeregistration(); - } - - @Override - public Boolean component10() { - return getEventReward(); - } - - @Override - public Boolean component11() { - return getEventPoolUpdate(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getPoolId(); - } - - @Override - public Boolean value3() { - return getIsPoolSize(); - } - - @Override - public Boolean value4() { - return getIsFeesPaid(); - } - - @Override - public Integer value5() { - return getBeginEpoch(); - } - - @Override - public Integer value6() { - return getEndEpoch(); - } - - @Override - public Long value7() { - return getReportId(); - } - - @Override - public Boolean value8() { - return getEventRegistration(); - } - - @Override - public Boolean value9() { - return getEventDeregistration(); - } - - @Override - public Boolean value10() { - return getEventReward(); - } - - @Override - public Boolean value11() { - return getEventPoolUpdate(); - } - - @Override - public PoolReportHistoryRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public PoolReportHistoryRecord value2(String value) { - setPoolId(value); - return this; - } - - @Override - public PoolReportHistoryRecord value3(Boolean value) { - setIsPoolSize(value); - return this; - } - - @Override - public PoolReportHistoryRecord value4(Boolean value) { - setIsFeesPaid(value); - return this; - } - - @Override - public PoolReportHistoryRecord value5(Integer value) { - setBeginEpoch(value); - return this; - } - - @Override - public PoolReportHistoryRecord value6(Integer value) { - setEndEpoch(value); - return this; - } - - @Override - public PoolReportHistoryRecord value7(Long value) { - setReportId(value); - return this; - } - - @Override - public PoolReportHistoryRecord value8(Boolean value) { - setEventRegistration(value); - return this; - } - - @Override - public PoolReportHistoryRecord value9(Boolean value) { - setEventDeregistration(value); - return this; - } - - @Override - public PoolReportHistoryRecord value10(Boolean value) { - setEventReward(value); - return this; - } - - @Override - public PoolReportHistoryRecord value11(Boolean value) { - setEventPoolUpdate(value); - return this; - } - - @Override - public PoolReportHistoryRecord values(Long value1, String value2, Boolean value3, Boolean value4, Integer value5, Integer value6, Long value7, Boolean value8, Boolean value9, Boolean value10, Boolean value11) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached PoolReportHistoryRecord - */ - public PoolReportHistoryRecord() { - super(PoolReportHistory.POOL_REPORT_HISTORY); - } - - /** - * Create a detached, initialised PoolReportHistoryRecord - */ - public PoolReportHistoryRecord(Long id, String poolId, Boolean isPoolSize, Boolean isFeesPaid, Integer beginEpoch, Integer endEpoch, Long reportId, Boolean eventRegistration, Boolean eventDeregistration, Boolean eventReward, Boolean eventPoolUpdate) { - super(PoolReportHistory.POOL_REPORT_HISTORY); - - setId(id); - setPoolId(poolId); - setIsPoolSize(isPoolSize); - setIsFeesPaid(isFeesPaid); - setBeginEpoch(beginEpoch); - setEndEpoch(endEpoch); - setReportId(reportId); - setEventRegistration(eventRegistration); - setEventDeregistration(eventDeregistration); - setEventReward(eventReward); - setEventPoolUpdate(eventPoolUpdate); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised PoolReportHistoryRecord - */ - public PoolReportHistoryRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.PoolReportHistory value) { - super(PoolReportHistory.POOL_REPORT_HISTORY); - - if (value != null) { - setId(value.getId()); - setPoolId(value.getPoolId()); - setIsPoolSize(value.getIsPoolSize()); - setIsFeesPaid(value.getIsFeesPaid()); - setBeginEpoch(value.getBeginEpoch()); - setEndEpoch(value.getEndEpoch()); - setReportId(value.getReportId()); - setEventRegistration(value.getEventRegistration()); - setEventDeregistration(value.getEventDeregistration()); - setEventReward(value.getEventReward()); - setEventPoolUpdate(value.getEventPoolUpdate()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ReportHistoryRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ReportHistoryRecord.java deleted file mode 100644 index 4b5cc54f..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ReportHistoryRecord.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.time.LocalDateTime; - -import org.cardanofoundation.ledgersync.jooq.tables.ReportHistory; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record8; -import org.jooq.Row8; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ReportHistoryRecord extends UpdatableRecordImpl implements Record8 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for report_history.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for report_history.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for report_history.report_name. - */ - public void setReportName(String value) { - set(1, value); - } - - /** - * Getter for report_history.report_name. - */ - public String getReportName() { - return (String) get(1); - } - - /** - * Setter for report_history.created_at. - */ - public void setCreatedAt(LocalDateTime value) { - set(2, value); - } - - /** - * Getter for report_history.created_at. - */ - public LocalDateTime getCreatedAt() { - return (LocalDateTime) get(2); - } - - /** - * Setter for report_history.username. - */ - public void setUsername(String value) { - set(3, value); - } - - /** - * Getter for report_history.username. - */ - public String getUsername() { - return (String) get(3); - } - - /** - * Setter for report_history.status. - */ - public void setStatus(String value) { - set(4, value); - } - - /** - * Getter for report_history.status. - */ - public String getStatus() { - return (String) get(4); - } - - /** - * Setter for report_history.type. - */ - public void setType(String value) { - set(5, value); - } - - /** - * Getter for report_history.type. - */ - public String getType() { - return (String) get(5); - } - - /** - * Setter for report_history.storage_key. - */ - public void setStorageKey(String value) { - set(6, value); - } - - /** - * Getter for report_history.storage_key. - */ - public String getStorageKey() { - return (String) get(6); - } - - /** - * Setter for report_history.uploaded_at. - */ - public void setUploadedAt(LocalDateTime value) { - set(7, value); - } - - /** - * Getter for report_history.uploaded_at. - */ - public LocalDateTime getUploadedAt() { - return (LocalDateTime) get(7); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record8 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); - } - - @Override - public Row8 valuesRow() { - return (Row8) super.valuesRow(); - } - - @Override - public Field field1() { - return ReportHistory.REPORT_HISTORY.ID; - } - - @Override - public Field field2() { - return ReportHistory.REPORT_HISTORY.REPORT_NAME; - } - - @Override - public Field field3() { - return ReportHistory.REPORT_HISTORY.CREATED_AT; - } - - @Override - public Field field4() { - return ReportHistory.REPORT_HISTORY.USERNAME; - } - - @Override - public Field field5() { - return ReportHistory.REPORT_HISTORY.STATUS; - } - - @Override - public Field field6() { - return ReportHistory.REPORT_HISTORY.TYPE; - } - - @Override - public Field field7() { - return ReportHistory.REPORT_HISTORY.STORAGE_KEY; - } - - @Override - public Field field8() { - return ReportHistory.REPORT_HISTORY.UPLOADED_AT; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getReportName(); - } - - @Override - public LocalDateTime component3() { - return getCreatedAt(); - } - - @Override - public String component4() { - return getUsername(); - } - - @Override - public String component5() { - return getStatus(); - } - - @Override - public String component6() { - return getType(); - } - - @Override - public String component7() { - return getStorageKey(); - } - - @Override - public LocalDateTime component8() { - return getUploadedAt(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getReportName(); - } - - @Override - public LocalDateTime value3() { - return getCreatedAt(); - } - - @Override - public String value4() { - return getUsername(); - } - - @Override - public String value5() { - return getStatus(); - } - - @Override - public String value6() { - return getType(); - } - - @Override - public String value7() { - return getStorageKey(); - } - - @Override - public LocalDateTime value8() { - return getUploadedAt(); - } - - @Override - public ReportHistoryRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public ReportHistoryRecord value2(String value) { - setReportName(value); - return this; - } - - @Override - public ReportHistoryRecord value3(LocalDateTime value) { - setCreatedAt(value); - return this; - } - - @Override - public ReportHistoryRecord value4(String value) { - setUsername(value); - return this; - } - - @Override - public ReportHistoryRecord value5(String value) { - setStatus(value); - return this; - } - - @Override - public ReportHistoryRecord value6(String value) { - setType(value); - return this; - } - - @Override - public ReportHistoryRecord value7(String value) { - setStorageKey(value); - return this; - } - - @Override - public ReportHistoryRecord value8(LocalDateTime value) { - setUploadedAt(value); - return this; - } - - @Override - public ReportHistoryRecord values(Long value1, String value2, LocalDateTime value3, String value4, String value5, String value6, String value7, LocalDateTime value8) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached ReportHistoryRecord - */ - public ReportHistoryRecord() { - super(ReportHistory.REPORT_HISTORY); - } - - /** - * Create a detached, initialised ReportHistoryRecord - */ - public ReportHistoryRecord(Long id, String reportName, LocalDateTime createdAt, String username, String status, String type, String storageKey, LocalDateTime uploadedAt) { - super(ReportHistory.REPORT_HISTORY); - - setId(id); - setReportName(reportName); - setCreatedAt(createdAt); - setUsername(username); - setStatus(status); - setType(type); - setStorageKey(storageKey); - setUploadedAt(uploadedAt); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised ReportHistoryRecord - */ - public ReportHistoryRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.ReportHistory value) { - super(ReportHistory.REPORT_HISTORY); - - if (value != null) { - setId(value.getId()); - setReportName(value.getReportName()); - setCreatedAt(value.getCreatedAt()); - setUsername(value.getUsername()); - setStatus(value.getStatus()); - setType(value.getType()); - setStorageKey(value.getStorageKey()); - setUploadedAt(value.getUploadedAt()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ScriptRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ScriptRecord.java index 163893f8..29fe9ffc 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ScriptRecord.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/ScriptRecord.java @@ -7,8 +7,8 @@ import org.cardanofoundation.ledgersync.jooq.tables.Script; import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record7; -import org.jooq.Row7; +import org.jooq.Record8; +import org.jooq.Row8; import org.jooq.impl.UpdatableRecordImpl; @@ -16,7 +16,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ScriptRecord extends UpdatableRecordImpl implements Record7 { +public class ScriptRecord extends UpdatableRecordImpl implements Record8 { private static final long serialVersionUID = 1L; @@ -118,6 +118,20 @@ public Long getTxId() { return (Long) get(6); } + /** + * Setter for script.verified. + */ + public void setVerified(Boolean value) { + set(7, value); + } + + /** + * Getter for script.verified. + */ + public Boolean getVerified() { + return (Boolean) get(7); + } + // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -128,17 +142,17 @@ public Record1 key() { } // ------------------------------------------------------------------------- - // Record7 type implementation + // Record8 type implementation // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public Row8 fieldsRow() { + return (Row8) super.fieldsRow(); } @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); + public Row8 valuesRow() { + return (Row8) super.valuesRow(); } @Override @@ -176,6 +190,11 @@ public Field field7() { return Script.SCRIPT.TX_ID; } + @Override + public Field field8() { + return Script.SCRIPT.VERIFIED; + } + @Override public Long component1() { return getId(); @@ -211,6 +230,11 @@ public Long component7() { return getTxId(); } + @Override + public Boolean component8() { + return getVerified(); + } + @Override public Long value1() { return getId(); @@ -246,6 +270,11 @@ public Long value7() { return getTxId(); } + @Override + public Boolean value8() { + return getVerified(); + } + @Override public ScriptRecord value1(Long value) { setId(value); @@ -289,7 +318,13 @@ public ScriptRecord value7(Long value) { } @Override - public ScriptRecord values(Long value1, byte[] value2, String value3, String value4, Integer value5, String value6, Long value7) { + public ScriptRecord value8(Boolean value) { + setVerified(value); + return this; + } + + @Override + public ScriptRecord values(Long value1, byte[] value2, String value3, String value4, Integer value5, String value6, Long value7, Boolean value8) { value1(value1); value2(value2); value3(value3); @@ -297,6 +332,7 @@ public ScriptRecord values(Long value1, byte[] value2, String value3, String val value5(value5); value6(value6); value7(value7); + value8(value8); return this; } @@ -314,7 +350,7 @@ public ScriptRecord() { /** * Create a detached, initialised ScriptRecord */ - public ScriptRecord(Long id, byte[] bytes, String hash, String json, Integer serialisedSize, String type, Long txId) { + public ScriptRecord(Long id, byte[] bytes, String hash, String json, Integer serialisedSize, String type, Long txId, Boolean verified) { super(Script.SCRIPT); setId(id); @@ -324,6 +360,7 @@ public ScriptRecord(Long id, byte[] bytes, String hash, String json, Integer ser setSerialisedSize(serialisedSize); setType(type); setTxId(txId); + setVerified(verified); resetChangedOnNotNull(); } @@ -341,6 +378,7 @@ public ScriptRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.Script va setSerialisedSize(value.getSerialisedSize()); setType(value.getType()); setTxId(value.getTxId()); + setVerified(value.getVerified()); resetChangedOnNotNull(); } } diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/StakeKeyReportHistoryRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/StakeKeyReportHistoryRecord.java deleted file mode 100644 index 1434ac87..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/StakeKeyReportHistoryRecord.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.time.LocalDateTime; - -import org.cardanofoundation.ledgersync.jooq.tables.StakeKeyReportHistory; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record12; -import org.jooq.Row12; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class StakeKeyReportHistoryRecord extends UpdatableRecordImpl implements Record12 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for stake_key_report_history.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for stake_key_report_history.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for stake_key_report_history.stake_key. - */ - public void setStakeKey(String value) { - set(1, value); - } - - /** - * Getter for stake_key_report_history.stake_key. - */ - public String getStakeKey() { - return (String) get(1); - } - - /** - * Setter for stake_key_report_history.from_date. - */ - public void setFromDate(LocalDateTime value) { - set(2, value); - } - - /** - * Getter for stake_key_report_history.from_date. - */ - public LocalDateTime getFromDate() { - return (LocalDateTime) get(2); - } - - /** - * Setter for stake_key_report_history.to_date. - */ - public void setToDate(LocalDateTime value) { - set(3, value); - } - - /** - * Getter for stake_key_report_history.to_date. - */ - public LocalDateTime getToDate() { - return (LocalDateTime) get(3); - } - - /** - * Setter for stake_key_report_history.is_ada_transfer. - */ - public void setIsAdaTransfer(Boolean value) { - set(4, value); - } - - /** - * Getter for stake_key_report_history.is_ada_transfer. - */ - public Boolean getIsAdaTransfer() { - return (Boolean) get(4); - } - - /** - * Setter for stake_key_report_history.is_fees_paid. - */ - public void setIsFeesPaid(Boolean value) { - set(5, value); - } - - /** - * Getter for stake_key_report_history.is_fees_paid. - */ - public Boolean getIsFeesPaid() { - return (Boolean) get(5); - } - - /** - * Setter for stake_key_report_history.report_id. - */ - public void setReportId(Long value) { - set(6, value); - } - - /** - * Getter for stake_key_report_history.report_id. - */ - public Long getReportId() { - return (Long) get(6); - } - - /** - * Setter for stake_key_report_history.event_registration. - */ - public void setEventRegistration(Boolean value) { - set(7, value); - } - - /** - * Getter for stake_key_report_history.event_registration. - */ - public Boolean getEventRegistration() { - return (Boolean) get(7); - } - - /** - * Setter for stake_key_report_history.event_delegation. - */ - public void setEventDelegation(Boolean value) { - set(8, value); - } - - /** - * Getter for stake_key_report_history.event_delegation. - */ - public Boolean getEventDelegation() { - return (Boolean) get(8); - } - - /** - * Setter for stake_key_report_history.event_rewards. - */ - public void setEventRewards(Boolean value) { - set(9, value); - } - - /** - * Getter for stake_key_report_history.event_rewards. - */ - public Boolean getEventRewards() { - return (Boolean) get(9); - } - - /** - * Setter for stake_key_report_history.event_withdrawal. - */ - public void setEventWithdrawal(Boolean value) { - set(10, value); - } - - /** - * Getter for stake_key_report_history.event_withdrawal. - */ - public Boolean getEventWithdrawal() { - return (Boolean) get(10); - } - - /** - * Setter for stake_key_report_history.event_deregistration. - */ - public void setEventDeregistration(Boolean value) { - set(11, value); - } - - /** - * Getter for stake_key_report_history.event_deregistration. - */ - public Boolean getEventDeregistration() { - return (Boolean) get(11); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record12 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); - } - - @Override - public Row12 valuesRow() { - return (Row12) super.valuesRow(); - } - - @Override - public Field field1() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.ID; - } - - @Override - public Field field2() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.STAKE_KEY; - } - - @Override - public Field field3() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.FROM_DATE; - } - - @Override - public Field field4() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.TO_DATE; - } - - @Override - public Field field5() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.IS_ADA_TRANSFER; - } - - @Override - public Field field6() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.IS_FEES_PAID; - } - - @Override - public Field field7() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.REPORT_ID; - } - - @Override - public Field field8() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_REGISTRATION; - } - - @Override - public Field field9() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_DELEGATION; - } - - @Override - public Field field10() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_REWARDS; - } - - @Override - public Field field11() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_WITHDRAWAL; - } - - @Override - public Field field12() { - return StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY.EVENT_DEREGISTRATION; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getStakeKey(); - } - - @Override - public LocalDateTime component3() { - return getFromDate(); - } - - @Override - public LocalDateTime component4() { - return getToDate(); - } - - @Override - public Boolean component5() { - return getIsAdaTransfer(); - } - - @Override - public Boolean component6() { - return getIsFeesPaid(); - } - - @Override - public Long component7() { - return getReportId(); - } - - @Override - public Boolean component8() { - return getEventRegistration(); - } - - @Override - public Boolean component9() { - return getEventDelegation(); - } - - @Override - public Boolean component10() { - return getEventRewards(); - } - - @Override - public Boolean component11() { - return getEventWithdrawal(); - } - - @Override - public Boolean component12() { - return getEventDeregistration(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getStakeKey(); - } - - @Override - public LocalDateTime value3() { - return getFromDate(); - } - - @Override - public LocalDateTime value4() { - return getToDate(); - } - - @Override - public Boolean value5() { - return getIsAdaTransfer(); - } - - @Override - public Boolean value6() { - return getIsFeesPaid(); - } - - @Override - public Long value7() { - return getReportId(); - } - - @Override - public Boolean value8() { - return getEventRegistration(); - } - - @Override - public Boolean value9() { - return getEventDelegation(); - } - - @Override - public Boolean value10() { - return getEventRewards(); - } - - @Override - public Boolean value11() { - return getEventWithdrawal(); - } - - @Override - public Boolean value12() { - return getEventDeregistration(); - } - - @Override - public StakeKeyReportHistoryRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value2(String value) { - setStakeKey(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value3(LocalDateTime value) { - setFromDate(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value4(LocalDateTime value) { - setToDate(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value5(Boolean value) { - setIsAdaTransfer(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value6(Boolean value) { - setIsFeesPaid(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value7(Long value) { - setReportId(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value8(Boolean value) { - setEventRegistration(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value9(Boolean value) { - setEventDelegation(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value10(Boolean value) { - setEventRewards(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value11(Boolean value) { - setEventWithdrawal(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord value12(Boolean value) { - setEventDeregistration(value); - return this; - } - - @Override - public StakeKeyReportHistoryRecord values(Long value1, String value2, LocalDateTime value3, LocalDateTime value4, Boolean value5, Boolean value6, Long value7, Boolean value8, Boolean value9, Boolean value10, Boolean value11, Boolean value12) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached StakeKeyReportHistoryRecord - */ - public StakeKeyReportHistoryRecord() { - super(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY); - } - - /** - * Create a detached, initialised StakeKeyReportHistoryRecord - */ - public StakeKeyReportHistoryRecord(Long id, String stakeKey, LocalDateTime fromDate, LocalDateTime toDate, Boolean isAdaTransfer, Boolean isFeesPaid, Long reportId, Boolean eventRegistration, Boolean eventDelegation, Boolean eventRewards, Boolean eventWithdrawal, Boolean eventDeregistration) { - super(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY); - - setId(id); - setStakeKey(stakeKey); - setFromDate(fromDate); - setToDate(toDate); - setIsAdaTransfer(isAdaTransfer); - setIsFeesPaid(isFeesPaid); - setReportId(reportId); - setEventRegistration(eventRegistration); - setEventDelegation(eventDelegation); - setEventRewards(eventRewards); - setEventWithdrawal(eventWithdrawal); - setEventDeregistration(eventDeregistration); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised StakeKeyReportHistoryRecord - */ - public StakeKeyReportHistoryRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeKeyReportHistory value) { - super(StakeKeyReportHistory.STAKE_KEY_REPORT_HISTORY); - - if (value != null) { - setId(value.getId()); - setStakeKey(value.getStakeKey()); - setFromDate(value.getFromDate()); - setToDate(value.getToDate()); - setIsAdaTransfer(value.getIsAdaTransfer()); - setIsFeesPaid(value.getIsFeesPaid()); - setReportId(value.getReportId()); - setEventRegistration(value.getEventRegistration()); - setEventDelegation(value.getEventDelegation()); - setEventRewards(value.getEventRewards()); - setEventWithdrawal(value.getEventWithdrawal()); - setEventDeregistration(value.getEventDeregistration()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/StakeTxBalanceRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/StakeTxBalanceRecord.java deleted file mode 100644 index 38ef92a3..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/StakeTxBalanceRecord.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.time.LocalDateTime; - -import org.cardanofoundation.ledgersync.jooq.tables.StakeTxBalance; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class StakeTxBalanceRecord extends UpdatableRecordImpl implements Record5 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for stake_tx_balance.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for stake_tx_balance.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for stake_tx_balance.stake_address_id. - */ - public void setStakeAddressId(Long value) { - set(1, value); - } - - /** - * Getter for stake_tx_balance.stake_address_id. - */ - public Long getStakeAddressId() { - return (Long) get(1); - } - - /** - * Setter for stake_tx_balance.tx_id. - */ - public void setTxId(Long value) { - set(2, value); - } - - /** - * Getter for stake_tx_balance.tx_id. - */ - public Long getTxId() { - return (Long) get(2); - } - - /** - * Setter for stake_tx_balance.balance_change. - */ - public void setBalanceChange(Long value) { - set(3, value); - } - - /** - * Getter for stake_tx_balance.balance_change. - */ - public Long getBalanceChange() { - return (Long) get(3); - } - - /** - * Setter for stake_tx_balance.time. - */ - public void setTime(LocalDateTime value) { - set(4, value); - } - - /** - * Getter for stake_tx_balance.time. - */ - public LocalDateTime getTime() { - return (LocalDateTime) get(4); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return StakeTxBalance.STAKE_TX_BALANCE.ID; - } - - @Override - public Field field2() { - return StakeTxBalance.STAKE_TX_BALANCE.STAKE_ADDRESS_ID; - } - - @Override - public Field field3() { - return StakeTxBalance.STAKE_TX_BALANCE.TX_ID; - } - - @Override - public Field field4() { - return StakeTxBalance.STAKE_TX_BALANCE.BALANCE_CHANGE; - } - - @Override - public Field field5() { - return StakeTxBalance.STAKE_TX_BALANCE.TIME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getStakeAddressId(); - } - - @Override - public Long component3() { - return getTxId(); - } - - @Override - public Long component4() { - return getBalanceChange(); - } - - @Override - public LocalDateTime component5() { - return getTime(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getStakeAddressId(); - } - - @Override - public Long value3() { - return getTxId(); - } - - @Override - public Long value4() { - return getBalanceChange(); - } - - @Override - public LocalDateTime value5() { - return getTime(); - } - - @Override - public StakeTxBalanceRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public StakeTxBalanceRecord value2(Long value) { - setStakeAddressId(value); - return this; - } - - @Override - public StakeTxBalanceRecord value3(Long value) { - setTxId(value); - return this; - } - - @Override - public StakeTxBalanceRecord value4(Long value) { - setBalanceChange(value); - return this; - } - - @Override - public StakeTxBalanceRecord value5(LocalDateTime value) { - setTime(value); - return this; - } - - @Override - public StakeTxBalanceRecord values(Long value1, Long value2, Long value3, Long value4, LocalDateTime value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached StakeTxBalanceRecord - */ - public StakeTxBalanceRecord() { - super(StakeTxBalance.STAKE_TX_BALANCE); - } - - /** - * Create a detached, initialised StakeTxBalanceRecord - */ - public StakeTxBalanceRecord(Long id, Long stakeAddressId, Long txId, Long balanceChange, LocalDateTime time) { - super(StakeTxBalance.STAKE_TX_BALANCE); - - setId(id); - setStakeAddressId(stakeAddressId); - setTxId(txId); - setBalanceChange(balanceChange); - setTime(time); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised StakeTxBalanceRecord - */ - public StakeTxBalanceRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.StakeTxBalance value) { - super(StakeTxBalance.STAKE_TX_BALANCE); - - if (value != null) { - setId(value.getId()); - setStakeAddressId(value.getStakeAddressId()); - setTxId(value.getTxId()); - setBalanceChange(value.getBalanceChange()); - setTime(value.getTime()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TokenInfoCheckpointRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TokenInfoCheckpointRecord.java deleted file mode 100644 index 2dab65c9..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TokenInfoCheckpointRecord.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.time.LocalDateTime; - -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfoCheckpoint; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TokenInfoCheckpointRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for token_info_checkpoint.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for token_info_checkpoint.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for token_info_checkpoint.block_no. - */ - public void setBlockNo(Long value) { - set(1, value); - } - - /** - * Getter for token_info_checkpoint.block_no. - */ - public Long getBlockNo() { - return (Long) get(1); - } - - /** - * Setter for token_info_checkpoint.update_time. - */ - public void setUpdateTime(LocalDateTime value) { - set(2, value); - } - - /** - * Getter for token_info_checkpoint.update_time. - */ - public LocalDateTime getUpdateTime() { - return (LocalDateTime) get(2); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.ID; - } - - @Override - public Field field2() { - return TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.BLOCK_NO; - } - - @Override - public Field field3() { - return TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT.UPDATE_TIME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getBlockNo(); - } - - @Override - public LocalDateTime component3() { - return getUpdateTime(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getBlockNo(); - } - - @Override - public LocalDateTime value3() { - return getUpdateTime(); - } - - @Override - public TokenInfoCheckpointRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public TokenInfoCheckpointRecord value2(Long value) { - setBlockNo(value); - return this; - } - - @Override - public TokenInfoCheckpointRecord value3(LocalDateTime value) { - setUpdateTime(value); - return this; - } - - @Override - public TokenInfoCheckpointRecord values(Long value1, Long value2, LocalDateTime value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached TokenInfoCheckpointRecord - */ - public TokenInfoCheckpointRecord() { - super(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT); - } - - /** - * Create a detached, initialised TokenInfoCheckpointRecord - */ - public TokenInfoCheckpointRecord(Long id, Long blockNo, LocalDateTime updateTime) { - super(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT); - - setId(id); - setBlockNo(blockNo); - setUpdateTime(updateTime); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised TokenInfoCheckpointRecord - */ - public TokenInfoCheckpointRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfoCheckpoint value) { - super(TokenInfoCheckpoint.TOKEN_INFO_CHECKPOINT); - - if (value != null) { - setId(value.getId()); - setBlockNo(value.getBlockNo()); - setUpdateTime(value.getUpdateTime()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TokenInfoRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TokenInfoRecord.java deleted file mode 100644 index 736ef82c..00000000 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TokenInfoRecord.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package org.cardanofoundation.ledgersync.jooq.tables.records; - - -import java.math.BigInteger; -import java.time.LocalDateTime; - -import org.cardanofoundation.ledgersync.jooq.tables.TokenInfo; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TokenInfoRecord extends UpdatableRecordImpl implements Record6 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for token_info.id. - */ - public void setId(Long value) { - set(0, value); - } - - /** - * Getter for token_info.id. - */ - public Long getId() { - return (Long) get(0); - } - - /** - * Setter for token_info.ident. - */ - public void setIdent(Long value) { - set(1, value); - } - - /** - * Getter for token_info.ident. - */ - public Long getIdent() { - return (Long) get(1); - } - - /** - * Setter for token_info.number_of_holders. - */ - public void setNumberOfHolders(Long value) { - set(2, value); - } - - /** - * Getter for token_info.number_of_holders. - */ - public Long getNumberOfHolders() { - return (Long) get(2); - } - - /** - * Setter for token_info.volume_24h. - */ - public void setVolume_24h(BigInteger value) { - set(3, value); - } - - /** - * Getter for token_info.volume_24h. - */ - public BigInteger getVolume_24h() { - return (BigInteger) get(3); - } - - /** - * Setter for token_info.block_no. - */ - public void setBlockNo(Long value) { - set(4, value); - } - - /** - * Getter for token_info.block_no. - */ - public Long getBlockNo() { - return (Long) get(4); - } - - /** - * Setter for token_info.update_time. - */ - public void setUpdateTime(LocalDateTime value) { - set(5, value); - } - - /** - * Getter for token_info.update_time. - */ - public LocalDateTime getUpdateTime() { - return (LocalDateTime) get(5); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return TokenInfo.TOKEN_INFO.ID; - } - - @Override - public Field field2() { - return TokenInfo.TOKEN_INFO.IDENT; - } - - @Override - public Field field3() { - return TokenInfo.TOKEN_INFO.NUMBER_OF_HOLDERS; - } - - @Override - public Field field4() { - return TokenInfo.TOKEN_INFO.VOLUME_24H; - } - - @Override - public Field field5() { - return TokenInfo.TOKEN_INFO.BLOCK_NO; - } - - @Override - public Field field6() { - return TokenInfo.TOKEN_INFO.UPDATE_TIME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getIdent(); - } - - @Override - public Long component3() { - return getNumberOfHolders(); - } - - @Override - public BigInteger component4() { - return getVolume_24h(); - } - - @Override - public Long component5() { - return getBlockNo(); - } - - @Override - public LocalDateTime component6() { - return getUpdateTime(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getIdent(); - } - - @Override - public Long value3() { - return getNumberOfHolders(); - } - - @Override - public BigInteger value4() { - return getVolume_24h(); - } - - @Override - public Long value5() { - return getBlockNo(); - } - - @Override - public LocalDateTime value6() { - return getUpdateTime(); - } - - @Override - public TokenInfoRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public TokenInfoRecord value2(Long value) { - setIdent(value); - return this; - } - - @Override - public TokenInfoRecord value3(Long value) { - setNumberOfHolders(value); - return this; - } - - @Override - public TokenInfoRecord value4(BigInteger value) { - setVolume_24h(value); - return this; - } - - @Override - public TokenInfoRecord value5(Long value) { - setBlockNo(value); - return this; - } - - @Override - public TokenInfoRecord value6(LocalDateTime value) { - setUpdateTime(value); - return this; - } - - @Override - public TokenInfoRecord values(Long value1, Long value2, Long value3, BigInteger value4, Long value5, LocalDateTime value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached TokenInfoRecord - */ - public TokenInfoRecord() { - super(TokenInfo.TOKEN_INFO); - } - - /** - * Create a detached, initialised TokenInfoRecord - */ - public TokenInfoRecord(Long id, Long ident, Long numberOfHolders, BigInteger volume_24h, Long blockNo, LocalDateTime updateTime) { - super(TokenInfo.TOKEN_INFO); - - setId(id); - setIdent(ident); - setNumberOfHolders(numberOfHolders); - setVolume_24h(volume_24h); - setBlockNo(blockNo); - setUpdateTime(updateTime); - resetChangedOnNotNull(); - } - - /** - * Create a detached, initialised TokenInfoRecord - */ - public TokenInfoRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.TokenInfo value) { - super(TokenInfo.TOKEN_INFO); - - if (value != null) { - setId(value.getId()); - setIdent(value.getIdent()); - setNumberOfHolders(value.getNumberOfHolders()); - setVolume_24h(value.getVolume_24h()); - setBlockNo(value.getBlockNo()); - setUpdateTime(value.getUpdateTime()); - resetChangedOnNotNull(); - } - } -} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TxBootstrapWitnessesRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TxBootstrapWitnessesRecord.java new file mode 100644 index 00000000..3696a298 --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TxBootstrapWitnessesRecord.java @@ -0,0 +1,309 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.records; + + +import org.cardanofoundation.ledgersync.jooq.tables.TxBootstrapWitnesses; +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record6; +import org.jooq.Row6; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TxBootstrapWitnessesRecord extends UpdatableRecordImpl implements Record6 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for tx_bootstrap_witnesses.id. + */ + public void setId(Long value) { + set(0, value); + } + + /** + * Getter for tx_bootstrap_witnesses.id. + */ + public Long getId() { + return (Long) get(0); + } + + /** + * Setter for tx_bootstrap_witnesses.tx_id. + */ + public void setTxId(Long value) { + set(1, value); + } + + /** + * Getter for tx_bootstrap_witnesses.tx_id. + */ + public Long getTxId() { + return (Long) get(1); + } + + /** + * Setter for tx_bootstrap_witnesses.public_key. + */ + public void setPublicKey(String value) { + set(2, value); + } + + /** + * Getter for tx_bootstrap_witnesses.public_key. + */ + public String getPublicKey() { + return (String) get(2); + } + + /** + * Setter for tx_bootstrap_witnesses.signature. + */ + public void setSignature(String value) { + set(3, value); + } + + /** + * Getter for tx_bootstrap_witnesses.signature. + */ + public String getSignature() { + return (String) get(3); + } + + /** + * Setter for tx_bootstrap_witnesses.chain_code. + */ + public void setChainCode(String value) { + set(4, value); + } + + /** + * Getter for tx_bootstrap_witnesses.chain_code. + */ + public String getChainCode() { + return (String) get(4); + } + + /** + * Setter for tx_bootstrap_witnesses.attributes. + */ + public void setAttributes(String value) { + set(5, value); + } + + /** + * Getter for tx_bootstrap_witnesses.attributes. + */ + public String getAttributes() { + return (String) get(5); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record6 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row6 fieldsRow() { + return (Row6) super.fieldsRow(); + } + + @Override + public Row6 valuesRow() { + return (Row6) super.valuesRow(); + } + + @Override + public Field field1() { + return TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ID; + } + + @Override + public Field field2() { + return TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.TX_ID; + } + + @Override + public Field field3() { + return TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.PUBLIC_KEY; + } + + @Override + public Field field4() { + return TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.SIGNATURE; + } + + @Override + public Field field5() { + return TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.CHAIN_CODE; + } + + @Override + public Field field6() { + return TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES.ATTRIBUTES; + } + + @Override + public Long component1() { + return getId(); + } + + @Override + public Long component2() { + return getTxId(); + } + + @Override + public String component3() { + return getPublicKey(); + } + + @Override + public String component4() { + return getSignature(); + } + + @Override + public String component5() { + return getChainCode(); + } + + @Override + public String component6() { + return getAttributes(); + } + + @Override + public Long value1() { + return getId(); + } + + @Override + public Long value2() { + return getTxId(); + } + + @Override + public String value3() { + return getPublicKey(); + } + + @Override + public String value4() { + return getSignature(); + } + + @Override + public String value5() { + return getChainCode(); + } + + @Override + public String value6() { + return getAttributes(); + } + + @Override + public TxBootstrapWitnessesRecord value1(Long value) { + setId(value); + return this; + } + + @Override + public TxBootstrapWitnessesRecord value2(Long value) { + setTxId(value); + return this; + } + + @Override + public TxBootstrapWitnessesRecord value3(String value) { + setPublicKey(value); + return this; + } + + @Override + public TxBootstrapWitnessesRecord value4(String value) { + setSignature(value); + return this; + } + + @Override + public TxBootstrapWitnessesRecord value5(String value) { + setChainCode(value); + return this; + } + + @Override + public TxBootstrapWitnessesRecord value6(String value) { + setAttributes(value); + return this; + } + + @Override + public TxBootstrapWitnessesRecord values(Long value1, Long value2, String value3, String value4, String value5, String value6) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TxBootstrapWitnessesRecord + */ + public TxBootstrapWitnessesRecord() { + super(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES); + } + + /** + * Create a detached, initialised TxBootstrapWitnessesRecord + */ + public TxBootstrapWitnessesRecord(Long id, Long txId, String publicKey, String signature, String chainCode, String attributes) { + super(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES); + + setId(id); + setTxId(txId); + setPublicKey(publicKey); + setSignature(signature); + setChainCode(chainCode); + setAttributes(attributes); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised TxBootstrapWitnessesRecord + */ + public TxBootstrapWitnessesRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.TxBootstrapWitnesses value) { + super(TxBootstrapWitnesses.TX_BOOTSTRAP_WITNESSES); + + if (value != null) { + setId(value.getId()); + setTxId(value.getTxId()); + setPublicKey(value.getPublicKey()); + setSignature(value.getSignature()); + setChainCode(value.getChainCode()); + setAttributes(value.getAttributes()); + resetChangedOnNotNull(); + } + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TxWitnessesRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TxWitnessesRecord.java new file mode 100644 index 00000000..520e864d --- /dev/null +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/TxWitnessesRecord.java @@ -0,0 +1,347 @@ +/* + * This file is generated by jOOQ. + */ +package org.cardanofoundation.ledgersync.jooq.tables.records; + + +import org.cardanofoundation.ledgersync.jooq.tables.TxWitnesses; +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record7; +import org.jooq.Row7; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TxWitnessesRecord extends UpdatableRecordImpl implements Record7 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for tx_witnesses.id. + */ + public void setId(Long value) { + set(0, value); + } + + /** + * Getter for tx_witnesses.id. + */ + public Long getId() { + return (Long) get(0); + } + + /** + * Setter for tx_witnesses.tx_id. + */ + public void setTxId(Long value) { + set(1, value); + } + + /** + * Getter for tx_witnesses.tx_id. + */ + public Long getTxId() { + return (Long) get(1); + } + + /** + * Setter for tx_witnesses.key. + */ + public void setKey(String value) { + set(2, value); + } + + /** + * Getter for tx_witnesses.key. + */ + public String getKey() { + return (String) get(2); + } + + /** + * Setter for tx_witnesses.signature. + */ + public void setSignature(String value) { + set(3, value); + } + + /** + * Getter for tx_witnesses.signature. + */ + public String getSignature() { + return (String) get(3); + } + + /** + * Setter for tx_witnesses.index_arr. + */ + public void setIndexArr(Integer[] value) { + set(4, value); + } + + /** + * Getter for tx_witnesses.index_arr. + */ + public Integer[] getIndexArr() { + return (Integer[]) get(4); + } + + /** + * Setter for tx_witnesses.index_arr_size. + */ + public void setIndexArrSize(Integer value) { + set(5, value); + } + + /** + * Getter for tx_witnesses.index_arr_size. + */ + public Integer getIndexArrSize() { + return (Integer) get(5); + } + + /** + * Setter for tx_witnesses.type. + */ + public void setType(String value) { + set(6, value); + } + + /** + * Getter for tx_witnesses.type. + */ + public String getType() { + return (String) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + @Override + public Row7 valuesRow() { + return (Row7) super.valuesRow(); + } + + @Override + public Field field1() { + return TxWitnesses.TX_WITNESSES.ID; + } + + @Override + public Field field2() { + return TxWitnesses.TX_WITNESSES.TX_ID; + } + + @Override + public Field field3() { + return TxWitnesses.TX_WITNESSES.KEY; + } + + @Override + public Field field4() { + return TxWitnesses.TX_WITNESSES.SIGNATURE; + } + + @Override + public Field field5() { + return TxWitnesses.TX_WITNESSES.INDEX_ARR; + } + + @Override + public Field field6() { + return TxWitnesses.TX_WITNESSES.INDEX_ARR_SIZE; + } + + @Override + public Field field7() { + return TxWitnesses.TX_WITNESSES.TYPE; + } + + @Override + public Long component1() { + return getId(); + } + + @Override + public Long component2() { + return getTxId(); + } + + @Override + public String component3() { + return getKey(); + } + + @Override + public String component4() { + return getSignature(); + } + + @Override + public Integer[] component5() { + return getIndexArr(); + } + + @Override + public Integer component6() { + return getIndexArrSize(); + } + + @Override + public String component7() { + return getType(); + } + + @Override + public Long value1() { + return getId(); + } + + @Override + public Long value2() { + return getTxId(); + } + + @Override + public String value3() { + return getKey(); + } + + @Override + public String value4() { + return getSignature(); + } + + @Override + public Integer[] value5() { + return getIndexArr(); + } + + @Override + public Integer value6() { + return getIndexArrSize(); + } + + @Override + public String value7() { + return getType(); + } + + @Override + public TxWitnessesRecord value1(Long value) { + setId(value); + return this; + } + + @Override + public TxWitnessesRecord value2(Long value) { + setTxId(value); + return this; + } + + @Override + public TxWitnessesRecord value3(String value) { + setKey(value); + return this; + } + + @Override + public TxWitnessesRecord value4(String value) { + setSignature(value); + return this; + } + + @Override + public TxWitnessesRecord value5(Integer[] value) { + setIndexArr(value); + return this; + } + + @Override + public TxWitnessesRecord value6(Integer value) { + setIndexArrSize(value); + return this; + } + + @Override + public TxWitnessesRecord value7(String value) { + setType(value); + return this; + } + + @Override + public TxWitnessesRecord values(Long value1, Long value2, String value3, String value4, Integer[] value5, Integer value6, String value7) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TxWitnessesRecord + */ + public TxWitnessesRecord() { + super(TxWitnesses.TX_WITNESSES); + } + + /** + * Create a detached, initialised TxWitnessesRecord + */ + public TxWitnessesRecord(Long id, Long txId, String key, String signature, Integer[] indexArr, Integer indexArrSize, String type) { + super(TxWitnesses.TX_WITNESSES); + + setId(id); + setTxId(txId); + setKey(key); + setSignature(signature); + setIndexArr(indexArr); + setIndexArrSize(indexArrSize); + setType(type); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised TxWitnessesRecord + */ + public TxWitnessesRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.TxWitnesses value) { + super(TxWitnesses.TX_WITNESSES); + + if (value != null) { + setId(value.getId()); + setTxId(value.getTxId()); + setKey(value.getKey()); + setSignature(value.getSignature()); + setIndexArr(value.getIndexArr()); + setIndexArrSize(value.getIndexArrSize()); + setType(value.getType()); + resetChangedOnNotNull(); + } + } +} diff --git a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/UnconsumeTxInRecord.java b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/UnconsumeTxInRecord.java index 34a66667..0189d1fa 100644 --- a/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/UnconsumeTxInRecord.java +++ b/application/src/generated/org/cardanofoundation/ledgersync/jooq/tables/records/UnconsumeTxInRecord.java @@ -7,8 +7,8 @@ import org.cardanofoundation.ledgersync.jooq.tables.UnconsumeTxIn; import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; +import org.jooq.Record5; +import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; @@ -16,7 +16,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UnconsumeTxInRecord extends UpdatableRecordImpl implements Record4 { +public class UnconsumeTxInRecord extends UpdatableRecordImpl implements Record5 { private static final long serialVersionUID = 1L; @@ -76,6 +76,20 @@ public Long getTxOutId() { return (Long) get(3); } + /** + * Setter for unconsume_tx_in.redeemer_id. + */ + public void setRedeemerId(Long value) { + set(4, value); + } + + /** + * Getter for unconsume_tx_in.redeemer_id. + */ + public Long getRedeemerId() { + return (Long) get(4); + } + // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -86,17 +100,17 @@ public Record1 key() { } // ------------------------------------------------------------------------- - // Record4 type implementation + // Record5 type implementation // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public Row5 fieldsRow() { + return (Row5) super.fieldsRow(); } @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); + public Row5 valuesRow() { + return (Row5) super.valuesRow(); } @Override @@ -119,6 +133,11 @@ public Field field4() { return UnconsumeTxIn.UNCONSUME_TX_IN.TX_OUT_ID; } + @Override + public Field field5() { + return UnconsumeTxIn.UNCONSUME_TX_IN.REDEEMER_ID; + } + @Override public Long component1() { return getId(); @@ -139,6 +158,11 @@ public Long component4() { return getTxOutId(); } + @Override + public Long component5() { + return getRedeemerId(); + } + @Override public Long value1() { return getId(); @@ -159,6 +183,11 @@ public Long value4() { return getTxOutId(); } + @Override + public Long value5() { + return getRedeemerId(); + } + @Override public UnconsumeTxInRecord value1(Long value) { setId(value); @@ -184,11 +213,18 @@ public UnconsumeTxInRecord value4(Long value) { } @Override - public UnconsumeTxInRecord values(Long value1, Short value2, Long value3, Long value4) { + public UnconsumeTxInRecord value5(Long value) { + setRedeemerId(value); + return this; + } + + @Override + public UnconsumeTxInRecord values(Long value1, Short value2, Long value3, Long value4, Long value5) { value1(value1); value2(value2); value3(value3); value4(value4); + value5(value5); return this; } @@ -206,13 +242,14 @@ public UnconsumeTxInRecord() { /** * Create a detached, initialised UnconsumeTxInRecord */ - public UnconsumeTxInRecord(Long id, Short txOutIndex, Long txInId, Long txOutId) { + public UnconsumeTxInRecord(Long id, Short txOutIndex, Long txInId, Long txOutId, Long redeemerId) { super(UnconsumeTxIn.UNCONSUME_TX_IN); setId(id); setTxOutIndex(txOutIndex); setTxInId(txInId); setTxOutId(txOutId); + setRedeemerId(redeemerId); resetChangedOnNotNull(); } @@ -227,6 +264,7 @@ public UnconsumeTxInRecord(org.cardanofoundation.ledgersync.jooq.tables.pojos.Un setTxOutIndex(value.getTxOutIndex()); setTxInId(value.getTxInId()); setTxOutId(value.getTxOutId()); + setRedeemerId(value.getRedeemerId()); resetChangedOnNotNull(); } } diff --git a/application/src/main/resources/config/application.yaml b/application/src/main/resources/config/application.yaml index dc0a87d6..24647538 100755 --- a/application/src/main/resources/config/application.yaml +++ b/application/src/main/resources/config/application.yaml @@ -48,9 +48,9 @@ spring: sql-migration-separator: __ sql-migration-suffixes: .sql locations: - - classpath:db/migration/consumer + - classpath:db/migration/ledgersync - classpath:db/store/{vendor} - validate-on-migrate: ${FLYWAY_VALIDATE:true} + validate-on-migrate: ${FLYWAY_VALIDATE:false} default-schema: ${spring.jpa.properties.hibernate.default_schema} schemas: ${spring.jpa.properties.hibernate.default_schema} create-schemas: ${ALLOW_CREATE_SCHEMA:true} diff --git a/application/src/main/resources/db/migration/consumer/V1_1_10__create_table_agg_address_token.sql b/application/src/main/resources/db/migration/consumer/V1_1_10__create_table_agg_address_token.sql deleted file mode 100644 index 4bd54fe8..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_10__create_table_agg_address_token.sql +++ /dev/null @@ -1,33 +0,0 @@ -CREATE TABLE IF NOT EXISTS agg_address_token -( - id bigserial - primary key, - balance numeric(39) not null, - ident bigint not null, - day date -); - -INSERT INTO agg_address_token (ident, balance, day) -SELECT addt.ident AS ident, - sum(addt.balance) AS sum_balance, - date_trunc('day', b.time) AS time_agg -FROM address_token addt - INNER JOIN multi_asset ma on addt.ident = ma.id - INNER JOIN tx t on addt.tx_id = t.id - INNER JOIN block b on t.block_id = b.id - LEFT JOIN (SELECT b_temp.id, b_temp.time AS blockTime - FROM block b_temp - WHERE b_temp.tx_count > 0 - ORDER BY b_temp.id DESC - limit 1) max_block ON 1 = 1 -WHERE b.time < date_trunc('day', max_block.blockTime) - AND b.tx_count > 0 - AND addt.balance > 0 -GROUP BY addt.ident, time_agg -ORDER BY time_agg; - -CREATE INDEX IF NOT EXISTS agg_address_token_day_idx - ON agg_address_token (day DESC); - -CREATE INDEX IF NOT EXISTS agg_address_token_ident_day_balance_idx - ON agg_address_token (ident, day, balance); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_11__create_table_agg_address_tx_balance.sql b/application/src/main/resources/db/migration/consumer/V1_1_11__create_table_agg_address_tx_balance.sql deleted file mode 100644 index 6ec7c059..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_11__create_table_agg_address_tx_balance.sql +++ /dev/null @@ -1,37 +0,0 @@ -CREATE TABLE IF NOT EXISTS agg_address_tx_balance -( - id bigserial - PRIMARY KEY, - stake_address_id bigint, - address_id bigint NOT NULL, - balance NUMERIC(39) NOT NULL, - day DATE NOT NULL -); - -INSERT INTO agg_address_tx_balance (stake_address_id, address_id, balance, day) -SELECT addr.stake_address_id AS stake_address_id, - addr.id AS address_id, - SUM(atb.balance) AS sum_balance, - date_trunc('day', atb.time) AS time_agg -FROM address_tx_balance atb - INNER JOIN address addr ON atb.address_id = addr.id - LEFT JOIN (SELECT b_temp.id, b_temp.time AS blockTime - FROM block b_temp - WHERE b_temp.tx_count > 0 - ORDER BY b_temp.id DESC - limit 1) max_block ON 1 = 1 -WHERE atb.time < date_trunc('day', max_block.blockTime) -GROUP BY addr.id, time_agg -ORDER BY time_agg; - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_day_idx - ON agg_address_tx_balance (day DESC); - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_stake_address_id_day_balance_idx - ON agg_address_tx_balance (stake_address_id, day, balance); - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_address_id_day_balance_idx - ON agg_address_tx_balance (address_id, day, balance); - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_day_index - ON agg_address_tx_balance (day DESC); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_14__tx_metadata_add_hash.sql b/application/src/main/resources/db/migration/consumer/V1_1_14__tx_metadata_add_hash.sql deleted file mode 100644 index 32b51e38..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_14__tx_metadata_add_hash.sql +++ /dev/null @@ -1,19 +0,0 @@ -CREATE TABLE IF NOT EXISTS tx_metadata_hash -( - id bigserial NOT NULL - PRIMARY KEY, - hash VARCHAR(64) NOT NULL, - tx_id bigint NOT NULL -); - -CREATE INDEX IF NOT EXISTS tx_metadata_hash_idx - ON tx_metadata_hash (hash); - -CREATE INDEX IF NOT EXISTS tx_metadata_tx_id_idx - ON tx_metadata_hash (tx_id); - -ALTER TABLE tx - ADD COLUMN IF NOT EXISTS tx_metadata_hash_id bigint NULL; - -CREATE INDEX IF NOT EXISTS tx__tx_metadata_hash_idx - ON tx (tx_metadata_hash_id); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_15__rm_tx_id_from_tx_metadata_hash.sql b/application/src/main/resources/db/migration/consumer/V1_1_15__rm_tx_id_from_tx_metadata_hash.sql deleted file mode 100644 index bd828ee1..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_15__rm_tx_id_from_tx_metadata_hash.sql +++ /dev/null @@ -1,7 +0,0 @@ -ALTER TABLE tx_metadata_hash - DROP COLUMN IF EXISTS tx_id; - -DROP INDEX IF EXISTS tx_metadata_tx_id_idx; - - - diff --git a/application/src/main/resources/db/migration/consumer/V1_1_16__change_script_at_least_type.sql b/application/src/main/resources/db/migration/consumer/V1_1_16__change_script_at_least_type.sql deleted file mode 100644 index 17779d55..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_16__change_script_at_least_type.sql +++ /dev/null @@ -1,3 +0,0 @@ -UPDATE script -SET type ='timelock' -WHERE type = 'multisig' diff --git a/application/src/main/resources/db/migration/consumer/V1_1_17__change_redeemer_data_value_type_to_text.sql b/application/src/main/resources/db/migration/consumer/V1_1_17__change_redeemer_data_value_type_to_text.sql deleted file mode 100644 index 23d57dfd..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_17__change_redeemer_data_value_type_to_text.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE redeemer_data - ALTER COLUMN value TYPE text; diff --git a/application/src/main/resources/db/migration/consumer/V1_1_18__set_non_utf8_asset_name_view_to_null.sql b/application/src/main/resources/db/migration/consumer/V1_1_18__set_non_utf8_asset_name_view_to_null.sql deleted file mode 100644 index 296fb7b4..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_18__set_non_utf8_asset_name_view_to_null.sql +++ /dev/null @@ -1,15 +0,0 @@ -CREATE FUNCTION pg_temp.utf8_asset_name_bytea_to_name_view(bytea) RETURNS varchar(64) - LANGUAGE plpgsql AS -$$ -BEGIN - RETURN convert_from(decode(replace(encode($1, 'hex'), '00', ''), 'hex'), 'UTF-8'); -EXCEPTION - WHEN character_not_in_repertoire THEN - RETURN NULL; -END; -$$; - -ALTER TABLE multi_asset - ALTER COLUMN name_view DROP NOT NULL; -UPDATE multi_asset -SET name_view = pg_temp.utf8_asset_name_bytea_to_name_view(name); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_19__create_stake_balance_index.sql b/application/src/main/resources/db/migration/consumer/V1_1_19__create_stake_balance_index.sql deleted file mode 100644 index 5557c802..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_19__create_stake_balance_index.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX IF NOT EXISTS stake_address_balance_idx ON stake_address USING btree (balance) \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_20__set_tx_count_for_ebb_block.sql b/application/src/main/resources/db/migration/consumer/V1_1_20__set_tx_count_for_ebb_block.sql deleted file mode 100644 index 899b1685..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_20__set_tx_count_for_ebb_block.sql +++ /dev/null @@ -1,3 +0,0 @@ -UPDATE block -SET tx_count = 0 -WHERE tx_count IS NULL; diff --git a/application/src/main/resources/db/migration/consumer/V1_1_21__create_missing_index.sql b/application/src/main/resources/db/migration/consumer/V1_1_21__create_missing_index.sql deleted file mode 100644 index f7a9c699..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_21__create_missing_index.sql +++ /dev/null @@ -1,12 +0,0 @@ -CREATE INDEX IF NOT EXISTS address_balance_idx ON address USING btree (balance); -CREATE INDEX IF NOT EXISTS address_tx_count_idx ON address USING btree (tx_count); -CREATE UNIQUE INDEX IF NOT EXISTS address_tx_balance_tx_id_idx ON address_tx_balance USING btree (tx_id, address_id); -CREATE INDEX IF NOT EXISTS multi_asset_supply_idx ON multi_asset (supply); -CREATE INDEX IF NOT EXISTS multi_asset_time_idx ON multi_asset ("time"); - - -CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA pg_catalog; -CREATE INDEX IF NOT EXISTS name_view_gin_lower ON multi_asset USING gin (lower(name_view) gin_trgm_ops); -CREATE INDEX IF NOT EXISTS pool_name_gin_lower ON pool_offline_data USING gin (lower(pool_name) gin_trgm_ops); -CREATE INDEX IF NOT EXISTS asset_metadata_subject_idx ON asset_metadata (subject); -CREATE INDEX IF NOT EXISTS tx_count_idx ON block USING btree (tx_count) diff --git a/application/src/main/resources/db/migration/consumer/V1_1_22__create_tx_index.sql b/application/src/main/resources/db/migration/consumer/V1_1_22__create_tx_index.sql deleted file mode 100644 index 1cab519b..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_22__create_tx_index.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE INDEX IF NOT EXISTS tx_fee_idx ON tx USING btree (fee); -CREATE INDEX IF NOT EXISTS tx_out_sum_idx ON tx USING btree (out_sum); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_23__change_columns_type_json.sql b/application/src/main/resources/db/migration/consumer/V1_1_23__change_columns_type_json.sql deleted file mode 100644 index dde9a7d7..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_23__change_columns_type_json.sql +++ /dev/null @@ -1,6 +0,0 @@ -DROP INDEX IF EXISTS tx_metadata_ts_json_idx; -ALTER TABLE tx_metadata DROP COLUMN IF EXISTS ts_json; -ALTER TABLE datum ALTER COLUMN value TYPE text USING value::text; -ALTER TABLE tx_metadata ALTER COLUMN "json" TYPE text USING "json"::text; -ALTER TABLE cost_model ALTER COLUMN costs TYPE text USING costs::text; -ALTER TABLE script ALTER COLUMN "json" TYPE text USING "json"::text; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_24__unconsumed_tx_in_redeemer.sql b/application/src/main/resources/db/migration/consumer/V1_1_24__unconsumed_tx_in_redeemer.sql deleted file mode 100644 index ae702396..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_24__unconsumed_tx_in_redeemer.sql +++ /dev/null @@ -1,3 +0,0 @@ -ALTER TABLE unconsume_tx_in ADD COLUMN redeemer_id bigint; - -CREATE INDEX IF NOT EXISTS idx_unconsume_tx_in_redeemer_id ON unconsume_tx_in(redeemer_id); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_25__add_index_length_pool_and_token_name.sql b/application/src/main/resources/db/migration/consumer/V1_1_25__add_index_length_pool_and_token_name.sql deleted file mode 100644 index 1204be12..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_25__add_index_length_pool_and_token_name.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE INDEX IF NOT EXISTS idx_name_view_length ON multi_asset (LENGTH(name_view)); -CREATE INDEX IF NOT EXISTS idx_pool_name_length ON pool_offline_data (LENGTH(pool_name)); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_26__update_redeemer_in_cert.sql b/application/src/main/resources/db/migration/consumer/V1_1_26__update_redeemer_in_cert.sql deleted file mode 100644 index d1dc8f5c..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_26__update_redeemer_in_cert.sql +++ /dev/null @@ -1,9 +0,0 @@ -update delegation d set redeemer_id = null where redeemer_id is not null; - -update delegation d set - redeemer_id = (select r.id from redeemer r where d.cert_index = r."index" and d.tx_id = r.tx_id and r.purpose = 'cert'); - -update stake_deregistration sd set redeemer_id = null where redeemer_id is not null; - -update stake_deregistration sd set - redeemer_id = (select r.id from redeemer r where sd.cert_index = r."index" and sd.tx_id = r.tx_id and r.purpose = 'cert'); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_27__reset_epoch_param_table.sql b/application/src/main/resources/db/migration/consumer/V1_1_27__reset_epoch_param_table.sql deleted file mode 100644 index 4779087f..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_27__reset_epoch_param_table.sql +++ /dev/null @@ -1,2 +0,0 @@ -TRUNCATE TABLE epoch_param; -ALTER SEQUENCE epoch_param_id_seq RESTART; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_28__add_tx_vk_witnesses_table.sql b/application/src/main/resources/db/migration/consumer/V1_1_28__add_tx_vk_witnesses_table.sql deleted file mode 100644 index 204e1146..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_28__add_tx_vk_witnesses_table.sql +++ /dev/null @@ -1,54 +0,0 @@ --- tx_witnesses -CREATE TABLE IF NOT EXISTS tx_witnesses -( - id bigint NOT NULL - PRIMARY KEY, - tx_id bigint NOT NULL, - key varchar, - signature varchar, - index_arr int[], - index_arr_size int, - type varchar(50) -); - -CREATE SEQUENCE IF NOT EXISTS tx_witnesses_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE tx_witnesses_id_seq OWNED BY tx_witnesses.id; - -ALTER TABLE ONLY tx_witnesses -ALTER COLUMN id SET DEFAULT nextval('tx_witnesses_id_seq'::regclass); - -CREATE INDEX IF NOT EXISTS tx_witnesses_tx_id_idx ON tx_witnesses (tx_id); - - --- tx_bootstrap_witnesses -CREATE TABLE IF NOT EXISTS tx_bootstrap_witnesses -( - id bigint NOT NULL - PRIMARY KEY, - tx_id bigint NOT NULL, - public_key varchar, - signature varchar, - chain_code varchar, - attributes varchar -); - -CREATE SEQUENCE IF NOT EXISTS tx_bootstrap_witnesses_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE tx_bootstrap_witnesses_id_seq OWNED BY tx_bootstrap_witnesses.id; - - -ALTER TABLE ONLY tx_bootstrap_witnesses -ALTER COLUMN id SET DEFAULT nextval('tx_bootstrap_witnesses_id_seq'::regclass); - -CREATE INDEX IF NOT EXISTS tx_bootstrap_witnesses_tx_id_idx ON tx_bootstrap_witnesses (tx_id); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_29__update_table_tx_chart.sql b/application/src/main/resources/db/migration/consumer/V1_1_29__update_table_tx_chart.sql deleted file mode 100644 index b32731fd..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_29__update_table_tx_chart.sql +++ /dev/null @@ -1,40 +0,0 @@ -TRUNCATE TABLE tx_chart; -ALTER SEQUENCE tx_chart_id_seq RESTART; - -DROP INDEX IF EXISTS idx_tx_chart_minute; -DROP INDEX IF EXISTS idx_tx_chart_hour; -DROP INDEX IF EXISTS idx_tx_chart_day; -DROP INDEX IF EXISTS idx_tx_chart_month; - -INSERT INTO tx_chart("minute", "hour", "day", "month", "year", tx_count, tx_with_sc, - tx_with_metadata_without_sc, tx_simple) -SELECT EXTRACT(epoch FROM date_trunc('minute', simple_tx_tmp.tx_time)) AS minute, - EXTRACT(epoch FROM date_trunc('hour', simple_tx_tmp.tx_time)) AS hour, - EXTRACT(epoch FROM date_trunc('day', simple_tx_tmp.tx_time)) AS day, - EXTRACT(epoch FROM date_trunc('month', simple_tx_tmp.tx_time)) AS month, - EXTRACT(epoch FROM date_trunc('year', simple_tx_tmp.tx_time)) AS year, - COUNT(simple_tx_tmp.tx_id) AS tx_count, - SUM(CASE WHEN simple_tx_tmp.tx_with_sc = true THEN 1 ELSE 0 END) AS tx_with_sc, - SUM(CASE - WHEN simple_tx_tmp.tx_with_metadata_without_sc = true THEN 1 - ELSE 0 END) AS tx_with_metadata_without_sc, - SUM(CASE WHEN simple_tx_tmp.simple_tx = true THEN 1 ELSE 0 END) AS tx_simple -FROM (SELECT tx.id AS tx_id, - b.time AS tx_time, - (SUM(CASE WHEN r.id IS NOT NULL THEN 1 ELSE 0 END) != 0) AS tx_with_sc, - (SUM(CASE WHEN r.id IS NULL AND tm.id IS NOT NULL THEN 1 ELSE 0 END) != 0) - AS tx_with_metadata_without_sc, - (SUM(CASE WHEN r.id IS NULL AND tm.id IS NULL THEN 1 ELSE 0 END) != 0) AS simple_tx - FROM tx - JOIN block b ON tx.block_id = b.id - LEFT JOIN redeemer r ON tx.id = r.tx_id - LEFT JOIN tx_metadata tm ON tx.id = tm.tx_id - WHERE b."time" >= now() - INTERVAL '2' MONTH - GROUP BY tx.id, b.time) simple_tx_tmp -GROUP BY minute, hour, day, month, year -ORDER BY minute; - -CREATE INDEX IF NOT EXISTS idx_tx_chart_minute ON tx_chart ("minute"); -CREATE INDEX IF NOT EXISTS idx_tx_chart_hour ON tx_chart ("hour"); -CREATE INDEX IF NOT EXISTS idx_tx_chart_day ON tx_chart ("day"); -CREATE INDEX IF NOT EXISTS idx_tx_chart_month ON tx_chart ("month"); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_30__add_script_hash_indx_and_add_column_verified_script.sql b/application/src/main/resources/db/migration/consumer/V1_1_30__add_script_hash_indx_and_add_column_verified_script.sql deleted file mode 100644 index 896268c5..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_30__add_script_hash_indx_and_add_column_verified_script.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE INDEX IF NOT EXISTS redeemer_script_hash_idx ON redeemer (script_hash); -ALTER TABLE script ADD COLUMN IF NOT EXISTS verified bool DEFAULT FALSE; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_5__add_name_view_column_to_multi_asset_table.sql b/application/src/main/resources/db/migration/consumer/V1_1_5__add_name_view_column_to_multi_asset_table.sql deleted file mode 100644 index 4294ed23..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_5__add_name_view_column_to_multi_asset_table.sql +++ /dev/null @@ -1,19 +0,0 @@ -CREATE FUNCTION pg_temp.asset_name_bytea_to_name_view(bytea) RETURNS varchar(64) - LANGUAGE plpgsql AS -$$ -BEGIN - RETURN convert_from(decode(replace(encode($1, 'hex'), '00', ''), 'hex'), 'UTF-8'); -EXCEPTION - WHEN character_not_in_repertoire THEN - RETURN encode($1, 'hex'); -END; -$$; - -ALTER TABLE multi_asset - ADD COLUMN name_view varchar(64); -UPDATE multi_asset -SET name_view = pg_temp.asset_name_bytea_to_name_view(name); -ALTER TABLE multi_asset - ALTER COLUMN name_view SET NOT NULL; - -CREATE INDEX IF NOT EXISTS idx_multi_asset_name_view ON multi_asset (name_view); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_6__add_verified_contract_column_to_address_table.sql b/application/src/main/resources/db/migration/consumer/V1_1_6__add_verified_contract_column_to_address_table.sql deleted file mode 100644 index 504b5ed9..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_6__add_verified_contract_column_to_address_table.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE address - ADD COLUMN IF NOT EXISTS verified_contract bool NULL; diff --git a/application/src/main/resources/db/migration/consumer/V1_1_7__add_extra_stake_address_id_field.sql b/application/src/main/resources/db/migration/consumer/V1_1_7__add_extra_stake_address_id_field.sql deleted file mode 100644 index d6892103..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_7__add_extra_stake_address_id_field.sql +++ /dev/null @@ -1,15 +0,0 @@ -ALTER TABLE address_token_balance - ADD COLUMN stake_address_id bigint; - -UPDATE address_token_balance atb -SET stake_address_id = (SELECT stake_address_id FROM address a WHERE a.id = atb.address_id); - -CREATE INDEX IF NOT EXISTS address_token_balance_stake_address_id_idx ON address_token_balance (stake_address_id); - -ALTER TABLE address_tx_balance - ADD COLUMN stake_address_id bigint; - -UPDATE address_tx_balance atb -SET stake_address_id = (SELECT stake_address_id FROM address a WHERE a.id = atb.address_id); - -CREATE INDEX IF NOT EXISTS address_tx_balance_stake_address_id_idx ON address_tx_balance (stake_address_id); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_8__min_utxo_value_field_nullable.sql b/application/src/main/resources/db/migration/consumer/V1_1_8__min_utxo_value_field_nullable.sql deleted file mode 100644 index aa41189d..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_8__min_utxo_value_field_nullable.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE epoch_param - ALTER COLUMN min_utxo_value DROP NOT NULL diff --git a/application/src/main/resources/db/migration/consumer/V1_1_9__add_index_address_tx_balance_and_address_token_balance.sql b/application/src/main/resources/db/migration/consumer/V1_1_9__add_index_address_tx_balance_and_address_token_balance.sql deleted file mode 100644 index f0987e59..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_1_9__add_index_address_tx_balance_and_address_token_balance.sql +++ /dev/null @@ -1,11 +0,0 @@ --- CREATE COMPOSITE INDEX FOR address_token_balance -CREATE INDEX IF NOT EXISTS address_token_balance_ident_stake_address_id_balance_idx - ON address_token_balance (ident, stake_address_id, balance); - --- CREATE COMPOSITE INDEX FOR address_token -CREATE INDEX IF NOT EXISTS address_token_ident_tx_id_balance_idx - ON address_token (ident, tx_id, balance); - --- CREATE COMPOSITE INDEX FOR address_tx_balance -CREATE INDEX IF NOT EXISTS address_tx_balance_stake_address_id_tx_id_balance_idx - ON address_tx_balance (stake_address_id, tx_id, balance); diff --git a/application/src/main/resources/db/migration/consumer/V1_2_10__add_stake_tx_balance_table.sql b/application/src/main/resources/db/migration/consumer/V1_2_10__add_stake_tx_balance_table.sql deleted file mode 100644 index 910cd831..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_10__add_stake_tx_balance_table.sql +++ /dev/null @@ -1,31 +0,0 @@ -CREATE TABLE IF NOT EXISTS stake_tx_balance -( - id bigint NOT NULL - PRIMARY KEY, - stake_address_id bigint NOT NULL, - tx_id bigint NOT NULL, - balance_change bigint, - time timestamp -); - - --- --- Name: report_history_id_seq; Type: SEQUENCE; --- - -CREATE SEQUENCE IF NOT EXISTS stake_tx_balance_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE stake_tx_balance_id_seq OWNED BY stake_tx_balance.id; - - -ALTER TABLE ONLY stake_tx_balance -ALTER COLUMN id SET DEFAULT nextval('stake_tx_balance_id_seq'::regclass); - -CREATE INDEX IF NOT EXISTS stake_tx_balance_tx_id_idx ON stake_tx_balance (tx_id); -CREATE INDEX IF NOT EXISTS stake_tx_balance_time_idx ON stake_tx_balance (time); -CREATE INDEX IF NOT EXISTS stake_tx_balance_stake_address_id_idx ON stake_tx_balance (stake_address_id); diff --git a/application/src/main/resources/db/migration/consumer/V1_2_11__add-tables-token-info-block-token-info.sql b/application/src/main/resources/db/migration/consumer/V1_2_11__add-tables-token-info-block-token-info.sql deleted file mode 100644 index be95731b..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_11__add-tables-token-info-block-token-info.sql +++ /dev/null @@ -1,38 +0,0 @@ -CREATE TABLE IF NOT EXISTS token_info -( - id bigserial NOT NULL, - ident int8 NULL, - number_of_holders int8 NULL, - volume_24h numeric(40) NULL, - block_no int8 NULL, - update_time timestamp NULL, - CONSTRAINT token_info_pkey PRIMARY KEY (id), - CONSTRAINT unique_token_info UNIQUE (ident) -); - -CREATE SEQUENCE IF NOT EXISTS token_info_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE token_info_id_seq OWNED BY token_info.id; - -CREATE TABLE IF NOT EXISTS token_info_checkpoint -( - id bigserial NOT NULL, - block_no int8 NULL, - update_time timestamp NULL, - CONSTRAINT block_token_info_pkey PRIMARY KEY (id) -); - -CREATE SEQUENCE IF NOT EXISTS token_info_checkpoint_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE token_info_checkpoint_id_seq OWNED BY token_info_checkpoint.id; - diff --git a/application/src/main/resources/db/migration/consumer/V1_2_12__add_agg_pool_info_table.sql b/application/src/main/resources/db/migration/consumer/V1_2_12__add_agg_pool_info_table.sql deleted file mode 100644 index e8207fda..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_12__add_agg_pool_info_table.sql +++ /dev/null @@ -1,31 +0,0 @@ -CREATE TABLE IF NOT EXISTS agg_pool_info -( - id bigint NOT NULL - PRIMARY KEY, - pool_id bigint NOT NULL, - block_in_epoch bigint, - block_life_time bigint, - delegator_cnt bigint, - block_check_point bigint, - update_time timestamp -); - - -CREATE SEQUENCE IF NOT EXISTS agg_pool_info_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE agg_pool_info_id_seq OWNED BY agg_pool_info.id; - - -ALTER TABLE ONLY agg_pool_info -ALTER COLUMN id SET DEFAULT nextval('agg_pool_info_id_seq'::regclass); - - -CREATE INDEX IF NOT EXISTS EXagg_pool_info_pool_id_idx ON agg_pool_info (pool_id); -CREATE INDEX IF NOT EXISTS agg_pool_info_block_in_epoch_idx ON agg_pool_info (block_in_epoch); -CREATE INDEX IF NOT EXISTS agg_pool_info_block_life_time_idx ON agg_pool_info (block_life_time); -CREATE INDEX IF NOT EXISTS agg_pool_info_delegator_cnt_idx ON agg_pool_info (delegator_cnt); diff --git a/application/src/main/resources/db/migration/consumer/V1_2_1__add-tables-for-report-function.sql b/application/src/main/resources/db/migration/consumer/V1_2_1__add-tables-for-report-function.sql deleted file mode 100644 index 6ec42967..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_1__add-tables-for-report-function.sql +++ /dev/null @@ -1,123 +0,0 @@ -CREATE TABLE IF NOT EXISTS report_history -( - id BIGINT NOT NULL - PRIMARY KEY, - report_name varchar(255) NOT NULL, - created_at timestamp, - username varchar(255) NOT NULL, - status varchar(255), - type varchar(255), - storage_key varchar(255) - constraint storage_key_unique - unique - ); - -CREATE TABLE IF NOT EXISTS stake_key_report_history -( - id bigint NOT NULL - primary key, - stake_key varchar(255) NOT NULL, - from_date timestamp NOT NULL, - to_date timestamp NOT NULL, - is_ada_transfer boolean DEFAULT FALSE, - is_fees_paid boolean DEFAULT FALSE, - report_id bigint NOT NULL, - event_registration boolean DEFAULT FALSE, - event_delegation boolean DEFAULT FALSE, - event_rewards boolean DEFAULT FALSE, - event_withdrawal boolean DEFAULT FALSE, - event_deregistration boolean DEFAULT FALSE - ); - -CREATE TABLE IF NOT EXISTS pool_report_history -( - id bigint NOT NULL - PRIMARY KEY, - pool_id varchar(255) NOT NULL, - is_pool_size boolean NOT NULL, - is_fees_paid boolean NOT NULL, - begin_epoch integer NOT NULL, - end_epoch integer NOT NULL, - report_id bigint NOT NULL, - event_registration boolean NOT NULL, - event_deregistration boolean NOT NULL, - event_reward boolean NOT NULL, - event_pool_update boolean NOT NULL - ); - --- --- Name: report_history_id_seq; Type: SEQUENCE; --- - -CREATE SEQUENCE IF NOT EXISTS report_history_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE report_history_id_seq OWNED BY report_history.id; - --- --- Name: stake_key_report_history_id_seq; Type: SEQUENCE; --- - -CREATE SEQUENCE IF NOT EXISTS stake_key_report_history_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE stake_key_report_history_id_seq OWNED BY stake_key_report_history.id; - --- --- Name: pool_report_history_id_seq; Type: SEQUENCE; --- -CREATE SEQUENCE IF NOT EXISTS pool_report_history_id_seq - start with 1 - increment by 1 - no minvalue - no maxvalue - cache 1; - -alter sequence pool_report_history_id_seq owned by pool_report_history.id; - --- --- Name: report_history id; Type: DEFAULT; --- - -ALTER TABLE ONLY report_history -ALTER COLUMN id SET DEFAULT nextval('report_history_id_seq'::regclass); - --- --- Name: rollback_history id; Type: DEFAULT; --- - -ALTER TABLE ONLY stake_key_report_history -ALTER COLUMN id SET DEFAULT nextval('stake_key_report_history_id_seq'::regclass); - --- --- Name: rollback_history id; Type: DEFAULT; --- - -ALTER TABLE ONLY pool_report_history -ALTER COLUMN id SET DEFAULT nextval('pool_report_history_id_seq'::regclass); - -CREATE INDEX IF NOT EXISTS report_history_username_idx ON report_history (username); - -CREATE INDEX IF NOT EXISTS report_history_status_idx ON report_history (status); - -CREATE INDEX IF NOT EXISTS stake_key_report_history_stake_key_idx ON stake_key_report_history (stake_key); - -CREATE INDEX IF NOT EXISTS stake_key_report_history_report_id_idx ON stake_key_report_history (report_id); - -CREATE INDEX IF NOT EXISTS stake_key_report_history_stake_key_report_id_idx ON stake_key_report_history (stake_key, report_id); - -CREATE INDEX IF NOT EXISTS pool_report_history_pool_id_idx ON pool_report_history (pool_id); - -CREATE INDEX IF NOT EXISTS pool_report_history_report_id_idx on pool_report_history (report_id); - -CREATE INDEX IF NOT EXISTS pool_report_history_pool_id_report_id_idx on pool_report_history (pool_id, report_id); - -ALTER TABLE report_history ADD COLUMN IF NOT EXISTS uploaded_at timestamp; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_2__modify-asset-metadata.sql b/application/src/main/resources/db/migration/consumer/V1_2_2__modify-asset-metadata.sql deleted file mode 100644 index 062442eb..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_2__modify-asset-metadata.sql +++ /dev/null @@ -1,12 +0,0 @@ -ALTER TABLE asset_metadata ALTER COLUMN description TYPE varchar(65535) USING description::varchar; -ALTER TABLE asset_metadata ALTER COLUMN "name" TYPE varchar(500) USING "name"::varchar; -ALTER TABLE asset_metadata ALTER COLUMN "policy" TYPE varchar(500) USING "policy"::varchar; -ALTER TABLE asset_metadata ALTER COLUMN subject TYPE varchar(500) USING subject::varchar; -ALTER TABLE asset_metadata ALTER COLUMN url TYPE varchar(2048) USING url::varchar; -ALTER TABLE asset_metadata ALTER COLUMN ident DROP NOT NULL; -ALTER TABLE asset_metadata ALTER COLUMN decimals DROP NOT NULL; -ALTER TABLE asset_metadata ALTER COLUMN logo DROP NOT NULL; -ALTER TABLE asset_metadata ALTER COLUMN "policy" TYPE varchar(500) USING "policy"::varchar; -ALTER TABLE asset_metadata ALTER COLUMN "policy" DROP NOT NULL; -ALTER TABLE asset_metadata ALTER COLUMN ticker DROP NOT NULL; -ALTER TABLE asset_metadata ALTER COLUMN url DROP NOT NULL; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_3__delete_unique_pool_offline_fetch_error.sql b/application/src/main/resources/db/migration/consumer/V1_2_3__delete_unique_pool_offline_fetch_error.sql deleted file mode 100644 index 584e032b..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_3__delete_unique_pool_offline_fetch_error.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE pool_offline_fetch_error -DROP CONSTRAINT unique_pool_offline_fetch_error; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_4__pool_offline_data_add_columns.sql b/application/src/main/resources/db/migration/consumer/V1_2_4__pool_offline_data_add_columns.sql deleted file mode 100644 index 50e30944..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_4__pool_offline_data_add_columns.sql +++ /dev/null @@ -1,5 +0,0 @@ -ALTER TABLE pool_offline_data -ADD logo_url varchar(2000) NULL; - -ALTER TABLE pool_offline_data -ADD icon_url varchar(2000) NULL; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_5__add_ts_json_column_support_for_full_text_search.sql b/application/src/main/resources/db/migration/consumer/V1_2_5__add_ts_json_column_support_for_full_text_search.sql deleted file mode 100644 index 6b87012c..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_5__add_ts_json_column_support_for_full_text_search.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE tx_metadata ADD COLUMN ts_json tsvector -GENERATED ALWAYS AS (to_tsvector('simple', tx_metadata."json")) STORED; - -CREATE INDEX IF NOT EXISTS tx_metadata_ts_json_idx ON tx_metadata USING GIN (ts_json); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_6__update_agg_address_tx_balance.sql b/application/src/main/resources/db/migration/consumer/V1_2_6__update_agg_address_tx_balance.sql deleted file mode 100644 index 5cffdd17..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_6__update_agg_address_tx_balance.sql +++ /dev/null @@ -1,36 +0,0 @@ -truncate table agg_address_tx_balance; - -ALTER SEQUENCE agg_address_tx_balance_id_seq RESTART; - -DROP INDEX IF EXISTS agg_address_tx_balance_day_idx; -DROP INDEX IF EXISTS agg_address_tx_balance_stake_address_id_day_balance_idx; -DROP INDEX IF EXISTS agg_address_tx_balance_address_id_day_balance_idx; -DROP INDEX IF EXISTS agg_address_tx_balance_day_index; - -INSERT INTO agg_address_tx_balance (stake_address_id, address_id, balance, day) -SELECT addr.stake_address_id AS stake_address_id, - addr.id AS address_id, - SUM(atb.balance) AS sum_balance, - date_trunc('day', atb.time) AS time_agg -FROM address_tx_balance atb - INNER JOIN address addr ON atb.address_id = addr.id - LEFT JOIN (SELECT b_temp.id, b_temp.time AS blockTime - FROM block b_temp - WHERE b_temp.tx_count > 0 - ORDER BY b_temp.id DESC - limit 1) max_block ON 1 = 1 -WHERE atb.time < date_trunc('day', max_block.blockTime) -GROUP BY addr.id, time_agg -ORDER BY time_agg; - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_day_idx - ON agg_address_tx_balance (day DESC); - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_stake_address_id_day_balance_idx - ON agg_address_tx_balance (stake_address_id, day, balance); - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_address_id_day_balance_idx - ON agg_address_tx_balance (address_id, day, balance); - -CREATE INDEX IF NOT EXISTS agg_address_tx_balance_day_index - ON agg_address_tx_balance (day DESC); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_7__add_column_logo_hash_asset_metadata.sql b/application/src/main/resources/db/migration/consumer/V1_2_7__add_column_logo_hash_asset_metadata.sql deleted file mode 100644 index cbc5faac..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_7__add_column_logo_hash_asset_metadata.sql +++ /dev/null @@ -1,3 +0,0 @@ -TRUNCATE TABLE asset_metadata; -ALTER SEQUENCE asset_metadata_id_seq RESTART; -ALTER TABLE asset_metadata ADD COLUMN IF NOT EXISTS logo_hash VARCHAR(64) NULL; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_8__update_table_pool_offline_data.sql b/application/src/main/resources/db/migration/consumer/V1_2_8__update_table_pool_offline_data.sql deleted file mode 100644 index b7add4c8..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_8__update_table_pool_offline_data.sql +++ /dev/null @@ -1,10 +0,0 @@ -TRUNCATE TABLE pool_offline_data; -ALTER SEQUENCE pool_offline_data_id_seq RESTART; -TRUNCATE TABLE pool_offline_fetch_error; -ALTER SEQUENCE pool_offline_fetch_error_id_seq RESTART; - -CREATE INDEX pool_offline_fetch_error_pool_id_idx ON pool_offline_fetch_error (pool_id); -CREATE INDEX pool_offline_fetch_error_pool_id_pmr_id_idx ON pool_offline_fetch_error (pool_id,pmr_id); - -ALTER TABLE pool_offline_data DROP CONSTRAINT unique_pool_offline_data; -ALTER TABLE pool_offline_data ADD CONSTRAINT pool_offline_data_pool_id_unique UNIQUE (pool_id); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_2_9__drop_column_ts_json_tx_meta_data.sql b/application/src/main/resources/db/migration/consumer/V1_2_9__drop_column_ts_json_tx_meta_data.sql deleted file mode 100644 index 7b5625e7..00000000 --- a/application/src/main/resources/db/migration/consumer/V1_2_9__drop_column_ts_json_tx_meta_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP INDEX IF EXISTS tx_metadata_ts_json_idx; -ALTER TABLE tx_metadata DROP COLUMN IF EXISTS ts_json; \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/defects/V1_1_12__address_token_defect.sql b/application/src/main/resources/db/migration/consumer/defects/V1_1_12__address_token_defect.sql deleted file mode 100644 index 7d83d997..00000000 --- a/application/src/main/resources/db/migration/consumer/defects/V1_1_12__address_token_defect.sql +++ /dev/null @@ -1,74 +0,0 @@ ---- address_token --- -TRUNCATE address_token; -ALTER SEQUENCE address_token_id_seq RESTART; - -DROP INDEX IF EXISTS idx_address_token_tx_id; -DROP INDEX IF EXISTS idx_address_token_ident; -DROP INDEX IF EXISTS idx_address_token_address_id; -DROP INDEX IF EXISTS address_token_ident_stake_tx_id_balance_idx; -DROP INDEX IF EXISTS address_token_ident_tx_id_balance_idx; - -INSERT INTO address_token (balance, tx_id, ident, address_id) -SELECT (COALESCE(a.balance, 0) - COALESCE(b.balance, 0)) as balance, - CASE - WHEN a.tx_id IS NULL THEN b.tx_id - ELSE a.tx_id - END, - CASE - WHEN a.ident IS NULL THEN b.ident - ELSE a.ident - END, - CASE - WHEN a.address_id IS NULL THEN b.address_id - ELSE a.address_id - END -FROM (SELECT DISTINCT tx_id AS tx_id, - address.id AS address_id, - ma_tx_out.ident as ident, - sum(ma_tx_out.quantity) AS balance - FROM tx_out - INNER JOIN ma_tx_out ON ma_tx_out.tx_out_id = tx_out.id - INNER JOIN address ON tx_out.address = address.address - GROUP BY address.id, tx_out.tx_id, ma_tx_out.ident) AS a - FULL JOIN - (SELECT DISTINCT tx_in_id AS tx_id, - address.id AS address_id, - ma_tx_out.ident as ident, - sum(ma_tx_out.quantity) AS balance - FROM tx_in - INNER JOIN tx_out - ON tx_in.tx_out_id = tx_out.tx_id AND tx_in.tx_out_index = tx_out.index - INNER JOIN ma_tx_out on ma_tx_out.tx_out_id = tx_out.id - INNER JOIN address on tx_out.address = address.address - GROUP BY address.id, tx_in_id, ma_tx_out.ident) AS b - ON a.tx_id = b.tx_id AND a.address_id = b.address_id and a.ident = b.ident; - -CREATE INDEX idx_address_token_tx_id ON address_token (tx_id); -CREATE INDEX idx_address_token_ident ON address_token (ident); -CREATE INDEX idx_address_token_address_id ON address_token (address_id); -CREATE INDEX address_token_ident_stake_tx_id_balance_idx ON address_token (ident, tx_id, balance); -CREATE INDEX address_token_ident_tx_id_balance_idx ON address_token (ident, tx_id, balance); - ---- address_token_balance --- -TRUNCATE address_token_balance; -ALTER SEQUENCE address_token_balance_id_seq RESTART; - -DROP INDEX IF EXISTS idx_address_token_balance_address_id; -DROP INDEX IF EXISTS idx_address_token_balance_ident; -DROP INDEX IF EXISTS idx_address_token_balance_address_id_ident; -DROP INDEX IF EXISTS idx_address_token_balance_ident_address_id; -DROP INDEX IF EXISTS address_token_balance_ident_stake_address_id_balance_idx; -DROP INDEX IF EXISTS address_token_balance_stake_address_id_idx; - -INSERT INTO address_token_balance(address_id, ident, balance, stake_address_id) -SELECT address_id, ident, sum(at2.balance), a.stake_address_id -FROM address_token at2 - JOIN address a on a.id = at2.address_id -GROUP BY address_id, ident, a.stake_address_id; - -CREATE INDEX IF NOT EXISTS idx_address_token_balance_address_id ON address_token_balance (address_id); -CREATE INDEX IF NOT EXISTS idx_address_token_balance_ident ON address_token_balance (ident); -CREATE INDEX IF NOT EXISTS idx_address_token_balance_address_id_ident ON address_token_balance (address_id, ident); -CREATE INDEX IF NOT EXISTS idx_address_token_balance_ident_address_id ON address_token_balance (ident, address_id); -CREATE INDEX IF NOT EXISTS address_token_balance_ident_stake_address_id_balance_idx ON address_token_balance (ident, stake_address_id, balance); -CREATE INDEX IF NOT EXISTS address_token_balance_stake_address_id_idx ON address_token_balance (stake_address_id); diff --git a/application/src/main/resources/db/migration/consumer/defects/V1_1_13__address_tx_balance_defect.sql b/application/src/main/resources/db/migration/consumer/defects/V1_1_13__address_tx_balance_defect.sql deleted file mode 100644 index 49e9cd10..00000000 --- a/application/src/main/resources/db/migration/consumer/defects/V1_1_13__address_tx_balance_defect.sql +++ /dev/null @@ -1,2 +0,0 @@ -UPDATE address_tx_balance atb -SET stake_address_id = (SELECT stake_address_id FROM address a WHERE a.id = atb.address_id); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_1__init-schema.sql b/application/src/main/resources/db/migration/ledgersync/V1_1_1__init-schema.sql similarity index 78% rename from application/src/main/resources/db/migration/consumer/V1_1_1__init-schema.sql rename to application/src/main/resources/db/migration/ledgersync/V1_1_1__init-schema.sql index 2e77cb04..00b3f5eb 100644 --- a/application/src/main/resources/db/migration/consumer/V1_1_1__init-schema.sql +++ b/application/src/main/resources/db/migration/ledgersync/V1_1_1__init-schema.sql @@ -10,10 +10,10 @@ CREATE TABLE IF NOT EXISTS ada_pots treasury numeric(20, 0) NOT NULL, utxo numeric(20, 0) NOT NULL, block_id bigint NOT NULL -); + ); -- --- Name: block; Type: TABLE; +-- Name: block; Type: TABLE; -- CREATE TABLE IF NOT EXISTS block @@ -34,21 +34,21 @@ CREATE TABLE IF NOT EXISTS block tx_count bigint, vrf_key character varying(65535), previous_id bigint -); + ); -- --- Name: cost_model; Type: TABLE; +-- Name: cost_model; Type: TABLE; -- CREATE TABLE IF NOT EXISTS cost_model ( id bigint NOT NULL, - costs character varying(65535) NOT NULL, + costs text NOT NULL, hash character varying(64) NOT NULL -); + ); -- --- Name: datum; Type: TABLE; +-- Name: datum; Type: TABLE; -- CREATE TABLE IF NOT EXISTS datum @@ -56,12 +56,12 @@ CREATE TABLE IF NOT EXISTS datum id bigint NOT NULL, bytes bytea, hash character varying(64) NOT NULL, - value character varying(65535), + value text, tx_id bigint NOT NULL -); + ); -- --- Name: delegation; Type: TABLE; +-- Name: delegation; Type: TABLE; -- CREATE TABLE IF NOT EXISTS delegation @@ -76,17 +76,17 @@ CREATE TABLE IF NOT EXISTS delegation tx_id bigint NOT NULL ); -- --- Name: delisted_pool; Type: TABLE; +-- Name: delisted_pool; Type: TABLE; -- CREATE TABLE IF NOT EXISTS delisted_pool ( id bigint NOT NULL, hash_raw character varying(56) NOT NULL -); + ); -- --- Name: epoch; Type: TABLE; +-- Name: epoch; Type: TABLE; -- CREATE TABLE IF NOT EXISTS epoch @@ -102,11 +102,11 @@ CREATE TABLE IF NOT EXISTS epoch tx_count integer NOT NULL, era integer, rewards_distributed numeric(20, 0) -); + ); -- --- Name: epoch_param; Type: TABLE; +-- Name: epoch_param; Type: TABLE; -- CREATE TABLE IF NOT EXISTS epoch_param @@ -132,7 +132,7 @@ CREATE TABLE IF NOT EXISTS epoch_param min_fee_a integer NOT NULL, min_fee_b integer NOT NULL, min_pool_cost numeric(20, 0) NOT NULL, - min_utxo_value numeric(20, 0) NOT NULL, + min_utxo_value numeric(20, 0), monetary_expand_rate double precision NOT NULL, nonce character varying(64), optimal_pool_count integer NOT NULL, @@ -144,10 +144,10 @@ CREATE TABLE IF NOT EXISTS epoch_param treasury_growth_rate double precision NOT NULL, block_id bigint NOT NULL, cost_model_id bigint -); + ); -- --- Name: epoch_stake; Type: TABLE; +-- Name: epoch_stake; Type: TABLE; -- CREATE TABLE IF NOT EXISTS epoch_stake @@ -157,10 +157,10 @@ CREATE TABLE IF NOT EXISTS epoch_stake epoch_no integer NOT NULL, addr_id bigint NOT NULL, pool_id bigint NOT NULL -); + ); -- --- Name: epoch_sync_time; Type: TABLE; +-- Name: epoch_sync_time; Type: TABLE; -- CREATE TABLE IF NOT EXISTS epoch_sync_time @@ -169,11 +169,11 @@ CREATE TABLE IF NOT EXISTS epoch_sync_time no bigint NOT NULL, seconds bigint NOT NULL, state character varying(255) NOT NULL -); + ); -- --- Name: extra_key_witness; Type: TABLE; +-- Name: extra_key_witness; Type: TABLE; -- CREATE TABLE IF NOT EXISTS extra_key_witness @@ -181,10 +181,10 @@ CREATE TABLE IF NOT EXISTS extra_key_witness id bigint NOT NULL, hash character varying(56) NOT NULL, tx_id bigint NOT NULL -); + ); -- --- Name: failed_tx_out; Type: TABLE; +-- Name: failed_tx_out; Type: TABLE; -- CREATE TABLE IF NOT EXISTS failed_tx_out @@ -202,10 +202,10 @@ CREATE TABLE IF NOT EXISTS failed_tx_out reference_script_id bigint, stake_address_id bigint, tx_id bigint NOT NULL -); + ); -- --- Name: ma_tx_mint; Type: TABLE; +-- Name: ma_tx_mint; Type: TABLE; -- CREATE TABLE IF NOT EXISTS ma_tx_mint @@ -214,10 +214,10 @@ CREATE TABLE IF NOT EXISTS ma_tx_mint quantity numeric(20, 0) NOT NULL, ident bigint NOT NULL, tx_id bigint NOT NULL -); + ); -- --- Name: ma_tx_out; Type: TABLE; +-- Name: ma_tx_out; Type: TABLE; -- CREATE TABLE IF NOT EXISTS ma_tx_out @@ -226,10 +226,10 @@ CREATE TABLE IF NOT EXISTS ma_tx_out quantity numeric(20, 0) NOT NULL, ident bigint NOT NULL, tx_out_id bigint NOT NULL -); + ); -- --- Name: meta; Type: TABLE; +-- Name: meta; Type: TABLE; -- CREATE TABLE IF NOT EXISTS meta @@ -238,10 +238,10 @@ CREATE TABLE IF NOT EXISTS meta network_name character varying(255) NOT NULL, start_time timestamp without time zone NOT NULL, version character varying(255) NOT NULL -); + ); -- --- Name: multi_asset; Type: TABLE; +-- Name: multi_asset; Type: TABLE; -- CREATE TABLE IF NOT EXISTS multi_asset @@ -253,11 +253,12 @@ CREATE TABLE IF NOT EXISTS multi_asset supply numeric(23, 0), tx_count bigint, "time" timestamp without time zone, - total_volume numeric(40) -); + total_volume numeric(40), + name_view varchar(64) + ); -- --- Name: param_proposal; Type: TABLE; +-- Name: param_proposal; Type: TABLE; -- CREATE TABLE IF NOT EXISTS param_proposal @@ -295,10 +296,10 @@ CREATE TABLE IF NOT EXISTS param_proposal treasury_growth_rate double precision, cost_model_id bigint, registered_tx_id bigint NOT NULL -); + ); -- --- Name: pool_hash; Type: TABLE; +-- Name: pool_hash; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_hash @@ -308,10 +309,10 @@ CREATE TABLE IF NOT EXISTS pool_hash pool_size numeric(20, 0) NOT NULL, epoch_no integer NOT NULL, view character varying(255) NOT NULL -); + ); -- --- Name: pool_metadata_ref; Type: TABLE; +-- Name: pool_metadata_ref; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_metadata_ref @@ -321,10 +322,10 @@ CREATE TABLE IF NOT EXISTS pool_metadata_ref url character varying(255) NOT NULL, pool_id bigint NOT NULL, registered_tx_id bigint NOT NULL -); + ); -- --- Name: pool_offline_data; Type: TABLE; +-- Name: pool_offline_data; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_offline_data @@ -336,11 +337,13 @@ CREATE TABLE IF NOT EXISTS pool_offline_data ticker_name character varying(255) NOT NULL, pool_id bigint NOT NULL, pmr_id bigint NOT NULL, - pool_name varchar(255) -); + pool_name varchar(255), + logo_url varchar(2000), + icon_url varchar(2000) + ); -- --- Name: pool_offline_fetch_error; Type: TABLE; +-- Name: pool_offline_fetch_error; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_offline_fetch_error @@ -351,10 +354,10 @@ CREATE TABLE IF NOT EXISTS pool_offline_fetch_error retry_count integer NOT NULL, pool_id bigint NOT NULL, pmr_id bigint NOT NULL -); + ); -- --- Name: pool_owner; Type: TABLE; +-- Name: pool_owner; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_owner @@ -365,7 +368,7 @@ CREATE TABLE IF NOT EXISTS pool_owner ); -- --- Name: pool_relay; Type: TABLE; +-- Name: pool_relay; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_relay @@ -377,11 +380,11 @@ CREATE TABLE IF NOT EXISTS pool_relay ipv6 character varying(255), port integer, update_id bigint NOT NULL -); + ); -- --- Name: pool_retire; Type: TABLE; +-- Name: pool_retire; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_retire @@ -394,7 +397,7 @@ CREATE TABLE IF NOT EXISTS pool_retire ); -- --- Name: pool_update; Type: TABLE; +-- Name: pool_update; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pool_update @@ -410,10 +413,10 @@ CREATE TABLE IF NOT EXISTS pool_update hash_id bigint NOT NULL, registered_tx_id bigint NOT NULL, reward_addr_id bigint NOT NULL -); + ); -- --- Name: pot_transfer; Type: TABLE; +-- Name: pot_transfer; Type: TABLE; -- CREATE TABLE IF NOT EXISTS pot_transfer @@ -423,11 +426,11 @@ CREATE TABLE IF NOT EXISTS pot_transfer reserves numeric(20, 0) NOT NULL, treasury numeric(20, 0) NOT NULL, tx_id bigint NOT NULL -); + ); -- --- Name: redeemer; Type: TABLE; +-- Name: redeemer; Type: TABLE; -- CREATE TABLE IF NOT EXISTS redeemer @@ -441,7 +444,7 @@ CREATE TABLE IF NOT EXISTS redeemer unit_steps bigint NOT NULL, redeemer_data_id bigint NOT NULL, tx_id bigint NOT NULL -); + ); -- -- Name: redeemer_data; Type: TABLE; @@ -452,12 +455,12 @@ CREATE TABLE IF NOT EXISTS redeemer_data id bigint NOT NULL, bytes bytea, hash character varying(64) NOT NULL, - value character varying(65535), + value text, tx_id bigint NOT NULL -); + ); -- --- Name: reference_tx_in; Type: TABLE; +-- Name: reference_tx_in; Type: TABLE; -- CREATE TABLE IF NOT EXISTS reference_tx_in @@ -469,7 +472,7 @@ CREATE TABLE IF NOT EXISTS reference_tx_in ); -- --- Name: reserve; Type: TABLE; +-- Name: reserve; Type: TABLE; -- CREATE TABLE IF NOT EXISTS reserve @@ -479,10 +482,10 @@ CREATE TABLE IF NOT EXISTS reserve cert_index integer NOT NULL, addr_id bigint NOT NULL, tx_id bigint NOT NULL -); + ); -- --- Name: reserved_pool_ticker; Type: TABLE; +-- Name: reserved_pool_ticker; Type: TABLE; -- CREATE TABLE IF NOT EXISTS reserved_pool_ticker @@ -490,11 +493,11 @@ CREATE TABLE IF NOT EXISTS reserved_pool_ticker id bigint NOT NULL, name character varying(255) NOT NULL, pool_hash character varying(56) NOT NULL -); + ); -- --- Name: reward; Type: TABLE; +-- Name: reward; Type: TABLE; -- CREATE TABLE IF NOT EXISTS reward @@ -506,10 +509,10 @@ CREATE TABLE IF NOT EXISTS reward type character varying(255) NOT NULL, addr_id bigint NOT NULL, pool_id bigint -); + ); -- --- Name: schema_version; Type: TABLE; +-- Name: schema_version; Type: TABLE; -- CREATE TABLE IF NOT EXISTS schema_version @@ -521,7 +524,7 @@ CREATE TABLE IF NOT EXISTS schema_version ); -- --- Name: script; Type: TABLE; +-- Name: script; Type: TABLE; -- CREATE TABLE IF NOT EXISTS script @@ -529,14 +532,15 @@ CREATE TABLE IF NOT EXISTS script id bigint NOT NULL, bytes bytea, hash character varying(64) NOT NULL, - json character varying(65535), + json text, serialised_size integer, type character varying(255) NOT NULL, - tx_id bigint NOT NULL -); + tx_id bigint NOT NULL, + verified bool NULL DEFAULT false + ); -- --- Name: slot_leader; Type: TABLE; +-- Name: slot_leader; Type: TABLE; -- CREATE TABLE IF NOT EXISTS slot_leader @@ -545,10 +549,10 @@ CREATE TABLE IF NOT EXISTS slot_leader description character varying(65535) NOT NULL, hash character varying(56) NOT NULL, pool_hash_id bigint -); + ); -- --- Name: stake_address; Type: TABLE; +-- Name: stake_address; Type: TABLE; -- CREATE TABLE IF NOT EXISTS stake_address @@ -559,10 +563,10 @@ CREATE TABLE IF NOT EXISTS stake_address view character varying(65535) NOT NULL, balance numeric(39), available_reward numeric(39) -); + ); -- --- Name: stake_deregistration; Type: TABLE; +-- Name: stake_deregistration; Type: TABLE; -- CREATE TABLE IF NOT EXISTS stake_deregistration @@ -576,7 +580,7 @@ CREATE TABLE IF NOT EXISTS stake_deregistration ); -- --- Name: stake_registration; Type: TABLE; +-- Name: stake_registration; Type: TABLE; -- CREATE TABLE IF NOT EXISTS stake_registration @@ -589,7 +593,7 @@ CREATE TABLE IF NOT EXISTS stake_registration ); -- --- Name: treasury; Type: TABLE; +-- Name: treasury; Type: TABLE; -- CREATE TABLE IF NOT EXISTS treasury @@ -599,30 +603,31 @@ CREATE TABLE IF NOT EXISTS treasury cert_index integer NOT NULL, addr_id bigint NOT NULL, tx_id bigint NOT NULL -); + ); -- --- Name: tx; Type: TABLE; +-- Name: tx; Type: TABLE; -- CREATE TABLE IF NOT EXISTS tx ( - id bigint NOT NULL, - block_id bigint, - block_index bigint, - deposit bigint, - fee numeric(20, 0), - hash character varying(64) NOT NULL, - invalid_before numeric(20, 0), - invalid_hereafter numeric(20, 0), - out_sum numeric(20, 0), - script_size integer, - size integer, - valid_contract boolean -); + id bigint NOT NULL, + block_id bigint, + block_index bigint, + deposit bigint, + fee numeric(20, 0), + hash character varying(64) NOT NULL, + invalid_before numeric(20, 0), + invalid_hereafter numeric(20, 0), + out_sum numeric(20, 0), + script_size integer, + size integer, + valid_contract boolean, + tx_metadata_hash_id bigint + ); -- --- Name: tx_in; Type: TABLE; +-- Name: tx_in; Type: TABLE; -- CREATE TABLE IF NOT EXISTS tx_in @@ -636,21 +641,21 @@ CREATE TABLE IF NOT EXISTS tx_in -- --- Name: tx_metadata; Type: TABLE; +-- Name: tx_metadata; Type: TABLE; -- CREATE TABLE IF NOT EXISTS tx_metadata ( id bigint NOT NULL, bytes bytea, - json character varying(65535), + json text, key numeric(20, 0) NOT NULL, tx_id bigint NOT NULL -); + ); -- --- Name: tx_out; Type: TABLE; +-- Name: tx_out; Type: TABLE; -- CREATE TABLE IF NOT EXISTS tx_out @@ -668,7 +673,7 @@ CREATE TABLE IF NOT EXISTS tx_out reference_script_id bigint, stake_address_id bigint, tx_id bigint NOT NULL -); + ); -- -- Name: withdrawal; Type: TABLE; @@ -681,7 +686,7 @@ CREATE TABLE IF NOT EXISTS withdrawal addr_id bigint NOT NULL, redeemer_id bigint, tx_id bigint NOT NULL -); + ); -- -- Tag: extended edition; Type: TABLE @@ -698,8 +703,9 @@ CREATE TABLE IF NOT EXISTS address address_has_script boolean NOT NULL, balance numeric(39) NOT NULL, tx_count bigint, - stake_address_id bigint -); + stake_address_id bigint, + verified_contract boolean + ); -- -- Name: address_token; Type: TABLE; @@ -712,7 +718,7 @@ CREATE TABLE IF NOT EXISTS address_token ident bigint NOT NULL, tx_id bigint NOT NULL, address_id bigint NULL -); + ); -- -- Name: address_tx_balance; Type: TABLE; @@ -720,38 +726,22 @@ CREATE TABLE IF NOT EXISTS address_token CREATE TABLE IF NOT EXISTS address_tx_balance ( - id bigint NOT NULL, - balance numeric(39) NOT NULL, - time timestamp, - tx_id bigint NOT NULL, - address_id bigint NULL -); + id bigint NOT NULL, + balance numeric(39) NOT NULL, + time timestamp, + tx_id bigint NOT NULL, + address_id bigint NULL, + stake_address_id bigint + ); CREATE TABLE IF NOT EXISTS address_token_balance ( - id bigint NOT NULL, - address_id bigint NULL, - balance numeric(39) NOT NULL, - ident bigint -); - --- --- Name: asset_metadata; Type: TABLE; --- - -CREATE TABLE IF NOT EXISTS asset_metadata -( - id bigint NOT NULL, - decimals integer NOT NULL, - description varchar(255) NOT NULL, - logo varchar(100000) NOT NULL, - name varchar(255) NOT NULL, - policy varchar(255) NOT NULL, - subject varchar(255) NOT NULL, - ticker varchar(255) NOT NULL, - url varchar(255) NOT NULL, - ident bigint NOT NULL -); + id bigint NOT NULL, + address_id bigint NULL, + balance numeric(39) NOT NULL, + ident bigint, + stake_address_id bigint + ); -- -- Name: rollback_history; Type: TABLE; @@ -764,20 +754,21 @@ CREATE TABLE IF NOT EXISTS rollback_history block_no bigint NOT NULL, rollback_time timestamp(6) NOT NULL, slot_no bigint NOT NULL -); + ); CREATE TABLE IF NOT EXISTS unconsume_tx_in ( id bigint NOT NULL, tx_out_index smallint NOT NULL, tx_in_id bigint NOT NULL, - tx_out_id bigint NOT NULL + tx_out_id bigint NOT NULL, + redeemer_id bigint ); CREATE TABLE IF NOT EXISTS tx_chart ( id bigserial NOT NULL - PRIMARY KEY, + PRIMARY KEY, day NUMERIC(13) NOT NULL, hour NUMERIC(13) NOT NULL, minute NUMERIC(13) NOT NULL, @@ -789,49 +780,35 @@ CREATE TABLE IF NOT EXISTS tx_chart year NUMERIC(13) NOT NULL ); -CREATE TABLE IF NOT EXISTS report_history -( - id BIGINT NOT NULL - PRIMARY KEY, - report_name varchar(255) NOT NULL, - created_at timestamp, - username varchar(255) NOT NULL, - status varchar(255), - type varchar(255), - storage_key varchar(255) - constraint storage_key_unique - unique -); +CREATE TABLE IF NOT EXISTS tx_metadata_hash +( + id bigserial NOT NULL + PRIMARY KEY, + hash VARCHAR(64) NOT NULL + ); -CREATE TABLE IF NOT EXISTS stake_key_report_history -( - id bigint NOT NULL - primary key, - stake_key varchar(255) NOT NULL, - from_date timestamp NOT NULL, - to_date timestamp NOT NULL, - is_ada_transfer boolean DEFAULT FALSE, - is_fees_paid boolean DEFAULT FALSE, - report_id bigint NOT NULL, - event_registration boolean DEFAULT FALSE, - event_delegation boolean DEFAULT FALSE, - event_rewards boolean DEFAULT FALSE, - event_withdrawal boolean DEFAULT FALSE, - event_deregistration boolean DEFAULT FALSE +-- tx_witnesses +CREATE TABLE IF NOT EXISTS tx_witnesses +( + id bigint NOT NULL + PRIMARY KEY, + tx_id bigint NOT NULL, + key varchar, + signature varchar, + index_arr int[], + index_arr_size int, + type varchar(50) + ); + +-- tx_bootstrap_witnesses +CREATE TABLE IF NOT EXISTS tx_bootstrap_witnesses +( + id bigint NOT NULL + PRIMARY KEY, + tx_id bigint NOT NULL, + public_key varchar, + signature varchar, + chain_code varchar, + attributes varchar ); -CREATE TABLE IF NOT EXISTS pool_report_history -( - id bigint NOT NULL - PRIMARY KEY, - pool_id varchar(255) NOT NULL, - is_pool_size boolean NOT NULL, - is_fees_paid boolean NOT NULL, - begin_epoch integer NOT NULL, - end_epoch integer NOT NULL, - report_id bigint NOT NULL, - event_registration boolean NOT NULL, - event_deregistration boolean NOT NULL, - event_reward boolean NOT NULL, - event_pool_update boolean NOT NULL -); \ No newline at end of file diff --git a/application/src/main/resources/db/migration/consumer/V1_1_2__add_table_sequence.sql b/application/src/main/resources/db/migration/ledgersync/V1_1_2__add-table-sequence.sql similarity index 75% rename from application/src/main/resources/db/migration/consumer/V1_1_2__add_table_sequence.sql rename to application/src/main/resources/db/migration/ledgersync/V1_1_2__add-table-sequence.sql index 9668e83e..bfafa5d2 100644 --- a/application/src/main/resources/db/migration/consumer/V1_1_2__add_table_sequence.sql +++ b/application/src/main/resources/db/migration/ledgersync/V1_1_2__add-table-sequence.sql @@ -22,7 +22,7 @@ CREATE SEQUENCE block_id_seq ALTER SEQUENCE block_id_seq OWNED BY block.id; -- --- Name: cost_model_id_seq; Type: SEQUENCE; +-- Name: cost_model_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE cost_model_id_seq @@ -33,7 +33,7 @@ CREATE SEQUENCE cost_model_id_seq ALTER SEQUENCE cost_model_id_seq OWNED BY cost_model.id; -- --- Name: datum_id_seq; Type: SEQUENCE; +-- Name: datum_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE datum_id_seq @@ -44,7 +44,7 @@ CREATE SEQUENCE datum_id_seq ALTER SEQUENCE datum_id_seq OWNED BY datum.id; -- --- Name: delegation_id_seq; Type: SEQUENCE; +-- Name: delegation_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE delegation_id_seq @@ -63,7 +63,7 @@ CREATE SEQUENCE delisted_pool_id_seq ALTER SEQUENCE delisted_pool_id_seq OWNED BY delisted_pool.id; -- --- Name: epoch_id_seq; Type: SEQUENCE; +-- Name: epoch_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE epoch_id_seq @@ -86,7 +86,7 @@ CREATE SEQUENCE epoch_param_id_seq ALTER SEQUENCE epoch_param_id_seq OWNED BY epoch_param.id; -- --- Name: epoch_stake_id_seq; Type: SEQUENCE; +-- Name: epoch_stake_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE epoch_stake_id_seq @@ -97,7 +97,7 @@ CREATE SEQUENCE epoch_stake_id_seq ALTER SEQUENCE epoch_stake_id_seq OWNED BY epoch_stake.id; -- --- Name: epoch_sync_time_id_seq; Type: SEQUENCE; +-- Name: epoch_sync_time_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE epoch_sync_time_id_seq @@ -108,7 +108,7 @@ CREATE SEQUENCE epoch_sync_time_id_seq ALTER SEQUENCE epoch_sync_time_id_seq OWNED BY epoch_sync_time.id; -- --- Name: extra_key_witness_id_seq; Type: SEQUENCE; +-- Name: extra_key_witness_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE extra_key_witness_id_seq @@ -120,7 +120,7 @@ CREATE SEQUENCE extra_key_witness_id_seq ALTER SEQUENCE extra_key_witness_id_seq OWNED BY extra_key_witness.id; -- --- Name: failed_tx_out_id_seq; Type: SEQUENCE; +-- Name: failed_tx_out_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE failed_tx_out_id_seq @@ -131,7 +131,7 @@ CREATE SEQUENCE failed_tx_out_id_seq ALTER SEQUENCE failed_tx_out_id_seq OWNED BY failed_tx_out.id; -- --- Name: ma_tx_mint_id_seq; Type: SEQUENCE; +-- Name: ma_tx_mint_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE ma_tx_mint_id_seq @@ -142,7 +142,7 @@ CREATE SEQUENCE ma_tx_mint_id_seq ALTER SEQUENCE ma_tx_mint_id_seq OWNED BY ma_tx_mint.id; -- --- Name: ma_tx_out_id_seq; Type: SEQUENCE; +-- Name: ma_tx_out_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE ma_tx_out_id_seq @@ -153,7 +153,7 @@ CREATE SEQUENCE ma_tx_out_id_seq ALTER SEQUENCE ma_tx_out_id_seq OWNED BY ma_tx_out.id; -- --- Name: meta_id_seq; Type: SEQUENCE; +-- Name: meta_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE meta_id_seq @@ -164,7 +164,7 @@ CREATE SEQUENCE meta_id_seq ALTER SEQUENCE meta_id_seq OWNED BY meta.id; -- --- Name: multi_asset_id_seq; Type: SEQUENCE; +-- Name: multi_asset_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE multi_asset_id_seq @@ -175,7 +175,7 @@ CREATE SEQUENCE multi_asset_id_seq ALTER SEQUENCE multi_asset_id_seq OWNED BY multi_asset.id; -- --- Name: param_proposal_id_seq; Type: SEQUENCE; +-- Name: param_proposal_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE param_proposal_id_seq @@ -186,7 +186,7 @@ CREATE SEQUENCE param_proposal_id_seq ALTER SEQUENCE param_proposal_id_seq OWNED BY param_proposal.id; -- --- Name: pool_hash_id_seq; Type: SEQUENCE; +-- Name: pool_hash_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_hash_id_seq @@ -197,7 +197,7 @@ CREATE SEQUENCE pool_hash_id_seq ALTER SEQUENCE pool_hash_id_seq OWNED BY pool_hash.id; -- --- Name: pool_metadata_ref_id_seq; Type: SEQUENCE; +-- Name: pool_metadata_ref_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_metadata_ref_id_seq @@ -209,7 +209,7 @@ CREATE SEQUENCE pool_metadata_ref_id_seq ALTER SEQUENCE pool_metadata_ref_id_seq OWNED BY pool_metadata_ref.id; -- --- Name: pool_offline_data_id_seq; Type: SEQUENCE; +-- Name: pool_offline_data_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_offline_data_id_seq @@ -220,7 +220,7 @@ CREATE SEQUENCE pool_offline_data_id_seq ALTER SEQUENCE pool_offline_data_id_seq OWNED BY pool_offline_data.id; -- --- Name: pool_offline_fetch_error_id_seq; Type: SEQUENCE; +-- Name: pool_offline_fetch_error_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_offline_fetch_error_id_seq @@ -231,7 +231,7 @@ CREATE SEQUENCE pool_offline_fetch_error_id_seq ALTER SEQUENCE pool_offline_fetch_error_id_seq OWNED BY pool_offline_fetch_error.id; -- --- Name: pool_owner_id_seq; Type: SEQUENCE; +-- Name: pool_owner_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_owner_id_seq @@ -242,7 +242,7 @@ CREATE SEQUENCE pool_owner_id_seq ALTER SEQUENCE pool_owner_id_seq OWNED BY pool_owner.id; -- --- Name: pool_relay_id_seq; Type: SEQUENCE; +-- Name: pool_relay_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_relay_id_seq @@ -253,7 +253,7 @@ CREATE SEQUENCE pool_relay_id_seq ALTER SEQUENCE pool_relay_id_seq OWNED BY pool_relay.id; -- --- Name: pool_retire_id_seq; Type: SEQUENCE; +-- Name: pool_retire_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_retire_id_seq @@ -265,7 +265,7 @@ CREATE SEQUENCE pool_retire_id_seq ALTER SEQUENCE pool_retire_id_seq OWNED BY pool_retire.id; -- --- Name: pool_update_id_seq; Type: SEQUENCE; +-- Name: pool_update_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pool_update_id_seq @@ -276,7 +276,7 @@ CREATE SEQUENCE pool_update_id_seq ALTER SEQUENCE pool_update_id_seq OWNED BY pool_update.id; -- --- Name: pot_transfer_id_seq; Type: SEQUENCE; +-- Name: pot_transfer_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE pot_transfer_id_seq @@ -298,7 +298,7 @@ CREATE SEQUENCE redeemer_id_seq ALTER SEQUENCE redeemer_id_seq OWNED BY redeemer.id; -- --- Name: redeemer_data_id_seq; Type: SEQUENCE; +-- Name: redeemer_data_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE redeemer_data_id_seq @@ -309,7 +309,7 @@ CREATE SEQUENCE redeemer_data_id_seq ALTER SEQUENCE redeemer_data_id_seq OWNED BY redeemer_data.id; -- --- Name: reference_tx_in_id_seq; Type: SEQUENCE; +-- Name: reference_tx_in_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE reference_tx_in_id_seq @@ -320,7 +320,7 @@ CREATE SEQUENCE reference_tx_in_id_seq ALTER SEQUENCE reference_tx_in_id_seq OWNED BY reference_tx_in.id; -- --- Name: reserve_id_seq; Type: SEQUENCE; +-- Name: reserve_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE reserve_id_seq @@ -331,7 +331,7 @@ CREATE SEQUENCE reserve_id_seq ALTER SEQUENCE reserve_id_seq OWNED BY reserve.id; -- --- Name: reserved_pool_ticker_id_seq; Type: SEQUENCE; +-- Name: reserved_pool_ticker_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE reserved_pool_ticker_id_seq @@ -341,9 +341,8 @@ CREATE SEQUENCE reserved_pool_ticker_id_seq NO MAXVALUE CACHE 1; ALTER SEQUENCE reserved_pool_ticker_id_seq OWNED BY reserved_pool_ticker.id; - -- --- Name: reward_id_seq; Type: SEQUENCE; +-- Name: reward_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE reward_id_seq @@ -367,7 +366,7 @@ CREATE SEQUENCE schema_version_id_seq ALTER SEQUENCE schema_version_id_seq OWNED BY schema_version.id; -- --- Name: script_id_seq; Type: SEQUENCE; +-- Name: script_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE script_id_seq @@ -379,7 +378,7 @@ CREATE SEQUENCE script_id_seq ALTER SEQUENCE script_id_seq OWNED BY script.id; -- --- Name: slot_leader_id_seq; Type: SEQUENCE; +-- Name: slot_leader_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE slot_leader_id_seq @@ -390,7 +389,7 @@ CREATE SEQUENCE slot_leader_id_seq ALTER SEQUENCE slot_leader_id_seq OWNED BY slot_leader.id; -- --- Name: stake_address_id_seq; Type: SEQUENCE; +-- Name: stake_address_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE stake_address_id_seq @@ -401,7 +400,7 @@ CREATE SEQUENCE stake_address_id_seq ALTER SEQUENCE stake_address_id_seq OWNED BY stake_address.id; -- --- Name: stake_deregistration_id_seq; Type: SEQUENCE; +-- Name: stake_deregistration_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE stake_deregistration_id_seq @@ -412,7 +411,7 @@ CREATE SEQUENCE stake_deregistration_id_seq ALTER SEQUENCE stake_deregistration_id_seq OWNED BY stake_deregistration.id; -- --- Name: stake_registration_id_seq; Type: SEQUENCE; +-- Name: stake_registration_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE stake_registration_id_seq @@ -423,7 +422,7 @@ CREATE SEQUENCE stake_registration_id_seq ALTER SEQUENCE stake_registration_id_seq OWNED BY stake_registration.id; -- --- Name: treasury_id_seq; Type: SEQUENCE; +-- Name: treasury_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE treasury_id_seq @@ -434,7 +433,7 @@ CREATE SEQUENCE treasury_id_seq ALTER SEQUENCE treasury_id_seq OWNED BY treasury.id; -- --- Name: tx_id_seq; Type: SEQUENCE; +-- Name: tx_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE tx_id_seq @@ -445,7 +444,7 @@ CREATE SEQUENCE tx_id_seq ALTER SEQUENCE tx_id_seq OWNED BY tx.id; -- --- Name: tx_in_id_seq; Type: SEQUENCE; +-- Name: tx_in_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE tx_in_id_seq @@ -456,7 +455,7 @@ CREATE SEQUENCE tx_in_id_seq ALTER SEQUENCE tx_in_id_seq OWNED BY tx_in.id; -- --- Name: tx_metadata_id_seq; Type: SEQUENCE; +-- Name: tx_metadata_id_seq; Type: SEQUENCE; -- CREATE SEQUENCE tx_metadata_id_seq @@ -544,18 +543,6 @@ CREATE SEQUENCE address_token_balance_id_seq ALTER SEQUENCE address_token_balance_id_seq OWNED BY address_token_balance.id; --- --- Name: asset_metadata_id_seq; Type: SEQUENCE; --- - -CREATE SEQUENCE asset_metadata_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE CACHE 1; - -ALTER SEQUENCE asset_metadata_id_seq OWNED BY asset_metadata.id; - -- -- Name: rollback_history_id_seq; Type: SEQUENCE; -- @@ -568,51 +555,12 @@ CREATE SEQUENCE rollback_history_id_seq ALTER SEQUENCE rollback_history_id_seq OWNED BY rollback_history.id; --- --- Name: report_history_id_seq; Type: SEQUENCE; --- - -CREATE SEQUENCE report_history_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE report_history_id_seq OWNED BY report_history.id; - --- --- Name: stake_key_report_history_id_seq; Type: SEQUENCE; --- - -CREATE SEQUENCE stake_key_report_history_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE stake_key_report_history_id_seq OWNED BY stake_key_report_history.id; - --- --- Name: pool_report_history_id_seq; Type: SEQUENCE; --- -CREATE SEQUENCE pool_report_history_id_seq - start with 1 - increment by 1 - no minvalue - no maxvalue - cache 1; - -alter sequence pool_report_history_id_seq owned by pool_report_history.id; - - -- -- Name: ada_pots id; Type: DEFAULT; -- ALTER TABLE ONLY ada_pots - ALTER COLUMN id SET DEFAULT nextval('ada_pots_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('ada_pots_id_seq'::regclass); -- @@ -620,7 +568,7 @@ ALTER TABLE ONLY ada_pots -- ALTER TABLE ONLY block - ALTER COLUMN id SET DEFAULT nextval('block_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('block_id_seq'::regclass); -- @@ -628,7 +576,7 @@ ALTER TABLE ONLY block -- ALTER TABLE ONLY cost_model - ALTER COLUMN id SET DEFAULT nextval('cost_model_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('cost_model_id_seq'::regclass); -- @@ -636,7 +584,7 @@ ALTER TABLE ONLY cost_model -- ALTER TABLE ONLY datum - ALTER COLUMN id SET DEFAULT nextval('datum_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('datum_id_seq'::regclass); -- @@ -644,7 +592,7 @@ ALTER TABLE ONLY datum -- ALTER TABLE ONLY delegation - ALTER COLUMN id SET DEFAULT nextval('delegation_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('delegation_id_seq'::regclass); -- @@ -652,7 +600,7 @@ ALTER TABLE ONLY delegation -- ALTER TABLE ONLY delisted_pool - ALTER COLUMN id SET DEFAULT nextval('delisted_pool_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('delisted_pool_id_seq'::regclass); -- @@ -660,7 +608,7 @@ ALTER TABLE ONLY delisted_pool -- ALTER TABLE ONLY epoch - ALTER COLUMN id SET DEFAULT nextval('epoch_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('epoch_id_seq'::regclass); -- @@ -668,7 +616,7 @@ ALTER TABLE ONLY epoch -- ALTER TABLE ONLY epoch_param - ALTER COLUMN id SET DEFAULT nextval('epoch_param_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('epoch_param_id_seq'::regclass); -- @@ -676,7 +624,7 @@ ALTER TABLE ONLY epoch_param -- ALTER TABLE ONLY epoch_stake - ALTER COLUMN id SET DEFAULT nextval('epoch_stake_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('epoch_stake_id_seq'::regclass); -- @@ -684,7 +632,7 @@ ALTER TABLE ONLY epoch_stake -- ALTER TABLE ONLY epoch_sync_time - ALTER COLUMN id SET DEFAULT nextval('epoch_sync_time_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('epoch_sync_time_id_seq'::regclass); -- @@ -692,7 +640,7 @@ ALTER TABLE ONLY epoch_sync_time -- ALTER TABLE ONLY extra_key_witness - ALTER COLUMN id SET DEFAULT nextval('extra_key_witness_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('extra_key_witness_id_seq'::regclass); -- @@ -700,7 +648,7 @@ ALTER TABLE ONLY extra_key_witness -- ALTER TABLE ONLY failed_tx_out - ALTER COLUMN id SET DEFAULT nextval('failed_tx_out_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('failed_tx_out_id_seq'::regclass); -- @@ -708,7 +656,7 @@ ALTER TABLE ONLY failed_tx_out -- ALTER TABLE ONLY ma_tx_mint - ALTER COLUMN id SET DEFAULT nextval('ma_tx_mint_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('ma_tx_mint_id_seq'::regclass); -- @@ -716,7 +664,7 @@ ALTER TABLE ONLY ma_tx_mint -- ALTER TABLE ONLY ma_tx_out - ALTER COLUMN id SET DEFAULT nextval('ma_tx_out_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('ma_tx_out_id_seq'::regclass); -- @@ -724,7 +672,7 @@ ALTER TABLE ONLY ma_tx_out -- ALTER TABLE ONLY meta - ALTER COLUMN id SET DEFAULT nextval('meta_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('meta_id_seq'::regclass); -- @@ -732,7 +680,7 @@ ALTER TABLE ONLY meta -- ALTER TABLE ONLY multi_asset - ALTER COLUMN id SET DEFAULT nextval('multi_asset_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('multi_asset_id_seq'::regclass); -- @@ -740,7 +688,7 @@ ALTER TABLE ONLY multi_asset -- ALTER TABLE ONLY param_proposal - ALTER COLUMN id SET DEFAULT nextval('param_proposal_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('param_proposal_id_seq'::regclass); -- @@ -748,7 +696,7 @@ ALTER TABLE ONLY param_proposal -- ALTER TABLE ONLY pool_hash - ALTER COLUMN id SET DEFAULT nextval('pool_hash_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_hash_id_seq'::regclass); -- @@ -756,7 +704,7 @@ ALTER TABLE ONLY pool_hash -- ALTER TABLE ONLY pool_metadata_ref - ALTER COLUMN id SET DEFAULT nextval('pool_metadata_ref_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_metadata_ref_id_seq'::regclass); -- @@ -764,7 +712,7 @@ ALTER TABLE ONLY pool_metadata_ref -- ALTER TABLE ONLY pool_offline_data - ALTER COLUMN id SET DEFAULT nextval('pool_offline_data_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_offline_data_id_seq'::regclass); -- @@ -772,7 +720,7 @@ ALTER TABLE ONLY pool_offline_data -- ALTER TABLE ONLY pool_offline_fetch_error - ALTER COLUMN id SET DEFAULT nextval('pool_offline_fetch_error_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_offline_fetch_error_id_seq'::regclass); -- @@ -780,7 +728,7 @@ ALTER TABLE ONLY pool_offline_fetch_error -- ALTER TABLE ONLY pool_owner - ALTER COLUMN id SET DEFAULT nextval('pool_owner_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_owner_id_seq'::regclass); -- @@ -788,7 +736,7 @@ ALTER TABLE ONLY pool_owner -- ALTER TABLE ONLY pool_relay - ALTER COLUMN id SET DEFAULT nextval('pool_relay_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_relay_id_seq'::regclass); -- @@ -796,14 +744,14 @@ ALTER TABLE ONLY pool_relay -- ALTER TABLE ONLY pool_retire - ALTER COLUMN id SET DEFAULT nextval('pool_retire_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_retire_id_seq'::regclass); -- -- Name: pool_update id; Type: DEFAULT; -- ALTER TABLE ONLY pool_update - ALTER COLUMN id SET DEFAULT nextval('pool_update_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pool_update_id_seq'::regclass); -- @@ -811,7 +759,7 @@ ALTER TABLE ONLY pool_update -- ALTER TABLE ONLY pot_transfer - ALTER COLUMN id SET DEFAULT nextval('pot_transfer_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('pot_transfer_id_seq'::regclass); -- @@ -819,7 +767,7 @@ ALTER TABLE ONLY pot_transfer -- ALTER TABLE ONLY redeemer - ALTER COLUMN id SET DEFAULT nextval('redeemer_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('redeemer_id_seq'::regclass); -- @@ -827,7 +775,7 @@ ALTER TABLE ONLY redeemer -- ALTER TABLE ONLY redeemer_data - ALTER COLUMN id SET DEFAULT nextval('redeemer_data_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('redeemer_data_id_seq'::regclass); -- @@ -835,7 +783,7 @@ ALTER TABLE ONLY redeemer_data -- ALTER TABLE ONLY reference_tx_in - ALTER COLUMN id SET DEFAULT nextval('reference_tx_in_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('reference_tx_in_id_seq'::regclass); -- @@ -843,7 +791,7 @@ ALTER TABLE ONLY reference_tx_in -- ALTER TABLE ONLY reserve - ALTER COLUMN id SET DEFAULT nextval('reserve_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('reserve_id_seq'::regclass); -- @@ -851,7 +799,7 @@ ALTER TABLE ONLY reserve -- ALTER TABLE ONLY reserved_pool_ticker - ALTER COLUMN id SET DEFAULT nextval('reserved_pool_ticker_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('reserved_pool_ticker_id_seq'::regclass); -- @@ -859,14 +807,14 @@ ALTER TABLE ONLY reserved_pool_ticker -- ALTER TABLE ONLY reward - ALTER COLUMN id SET DEFAULT nextval('reward_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('reward_id_seq'::regclass); -- -- Name: script id; Type: DEFAULT; -- ALTER TABLE ONLY script - ALTER COLUMN id SET DEFAULT nextval('script_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('script_id_seq'::regclass); -- @@ -874,7 +822,7 @@ ALTER TABLE ONLY script -- ALTER TABLE ONLY slot_leader - ALTER COLUMN id SET DEFAULT nextval('slot_leader_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('slot_leader_id_seq'::regclass); -- @@ -882,7 +830,7 @@ ALTER TABLE ONLY slot_leader -- ALTER TABLE ONLY stake_address - ALTER COLUMN id SET DEFAULT nextval('stake_address_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('stake_address_id_seq'::regclass); -- @@ -890,7 +838,7 @@ ALTER TABLE ONLY stake_address -- ALTER TABLE ONLY stake_deregistration - ALTER COLUMN id SET DEFAULT nextval('stake_deregistration_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('stake_deregistration_id_seq'::regclass); -- @@ -898,7 +846,7 @@ ALTER TABLE ONLY stake_deregistration -- ALTER TABLE ONLY stake_registration - ALTER COLUMN id SET DEFAULT nextval('stake_registration_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('stake_registration_id_seq'::regclass); -- @@ -906,7 +854,7 @@ ALTER TABLE ONLY stake_registration -- ALTER TABLE ONLY treasury - ALTER COLUMN id SET DEFAULT nextval('treasury_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('treasury_id_seq'::regclass); -- @@ -914,7 +862,7 @@ ALTER TABLE ONLY treasury -- ALTER TABLE ONLY tx - ALTER COLUMN id SET DEFAULT nextval('tx_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('tx_id_seq'::regclass); -- @@ -922,7 +870,7 @@ ALTER TABLE ONLY tx -- ALTER TABLE ONLY tx_in - ALTER COLUMN id SET DEFAULT nextval('tx_in_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('tx_in_id_seq'::regclass); -- @@ -930,7 +878,7 @@ ALTER TABLE ONLY tx_in -- ALTER TABLE ONLY tx_metadata - ALTER COLUMN id SET DEFAULT nextval('tx_metadata_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('tx_metadata_id_seq'::regclass); -- @@ -938,7 +886,7 @@ ALTER TABLE ONLY tx_metadata -- ALTER TABLE ONLY tx_out - ALTER COLUMN id SET DEFAULT nextval('tx_out_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('tx_out_id_seq'::regclass); -- @@ -946,7 +894,7 @@ ALTER TABLE ONLY tx_out -- ALTER TABLE ONLY unconsume_tx_in - ALTER COLUMN id SET DEFAULT nextval('unconsume_tx_in_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('unconsume_tx_in_id_seq'::regclass); -- @@ -954,70 +902,42 @@ ALTER TABLE ONLY unconsume_tx_in -- ALTER TABLE ONLY withdrawal - ALTER COLUMN id SET DEFAULT nextval('withdrawal_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('withdrawal_id_seq'::regclass); -- -- Name: address id; Type: DEFAULT; -- ALTER TABLE ONLY address - ALTER COLUMN id SET DEFAULT nextval('address_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('address_id_seq'::regclass); -- -- Name: address_token id; Type: DEFAULT; -- ALTER TABLE ONLY address_token - ALTER COLUMN id SET DEFAULT nextval('address_token_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('address_token_id_seq'::regclass); -- -- Name: address_tx_balance id; Type: DEFAULT; -- ALTER TABLE ONLY address_tx_balance - ALTER COLUMN id SET DEFAULT nextval('address_tx_balance_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('address_tx_balance_id_seq'::regclass); -- -- Name: address_token_balance id; Type: DEFAULT; -- ALTER TABLE ONLY address_token_balance - ALTER COLUMN id SET DEFAULT nextval('address_token_balance_id_seq'::regclass); - --- --- Name: asset_metadata id; Type: DEFAULT; --- - -ALTER TABLE ONLY asset_metadata - ALTER COLUMN id SET DEFAULT nextval('asset_metadata_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('address_token_balance_id_seq'::regclass); -- -- Name: rollback_history id; Type: DEFAULT; -- ALTER TABLE ONLY rollback_history - ALTER COLUMN id SET DEFAULT nextval('rollback_history_id_seq'::regclass); - --- --- Name: report_history id; Type: DEFAULT; --- - -ALTER TABLE ONLY report_history - ALTER COLUMN id SET DEFAULT nextval('report_history_id_seq'::regclass); - --- --- Name: rollback_history id; Type: DEFAULT; --- - -ALTER TABLE ONLY stake_key_report_history - ALTER COLUMN id SET DEFAULT nextval('stake_key_report_history_id_seq'::regclass); - --- --- Name: rollback_history id; Type: DEFAULT; --- - -ALTER TABLE ONLY pool_report_history - ALTER COLUMN id SET DEFAULT nextval('pool_report_history_id_seq'::regclass); +ALTER COLUMN id SET DEFAULT nextval('rollback_history_id_seq'::regclass); -- -- Name: ada_pots ada_pots_pkey; Type: CONSTRAINT; @@ -1403,16 +1323,37 @@ ALTER TABLE ONLY address_token ALTER TABLE ONLY address_token_balance ADD CONSTRAINT address_token_balance_pkey PRIMARY KEY (id); --- --- Name: asset_metadata asset_metadata_pkey; Type: CONSTRAINT; --- - -ALTER TABLE ONLY asset_metadata - ADD CONSTRAINT asset_metadata_pkey PRIMARY KEY (id); -- -- Name: rollback_history rollback_history_pkey; Type: CONSTRAINT; -- ALTER TABLE ONLY rollback_history - ADD CONSTRAINT rollback_history_pkey PRIMARY KEY (id); \ No newline at end of file + ADD CONSTRAINT rollback_history_pkey PRIMARY KEY (id); + + +CREATE SEQUENCE IF NOT EXISTS tx_witnesses_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + +ALTER SEQUENCE tx_witnesses_id_seq OWNED BY tx_witnesses.id; + +ALTER TABLE ONLY tx_witnesses +ALTER COLUMN id SET DEFAULT nextval('tx_witnesses_id_seq'::regclass); + + +CREATE SEQUENCE IF NOT EXISTS tx_bootstrap_witnesses_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + +ALTER SEQUENCE tx_bootstrap_witnesses_id_seq OWNED BY tx_bootstrap_witnesses.id; + + +ALTER TABLE ONLY tx_bootstrap_witnesses +ALTER COLUMN id SET DEFAULT nextval('tx_bootstrap_witnesses_id_seq'::regclass); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_3__create-index.sql b/application/src/main/resources/db/migration/ledgersync/V1_1_3__create-index.sql similarity index 80% rename from application/src/main/resources/db/migration/consumer/V1_1_3__create-index.sql rename to application/src/main/resources/db/migration/ledgersync/V1_1_3__create-index.sql index 27d8a21d..8f11de85 100644 --- a/application/src/main/resources/db/migration/consumer/V1_1_3__create-index.sql +++ b/application/src/main/resources/db/migration/ledgersync/V1_1_3__create-index.sql @@ -90,38 +90,24 @@ CREATE INDEX IF NOT EXISTS idx_address_token_balance_address_id ON address_token CREATE INDEX IF NOT EXISTS idx_address_token_balance_ident ON address_token_balance (ident); CREATE INDEX IF NOT EXISTS idx_address_token_balance_address_id_ident ON address_token_balance (address_id, ident); CREATE INDEX IF NOT EXISTS idx_address_token_balance_ident_address_id ON address_token_balance (ident, address_id); +CREATE INDEX IF NOT EXISTS idx_address_token_balance_stake_address_id ON address_token_balance (stake_address_id); CREATE INDEX IF NOT EXISTS idx_address_tx_balance_time ON address_tx_balance USING btree ("time"); CREATE INDEX IF NOT EXISTS idx_address_tx_balance_tx_id ON address_tx_balance USING btree (tx_id); +CREATE INDEX IF NOT EXISTS idx_address_tx_balance_stake_address_id ON address_tx_balance (stake_address_id); - +CREATE INDEX IF NOT EXISTS idx_multi_asset_name_view ON multi_asset (name_view); CREATE UNIQUE INDEX IF NOT EXISTS multi_asset_fingerprint_uindex ON multi_asset (fingerprint); + CREATE UNIQUE INDEX IF NOT EXISTS datum_hash_uindex ON datum (hash); CREATE UNIQUE INDEX IF NOT EXISTS pool_hash_hash_raw_index ON pool_hash (hash_raw); CREATE UNIQUE INDEX IF NOT EXISTS script_hash_uindex ON script (hash); -CREATE UNIQUE INDEX IF NOT EXISTS asset_metadata_ux ON asset_metadata (ident); CREATE INDEX IF NOT EXISTS idx_tx_chart_minute ON tx_chart ("minute"); CREATE INDEX IF NOT EXISTS idx_tx_chart_hour ON tx_chart ("hour"); CREATE INDEX IF NOT EXISTS idx_tx_chart_day ON tx_chart ("day"); CREATE INDEX IF NOT EXISTS idx_tx_chart_month ON tx_chart ("month"); -CREATE INDEX IF NOT EXISTS report_history_username_idx ON report_history (username); - -CREATE INDEX IF NOT EXISTS report_history_status_idx ON report_history (status); - -CREATE INDEX IF NOT EXISTS stake_key_report_history_stake_key_idx ON stake_key_report_history (stake_key); - -CREATE INDEX IF NOT EXISTS stake_key_report_history_report_id_idx ON stake_key_report_history (report_id); - -CREATE INDEX IF NOT EXISTS stake_key_report_history_stake_key_report_id_idx ON stake_key_report_history (stake_key, report_id); - -CREATE INDEX IF NOT EXISTS pool_report_history_pool_id_idx ON pool_report_history (pool_id); - -CREATE INDEX IF NOT EXISTS pool_report_history_report_id_idx on pool_report_history (report_id); - -CREATE INDEX IF NOT EXISTS pool_report_history_pool_id_report_id_idx on pool_report_history (pool_id, report_id); - -- Reward index CREATE INDEX IF NOT EXISTS reward_earned_epoch_idx ON reward (earned_epoch); CREATE INDEX IF NOT EXISTS reward_spendable_epoch_idx ON reward (spendable_epoch); @@ -152,3 +138,44 @@ CREATE INDEX IF NOT EXISTS address_tx_balance_address_id_time_balance_index CREATE INDEX IF NOT EXISTS address_address_has_script_idx ON address USING btree (address_has_script); +-- CREATE COMPOSITE INDEX FOR address_token_balance +CREATE INDEX IF NOT EXISTS address_token_balance_ident_stake_address_id_balance_idx + ON address_token_balance (ident, stake_address_id, balance); + +-- CREATE COMPOSITE INDEX FOR address_tx_balance +CREATE INDEX IF NOT EXISTS address_tx_balance_stake_address_id_tx_id_balance_idx + ON address_tx_balance (stake_address_id, tx_id, balance); + +CREATE INDEX IF NOT EXISTS tx_metadata_hash_idx + ON tx_metadata_hash (hash); + +CREATE INDEX IF NOT EXISTS tx__tx_metadata_hash_idx + ON tx (tx_metadata_hash_id); + +CREATE INDEX IF NOT EXISTS stake_address_balance_idx ON stake_address USING btree (balance); + + +CREATE INDEX IF NOT EXISTS address_balance_idx ON address USING btree (balance); +CREATE INDEX IF NOT EXISTS address_tx_count_idx ON address USING btree (tx_count); +CREATE UNIQUE INDEX IF NOT EXISTS address_tx_balance_tx_id_idx ON address_tx_balance USING btree (tx_id, address_id); +CREATE INDEX IF NOT EXISTS multi_asset_supply_idx ON multi_asset (supply); +CREATE INDEX IF NOT EXISTS multi_asset_time_idx ON multi_asset ("time"); + + +CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA pg_catalog; +CREATE INDEX IF NOT EXISTS name_view_gin_lower ON multi_asset USING gin (lower(name_view) gin_trgm_ops); +CREATE INDEX IF NOT EXISTS pool_name_gin_lower ON pool_offline_data USING gin (lower(pool_name) gin_trgm_ops); +CREATE INDEX IF NOT EXISTS tx_count_idx ON block USING btree (tx_count); + +CREATE INDEX IF NOT EXISTS tx_fee_idx ON tx USING btree (fee); +CREATE INDEX IF NOT EXISTS tx_out_sum_idx ON tx USING btree (out_sum); + +CREATE INDEX IF NOT EXISTS idx_unconsume_tx_in_redeemer_id ON unconsume_tx_in(redeemer_id); + +CREATE INDEX IF NOT EXISTS idx_name_view_length ON multi_asset (LENGTH(name_view)); +CREATE INDEX IF NOT EXISTS idx_pool_name_length ON pool_offline_data (LENGTH(pool_name)); + +CREATE INDEX IF NOT EXISTS tx_witnesses_tx_id_idx ON tx_witnesses (tx_id); +CREATE INDEX IF NOT EXISTS tx_bootstrap_witnesses_tx_id_idx ON tx_bootstrap_witnesses (tx_id); + +CREATE INDEX IF NOT EXISTS redeemer_script_hash_idx ON redeemer (script_hash); diff --git a/application/src/main/resources/db/migration/consumer/V1_1_4__create-unique.sql b/application/src/main/resources/db/migration/ledgersync/V1_1_4__create-unique.sql similarity index 94% rename from application/src/main/resources/db/migration/consumer/V1_1_4__create-unique.sql rename to application/src/main/resources/db/migration/ledgersync/V1_1_4__create-unique.sql index afc234fa..249c1398 100644 --- a/application/src/main/resources/db/migration/consumer/V1_1_4__create-unique.sql +++ b/application/src/main/resources/db/migration/ledgersync/V1_1_4__create-unique.sql @@ -142,20 +142,9 @@ ALTER TABLE ONLY pool_metadata_ref -- --- Name: pool_offline_data unique_pool_offline_data; Type: CONSTRAINT; +-- Name: pool_offline_data pool_offline_data_pool_id_unique; Type: CONSTRAINT; -- - -ALTER TABLE ONLY pool_offline_data - ADD CONSTRAINT unique_pool_offline_data UNIQUE (pool_id, hash); - - --- --- Name: pool_offline_fetch_error unique_pool_offline_fetch_error; Type: CONSTRAINT; --- - -ALTER TABLE ONLY pool_offline_fetch_error - ADD CONSTRAINT unique_pool_offline_fetch_error UNIQUE (pool_id, fetch_time, retry_count); - +ALTER TABLE pool_offline_data ADD CONSTRAINT pool_offline_data_pool_id_unique UNIQUE (pool_id); -- -- Name: pool_owner unique_pool_owner; Type: CONSTRAINT; diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/AssetMetadata_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/AssetMetadata_.java deleted file mode 100644 index ac290f16..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/AssetMetadata_.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(AssetMetadata.class) -public abstract class AssetMetadata_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute ticker; - public static volatile SingularAttribute subject; - public static volatile SingularAttribute decimals; - public static volatile SingularAttribute name; - public static volatile SingularAttribute description; - public static volatile SingularAttribute logo; - public static volatile SingularAttribute logoHash; - public static volatile SingularAttribute url; - public static volatile SingularAttribute policy; - - public static final String TICKER = "ticker"; - public static final String SUBJECT = "subject"; - public static final String DECIMALS = "decimals"; - public static final String NAME = "name"; - public static final String DESCRIPTION = "description"; - public static final String LOGO = "logo"; - public static final String LOGO_HASH = "logoHash"; - public static final String URL = "url"; - public static final String POLICY = "policy"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/EpochStakeCheckpoint_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/EpochStakeCheckpoint_.java deleted file mode 100644 index af6191e1..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/EpochStakeCheckpoint_.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(EpochStakeCheckpoint.class) -public abstract class EpochStakeCheckpoint_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute stakeAddress; - public static volatile SingularAttribute epochCheckpoint; - - public static final String STAKE_ADDRESS = "stakeAddress"; - public static final String EPOCH_CHECKPOINT = "epochCheckpoint"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolHistoryCheckpoint_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolHistoryCheckpoint_.java deleted file mode 100644 index 8e950c8f..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolHistoryCheckpoint_.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(PoolHistoryCheckpoint.class) -public abstract class PoolHistoryCheckpoint_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute view; - public static volatile SingularAttribute isSpendableReward; - public static volatile SingularAttribute epochCheckpoint; - - public static final String VIEW = "view"; - public static final String IS_SPENDABLE_REWARD = "isSpendableReward"; - public static final String EPOCH_CHECKPOINT = "epochCheckpoint"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolHistory_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolHistory_.java deleted file mode 100644 index d0a82c91..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolHistory_.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import java.math.BigInteger; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(PoolHistory.class) -public abstract class PoolHistory_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute margin; - public static volatile SingularAttribute activeStakePct; - public static volatile SingularAttribute fixedCost; - public static volatile SingularAttribute pool; - public static volatile SingularAttribute epochRos; - public static volatile SingularAttribute epochNo; - public static volatile SingularAttribute delegatorCnt; - public static volatile SingularAttribute poolId; - public static volatile SingularAttribute activeStake; - public static volatile SingularAttribute saturationPct; - public static volatile SingularAttribute poolFees; - public static volatile SingularAttribute delegatorRewards; - public static volatile SingularAttribute blockCnt; - - public static final String MARGIN = "margin"; - public static final String ACTIVE_STAKE_PCT = "activeStakePct"; - public static final String FIXED_COST = "fixedCost"; - public static final String POOL = "pool"; - public static final String EPOCH_ROS = "epochRos"; - public static final String EPOCH_NO = "epochNo"; - public static final String DELEGATOR_CNT = "delegatorCnt"; - public static final String POOL_ID = "poolId"; - public static final String ACTIVE_STAKE = "activeStake"; - public static final String SATURATION_PCT = "saturationPct"; - public static final String POOL_FEES = "poolFees"; - public static final String DELEGATOR_REWARDS = "delegatorRewards"; - public static final String BLOCK_CNT = "blockCnt"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolInfoCheckpoint_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolInfoCheckpoint_.java deleted file mode 100644 index 42998861..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolInfoCheckpoint_.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(PoolInfoCheckpoint.class) -public abstract class PoolInfoCheckpoint_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute view; - public static volatile SingularAttribute epochCheckpoint; - - public static final String VIEW = "view"; - public static final String EPOCH_CHECKPOINT = "epochCheckpoint"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolInfo_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolInfo_.java deleted file mode 100644 index 26fce935..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolInfo_.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import java.math.BigInteger; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(PoolInfo.class) -public abstract class PoolInfo_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute liveStake; - public static volatile SingularAttribute pool; - public static volatile SingularAttribute poolId; - public static volatile SingularAttribute activeStake; - public static volatile SingularAttribute fetchedAtEpoch; - public static volatile SingularAttribute liveSaturation; - - public static final String LIVE_STAKE = "liveStake"; - public static final String POOL = "pool"; - public static final String POOL_ID = "poolId"; - public static final String ACTIVE_STAKE = "activeStake"; - public static final String FETCHED_AT_EPOCH = "fetchedAtEpoch"; - public static final String LIVE_SATURATION = "liveSaturation"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolReportHistory_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolReportHistory_.java deleted file mode 100644 index 3baf08cc..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/PoolReportHistory_.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(PoolReportHistory.class) -public abstract class PoolReportHistory_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute eventPoolUpdate; - public static volatile SingularAttribute isPoolSize; - public static volatile SingularAttribute eventReward; - public static volatile SingularAttribute eventDeregistration; - public static volatile SingularAttribute endEpoch; - public static volatile SingularAttribute poolView; - public static volatile SingularAttribute beginEpoch; - public static volatile SingularAttribute isFeesPaid; - public static volatile SingularAttribute eventRegistration; - public static volatile SingularAttribute reportHistory; - - public static final String EVENT_POOL_UPDATE = "eventPoolUpdate"; - public static final String IS_POOL_SIZE = "isPoolSize"; - public static final String EVENT_REWARD = "eventReward"; - public static final String EVENT_DEREGISTRATION = "eventDeregistration"; - public static final String END_EPOCH = "endEpoch"; - public static final String POOL_VIEW = "poolView"; - public static final String BEGIN_EPOCH = "beginEpoch"; - public static final String IS_FEES_PAID = "isFeesPaid"; - public static final String EVENT_REGISTRATION = "eventRegistration"; - public static final String REPORT_HISTORY = "reportHistory"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/ReportHistory_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/ReportHistory_.java deleted file mode 100644 index 2a1eed9b..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/ReportHistory_.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import java.sql.Timestamp; -import javax.annotation.processing.Generated; -import org.cardanofoundation.explorer.consumercommon.enumeration.ReportStatus; -import org.cardanofoundation.explorer.consumercommon.enumeration.ReportType; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(ReportHistory.class) -public abstract class ReportHistory_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute createdAt; - public static volatile SingularAttribute reportName; - public static volatile SingularAttribute uploadedAt; - public static volatile SingularAttribute type; - public static volatile SingularAttribute storageKey; - public static volatile SingularAttribute username; - public static volatile SingularAttribute status; - - public static final String CREATED_AT = "createdAt"; - public static final String REPORT_NAME = "reportName"; - public static final String UPLOADED_AT = "uploadedAt"; - public static final String TYPE = "type"; - public static final String STORAGE_KEY = "storageKey"; - public static final String USERNAME = "username"; - public static final String STATUS = "status"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/RewardCheckpoint_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/RewardCheckpoint_.java deleted file mode 100644 index a9add8be..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/RewardCheckpoint_.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(RewardCheckpoint.class) -public abstract class RewardCheckpoint_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute stakeAddress; - public static volatile SingularAttribute epochCheckpoint; - - public static final String STAKE_ADDRESS = "stakeAddress"; - public static final String EPOCH_CHECKPOINT = "epochCheckpoint"; - -} - diff --git a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/StakeKeyReportHistory_.java b/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/StakeKeyReportHistory_.java deleted file mode 100644 index ce8c54ec..00000000 --- a/components/consumer-common/generated/org/cardanofoundation/explorer/consumercommon/entity/StakeKeyReportHistory_.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import jakarta.persistence.metamodel.SingularAttribute; -import jakarta.persistence.metamodel.StaticMetamodel; -import java.sql.Timestamp; -import javax.annotation.processing.Generated; - -@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") -@StaticMetamodel(StakeKeyReportHistory.class) -public abstract class StakeKeyReportHistory_ extends org.cardanofoundation.explorer.consumercommon.entity.BaseEntity_ { - - public static volatile SingularAttribute fromDate; - public static volatile SingularAttribute stakeKey; - public static volatile SingularAttribute toDate; - public static volatile SingularAttribute eventRewards; - public static volatile SingularAttribute eventDeregistration; - public static volatile SingularAttribute eventDelegation; - public static volatile SingularAttribute isFeesPaid; - public static volatile SingularAttribute eventWithdrawal; - public static volatile SingularAttribute isADATransfer; - public static volatile SingularAttribute eventRegistration; - public static volatile SingularAttribute reportHistory; - - public static final String FROM_DATE = "fromDate"; - public static final String STAKE_KEY = "stakeKey"; - public static final String TO_DATE = "toDate"; - public static final String EVENT_REWARDS = "eventRewards"; - public static final String EVENT_DEREGISTRATION = "eventDeregistration"; - public static final String EVENT_DELEGATION = "eventDelegation"; - public static final String IS_FEES_PAID = "isFeesPaid"; - public static final String EVENT_WITHDRAWAL = "eventWithdrawal"; - public static final String IS_AD_ATRANSFER = "isADATransfer"; - public static final String EVENT_REGISTRATION = "eventRegistration"; - public static final String REPORT_HISTORY = "reportHistory"; - -} - diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/AssetMetadata.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/AssetMetadata.java deleted file mode 100644 index ec8b7ba1..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/AssetMetadata.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.util.Objects; -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.Table; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; -import org.hibernate.Hibernate; - -@Entity -@Table(name = "asset_metadata") -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class AssetMetadata extends BaseEntity { - - @Column(name = "subject", nullable = false) - private String subject; - - @Column(name = "name", nullable = false) - private String name; - - @Column(name = "description", nullable = false) - private String description; - - @Column(name = "policy", nullable = false) - private String policy; - - @Column(name = "ticker", nullable = false) - private String ticker; - - @Column(name = "url", nullable = false) - private String url; - - @Column(name = "logo", nullable = false, length = 100000) - private String logo; - - @Column(name = "decimals", nullable = false) - private Integer decimals; - - @Column(name = "logo_hash", nullable = false) - private String logoHash; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - AssetMetadata that = (AssetMetadata) o; - return id != null && Objects.equals(id, that.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/EpochStakeCheckpoint.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/EpochStakeCheckpoint.java deleted file mode 100644 index 048922f3..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/EpochStakeCheckpoint.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.hibernate.Hibernate; - -@Entity -@Table(name = "epoch_stake_checkpoint", uniqueConstraints = { - @UniqueConstraint(name = "unique_stake_address_checkpoint_v2", - columnNames = {"view"}) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class EpochStakeCheckpoint extends BaseEntity { - @Column(name = "view", nullable = false) - private String stakeAddress; - - @Column(name = "epoch_checkpoint", nullable = false) - private Integer epochCheckpoint; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - EpochStakeCheckpoint epochCheckpoint = (EpochStakeCheckpoint) o; - return id != null && Objects.equals(id, epochCheckpoint.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolHistory.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolHistory.java deleted file mode 100644 index 6a15d7ec..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolHistory.java +++ /dev/null @@ -1,107 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.math.BigInteger; -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.ConstraintMode; -import jakarta.persistence.Entity; -import jakarta.persistence.FetchType; -import jakarta.persistence.ForeignKey; -import jakarta.persistence.JoinColumn; -import jakarta.persistence.ManyToOne; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; -import jakarta.validation.constraints.Digits; - -import lombok.AllArgsConstructor; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.cardanofoundation.explorer.consumercommon.validation.Lovelace; -import org.hibernate.Hibernate; - - -@Entity -@Table(name = "pool_history", uniqueConstraints = { - @UniqueConstraint(name = "unique_pool_history", - columnNames = {"pool_id", "epoch_no"} - ) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class PoolHistory extends BaseEntity { - - @ManyToOne(fetch = FetchType.LAZY, optional = false) - @JoinColumn(name = "pool_id", nullable = false, - foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT, name = "none")) - @EqualsAndHashCode.Exclude - private PoolHash pool; - - @Column(name = "pool_id", updatable = false, insertable = false) - private Long poolId; - - @Column(name = "epoch_no") - private Integer epochNo; - - @Column(name = "active_stake", precision = 20) - @Lovelace - @Digits(integer = 20, fraction = 0) - private BigInteger activeStake; - - @Column(name = "active_stake_pct") - private Double activeStakePct; - - @Column(name = "saturation_pct") - private Double saturationPct; - - @Column(name = "block_cnt") - private Integer blockCnt; - - @Column(name = "delegator_cnt") - private Integer delegatorCnt; - - @Column(name = "margin") - private Double margin; - - @Column(name = "fixed_cost", precision = 20) - @Lovelace - @Digits(integer = 20, fraction = 0) - private BigInteger fixedCost; - - @Column(name = "pool_fees", precision = 20) - @Lovelace - @Digits(integer = 20, fraction = 0) - private BigInteger poolFees; - - @Column(name = "deleg_rewards", precision = 20) - @Lovelace - @Digits(integer = 20, fraction = 0) - private BigInteger delegatorRewards; - - @Column(name = "epoch_ros") - private Double epochRos; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - PoolHistory poolHistory = (PoolHistory) o; - return id != null && Objects.equals(id, poolHistory.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolHistoryCheckpoint.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolHistoryCheckpoint.java deleted file mode 100644 index 7d093dfa..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolHistoryCheckpoint.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.hibernate.Hibernate; - -@Entity -@Table(name = "pool_history_checkpoint", uniqueConstraints = { - @UniqueConstraint(name = "unique_pool_history_checkpoint", - columnNames = {"view"}) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class PoolHistoryCheckpoint extends BaseEntity { - @Column(name = "view", nullable = false) - private String view; - - @Column(name = "epoch_checkpoint", nullable = false) - private Integer epochCheckpoint; - - @Column(name = "is_spendable_reward") - private Boolean isSpendableReward; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - PoolHistoryCheckpoint poolHistoryCheckpoint = (PoolHistoryCheckpoint) o; - return id != null && Objects.equals(id, poolHistoryCheckpoint.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolInfo.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolInfo.java deleted file mode 100644 index ed674856..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolInfo.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.math.BigInteger; -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.ConstraintMode; -import jakarta.persistence.Entity; -import jakarta.persistence.FetchType; -import jakarta.persistence.ForeignKey; -import jakarta.persistence.JoinColumn; -import jakarta.persistence.ManyToOne; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; -import jakarta.validation.constraints.Digits; - -import lombok.AllArgsConstructor; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.cardanofoundation.explorer.consumercommon.validation.Lovelace; -import org.hibernate.Hibernate; - - -@Entity -@Table(name = "pool_info", uniqueConstraints = { - @UniqueConstraint(name = "unique_pool_info", - columnNames = {"pool_id", "fetched_at_epoch"}) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class PoolInfo extends BaseEntity { - - @ManyToOne(fetch = FetchType.LAZY, optional = false) - @JoinColumn(name = "pool_id", nullable = false, - foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT, name = "none")) - @EqualsAndHashCode.Exclude - private PoolHash pool; - - @Column(name = "pool_id", updatable = false, insertable = false) - private Long poolId; - - @Column(name = "fetched_at_epoch", nullable = false) - private Integer fetchedAtEpoch; - - @Column(name = "active_stake", nullable = false, precision = 20) - @Lovelace - @Digits(integer = 20, fraction = 0) - private BigInteger activeStake; - - @Column(name = "live_stake", nullable = false, precision = 20) - @Lovelace - @Digits(integer = 20, fraction = 0) - private BigInteger liveStake; - - @Column(name = "live_saturation", nullable = false) - private Double liveSaturation; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - PoolInfo poolInfo = (PoolInfo) o; - return id != null && Objects.equals(id, poolInfo.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolInfoCheckpoint.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolInfoCheckpoint.java deleted file mode 100644 index 401698b8..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolInfoCheckpoint.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.hibernate.Hibernate; - -@Entity -@Table(name = "pool_info_checkpoint", uniqueConstraints = { - @UniqueConstraint(name = "pool_info_checkpoint_view_key", - columnNames = {"view"}) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class PoolInfoCheckpoint extends BaseEntity { - - @Column(name = "view", nullable = false) - private String view; - - @Column(name = "epoch_checkpoint", nullable = false) - private Integer epochCheckpoint; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - PoolInfoCheckpoint poolInfoCheckpoint = (PoolInfoCheckpoint) o; - return id != null && Objects.equals(id, poolInfoCheckpoint.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolReportHistory.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolReportHistory.java deleted file mode 100644 index a7802344..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/PoolReportHistory.java +++ /dev/null @@ -1,84 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - - -import java.util.Objects; - -import jakarta.persistence.CascadeType; -import jakarta.persistence.Column; -import jakarta.persistence.ConstraintMode; -import jakarta.persistence.Entity; -import jakarta.persistence.FetchType; -import jakarta.persistence.ForeignKey; -import jakarta.persistence.JoinColumn; -import jakarta.persistence.OneToOne; -import jakarta.persistence.Table; - -import lombok.AllArgsConstructor; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.hibernate.Hibernate; -import org.hibernate.annotations.OnDelete; -import org.hibernate.annotations.OnDeleteAction; - -@Entity -@Table(name = "pool_report_history") -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class PoolReportHistory extends BaseEntity { - - @Column(name = "pool_id", nullable = false) - private String poolView; - - @Column(name = "is_pool_size", nullable = false) - private Boolean isPoolSize; - - @Column(name = "is_fees_paid", nullable = false) - private Boolean isFeesPaid; - - @Column(name = "event_registration", nullable = false) - private Boolean eventRegistration; - - @Column(name = "event_deregistration", nullable = false) - private Boolean eventDeregistration; - - @Column(name = "event_reward", nullable = false) - private Boolean eventReward; - - @Column(name = "event_pool_update", nullable = false) - private Boolean eventPoolUpdate; - - @Column(name = "begin_epoch", nullable = false) - private Integer beginEpoch; - - @Column(name = "end_epoch", nullable = false) - private Integer endEpoch; - - @OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) - @JoinColumn(name = "report_id",foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT, name = "none")) - @EqualsAndHashCode.Exclude - private ReportHistory reportHistory; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - PoolReportHistory poolReportHistory = (PoolReportHistory) o; - return id != null && Objects.equals(id, poolReportHistory.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReportHistory.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReportHistory.java deleted file mode 100644 index 5855e6fb..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReportHistory.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.sql.Timestamp; -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.EnumType; -import jakarta.persistence.Enumerated; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.cardanofoundation.explorer.consumercommon.enumeration.ReportStatus; -import org.cardanofoundation.explorer.consumercommon.enumeration.ReportType; -import org.hibernate.Hibernate; - -@Entity -@Table(name = "report_history", uniqueConstraints = { - @UniqueConstraint(name = "unique_storage_key", - columnNames = {"storage_key"}) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class ReportHistory extends BaseEntity { - - @Column(name = "storage_key", nullable = false) - private String storageKey; - - @Column(name = "report_name", nullable = false) - private String reportName; - - @Column(name = "username", nullable = false) - private String username; - - @Column(name = "created_at") - private Timestamp createdAt; - - @Column(name = "uploaded_at") - private Timestamp uploadedAt; - - @Column(name = "status", nullable = false) - @Enumerated(EnumType.STRING) - private ReportStatus status; - - @Column(name = "type", nullable = false) - @Enumerated(EnumType.STRING) - private ReportType type; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - ReportHistory reportHistory = (ReportHistory) o; - return id != null && Objects.equals(id, reportHistory.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReservedPoolTicker.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReservedPoolTicker.java index 02316e2c..3db46fc0 100644 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReservedPoolTicker.java +++ b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/ReservedPoolTicker.java @@ -1,7 +1,5 @@ package org.cardanofoundation.explorer.consumercommon.entity; -import org.cardanofoundation.explorer.consumercommon.validation.Hash28Type; -import java.util.Objects; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Table; @@ -11,8 +9,11 @@ import lombok.NoArgsConstructor; import lombok.Setter; import lombok.experimental.SuperBuilder; +import org.cardanofoundation.explorer.consumercommon.validation.Hash28Type; import org.hibernate.Hibernate; +import java.util.Objects; + @Entity @Table(name = "reserved_pool_ticker", uniqueConstraints = { @UniqueConstraint(name = "unique_reserved_pool_ticker", diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/RewardCheckpoint.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/RewardCheckpoint.java deleted file mode 100644 index 61878031..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/RewardCheckpoint.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.util.Objects; - -import jakarta.persistence.Column; -import jakarta.persistence.Entity; -import jakarta.persistence.Table; -import jakarta.persistence.UniqueConstraint; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.hibernate.Hibernate; - -@Entity -@Table(name = "reward_checkpoint", uniqueConstraints = { - @UniqueConstraint(name = "unique_stake_address_checkpoint", - columnNames = {"view"}) -}) -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class RewardCheckpoint extends BaseEntity { - - @Column(name = "view", nullable = false) - private String stakeAddress; - - @Column(name = "epoch_checkpoint", nullable = false) - private Integer epochCheckpoint; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - RewardCheckpoint rewardCheckpoint = (RewardCheckpoint) o; - return id != null && Objects.equals(id, rewardCheckpoint.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -} diff --git a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/StakeKeyReportHistory.java b/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/StakeKeyReportHistory.java deleted file mode 100644 index f72f6434..00000000 --- a/components/consumer-common/src/main/java/org/cardanofoundation/explorer/consumercommon/entity/StakeKeyReportHistory.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.cardanofoundation.explorer.consumercommon.entity; - -import java.sql.Timestamp; -import java.util.Objects; - -import jakarta.persistence.CascadeType; -import jakarta.persistence.Column; -import jakarta.persistence.ConstraintMode; -import jakarta.persistence.Entity; -import jakarta.persistence.FetchType; -import jakarta.persistence.ForeignKey; -import jakarta.persistence.JoinColumn; -import jakarta.persistence.OneToOne; -import jakarta.persistence.Table; - -import lombok.AllArgsConstructor; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.experimental.SuperBuilder; - -import org.hibernate.Hibernate; - -@Entity -@Table(name = "stake_key_report_history") -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class StakeKeyReportHistory extends BaseEntity { - - @Column(name = "stake_key", nullable = false) - private String stakeKey; - - @Column(name = "from_date", nullable = false) - private Timestamp fromDate; - - @Column(name = "to_date", nullable = false) - private Timestamp toDate; - - @Column(name = "is_ada_transfer", nullable = false) - private Boolean isADATransfer; - - @Column(name = "is_fees_paid", nullable = false) - private Boolean isFeesPaid; - - @Column(name = "event_registration", nullable = false) - private Boolean eventRegistration; - - @Column(name = "event_delegation", nullable = false) - private Boolean eventDelegation; - - @Column(name = "event_rewards", nullable = false) - private Boolean eventRewards; - - @Column(name = "event_withdrawal", nullable = false) - private Boolean eventWithdrawal; - - @Column(name = "event_deregistration", nullable = false) - private Boolean eventDeregistration; - - @OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) - @JoinColumn(name = "report_id",foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT, name = "none")) - @EqualsAndHashCode.Exclude - private ReportHistory reportHistory; - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) { - return false; - } - StakeKeyReportHistory stakeKeyReportHistory = (StakeKeyReportHistory) o; - return id != null && Objects.equals(id, stakeKeyReportHistory.id); - } - - @Override - public int hashCode() { - return getClass().hashCode(); - } -}