mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-20 13:06:38 +00:00

* [NOD-303] Implement get transactions by address for API server * [NOD-304] Implement get transactions by address * [NOD-304] Implement get transactions by address * [NOD-304] Use structs for where if possible * [NOD-304] Auto increment IDs * [NOD-304] Make defaultGetTransactionsLimit constant * [NOD-304] Delete db directory * [NOD-304] change db var to query * [NOD-304] Extract route handle function from addRoutes * [NOD-304] Order transactions by ID * [NOD-304] Add error for passing arrays to GET
19 lines
835 B
SQL
19 lines
835 B
SQL
CREATE TABLE `transaction_inputs`
|
|
(
|
|
`id` BIGINT UNSIGNED NOT NULL,
|
|
`transaction_id` BIGINT UNSIGNED NULL,
|
|
`transaction_output_id` BIGINT UNSIGNED NOT NULL,
|
|
`index` INT UNSIGNED NOT NULL,
|
|
`signature_script` BLOB NOT NULL,
|
|
`sequence` BIGINT UNSIGNED NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
INDEX `idx_transaction_inputs_transaction_id` (`transaction_id`),
|
|
INDEX `idx_transaction_inputs_transaction_output_id` (`transaction_output_id`),
|
|
CONSTRAINT `fk_transaction_inputs_transaction_id`
|
|
FOREIGN KEY (`transaction_id`)
|
|
REFERENCES `transactions` (`id`),
|
|
CONSTRAINT `fk_transaction_inputs_transaction_output_id`
|
|
FOREIGN KEY (`transaction_output_id`)
|
|
REFERENCES `transaction_outputs` (`id`)
|
|
);
|