mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +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
18 lines
700 B
SQL
18 lines
700 B
SQL
CREATE TABLE `transaction_outputs`
|
|
(
|
|
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
`transaction_id` BIGINT UNSIGNED NOT NULL,
|
|
`index` INT UNSIGNED NOT NULL,
|
|
`value` BIGINT UNSIGNED NOT NULL,
|
|
`pk_script` BLOB NOT NULL,
|
|
`address_id` BIGINT UNSIGNED NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
INDEX `idx_transaction_outputs_transaction_id` (`transaction_id`),
|
|
CONSTRAINT `fk_transaction_outputs_transaction_id`
|
|
FOREIGN KEY (`transaction_id`)
|
|
REFERENCES `transactions` (`id`),
|
|
CONSTRAINT `fk_transaction_outputs_address_id`
|
|
FOREIGN KEY (`address_id`)
|
|
REFERENCES `addresses` (`id`)
|
|
);
|