mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 09:33:50 +00:00
25 lines
576 B
MySQL
25 lines
576 B
MySQL
|
-- +up
|
||
|
CREATE TABLE `margin_interests`
|
||
|
(
|
||
|
`gid` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||
|
|
||
|
`transaction_id` INTEGER NOT NULL,
|
||
|
|
||
|
`exchange` VARCHAR(24) NOT NULL DEFAULT '',
|
||
|
|
||
|
`asset` VARCHAR(24) NOT NULL DEFAULT '',
|
||
|
|
||
|
`isolated_symbol` VARCHAR(24) NOT NULL DEFAULT '',
|
||
|
|
||
|
`principle` DECIMAL(16, 8) NOT NULL,
|
||
|
|
||
|
`interest` DECIMAL(20, 16) NOT NULL,
|
||
|
|
||
|
`interest_rate` DECIMAL(20, 16) NOT NULL,
|
||
|
|
||
|
`time` DATETIME(3) NOT NULL
|
||
|
);
|
||
|
|
||
|
-- +down
|
||
|
DROP TABLE IF EXISTS `margin_interests`;
|