mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-25 07:22:31 +00:00

* [NOD-280] Create database for API server * [NOD-280] Rename public_key_script to pk_script * [NOD-280] Change indexes names * [NOD-280] Add accepting block to blocks and transactions table and remove accepting_blocks table * [NOD-280] Add readme * [NOD-280] Change VARCHAR(32) to CHAR(64) * [NOD-280] Rename location_in_block to index
14 lines
519 B
SQL
14 lines
519 B
SQL
CREATE TABLE `transactions_outputs`
|
|
(
|
|
`id` BIGINT UNSIGNED NOT NULL,
|
|
`transaction_id` BIGINT UNSIGNED NOT NULL,
|
|
`index` INT UNSIGNED NOT NULL,
|
|
`value` BIGINT UNSIGNED NOT NULL,
|
|
`pk_script` BLOB NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
INDEX `idx_transactions_outputs_transaction_id` (`transaction_id`),
|
|
CONSTRAINT `fk_transactions_outputs_transaction_id`
|
|
FOREIGN KEY (`transaction_id`)
|
|
REFERENCES `transactions` (`id`)
|
|
);
|