X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=docs%2Ffederation%2Fsql_dump%2Ffederation_shema.sql;h=946f10c9c2cf175ff712fe75c071ae01673e39d0;hp=542e8c1d2ef0372000a3ec9f85211391180b8284;hb=16583c03fb2f0f095eeced688fbb5aa3dcf4565a;hpb=e1c3a51a2930f2adfb17f2d7ee48bbbdc795e4cd diff --git a/docs/federation/sql_dump/federation_shema.sql b/docs/federation/sql_dump/federation_shema.sql index 542e8c1d..946f10c9 100644 --- a/docs/federation/sql_dump/federation_shema.sql +++ b/docs/federation/sql_dump/federation_shema.sql @@ -54,13 +54,9 @@ CREATE TABLE `cross_transactions` ( `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - UNIQUE KEY `source_mux_id` (`chain_id`,`source_mux_id`), - UNIQUE KEY `source_tx_hash` (`chain_id`,`source_tx_hash`), - UNIQUE KEY `source_blockhash_txidx` (`chain_id`,`source_block_hash`,`source_tx_index`), - UNIQUE KEY `source_blockheight_txidx` (`chain_id`,`source_block_height`,`source_tx_index`), - UNIQUE KEY `dest_tx_hash` (`chain_id`,`dest_tx_hash`), - UNIQUE KEY `dest_blockhash_txidx` (`chain_id`,`dest_block_hash`,`dest_tx_index`), - UNIQUE KEY `dest_blockheight_txidx` (`chain_id`,`dest_block_height`,`dest_tx_index`), + KEY `chain_id` (`chain_id`), + UNIQUE KEY `source_tx_hash` (`source_tx_hash`), + UNIQUE KEY `dest_tx_hash` (`dest_tx_hash`), CONSTRAINT `cross_transactions_ibfk_1` FOREIGN KEY (`chain_id`) REFERENCES `chains` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -83,7 +79,6 @@ CREATE TABLE `cross_transaction_reqs` ( `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - UNIQUE KEY `req_id` (`cross_transaction_id`,`source_pos`), CONSTRAINT `cross_transaction_reqs_ibfk_1` FOREIGN KEY (`cross_transaction_id`) REFERENCES `cross_transactions` (`id`), CONSTRAINT `cross_transaction_reqs_ibfk_2` FOREIGN KEY (`asset_id`) REFERENCES `assets` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;