mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
32 lines
594 B
SQL
32 lines
594 B
SQL
-- +up
|
|
-- +begin
|
|
CREATE TABLE `funding_fees`
|
|
(
|
|
`gid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
-- transaction id
|
|
`txn_id` BIGINT UNSIGNED NOT NULL,
|
|
|
|
-- for exchange
|
|
`exchange` VARCHAR(24) NOT NULL DEFAULT '',
|
|
|
|
-- asset name, BTC, MAX, USDT ... etc
|
|
`asset` VARCHAR(5) NOT NULL,
|
|
|
|
-- the amount of the funding fee
|
|
`amount` DECIMAL(16, 8) NOT NULL,
|
|
|
|
`funded_at` DATETIME NOT NULL,
|
|
|
|
PRIMARY KEY (`gid`),
|
|
|
|
UNIQUE KEY `txn_id` (`txn_id`, `exchange`)
|
|
);
|
|
-- +end
|
|
|
|
-- +down
|
|
|
|
-- +begin
|
|
DROP TABLE `funding_fees`;
|
|
-- +end
|