2022-05-30 17:40:21 +00:00
|
|
|
-- +up
|
|
|
|
CREATE TABLE `margin_interests`
|
|
|
|
(
|
|
|
|
`gid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
|
|
|
|
`exchange` VARCHAR(24) NOT NULL DEFAULT '',
|
|
|
|
|
|
|
|
`asset` VARCHAR(24) NOT NULL DEFAULT '',
|
|
|
|
|
|
|
|
`isolated_symbol` VARCHAR(24) NOT NULL DEFAULT '',
|
|
|
|
|
|
|
|
`principle` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
|
|
|
|
|
|
|
`interest` DECIMAL(20, 16) UNSIGNED NOT NULL,
|
|
|
|
|
|
|
|
`interest_rate` DECIMAL(20, 16) UNSIGNED NOT NULL,
|
|
|
|
|
|
|
|
`time` DATETIME(3) NOT NULL,
|
|
|
|
|
2022-05-30 18:01:54 +00:00
|
|
|
PRIMARY KEY (`gid`)
|
2022-05-30 17:40:21 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
-- +down
|
|
|
|
DROP TABLE IF EXISTS `margin_interests`;
|