bbgo_origin/migrations/sqlite3/20220531013541_margin_interests.sql

24 lines
535 B
MySQL
Raw Permalink Normal View History

-- !txn
2022-05-30 17:40:21 +00:00
-- +up
CREATE TABLE `margin_interests`
(
`gid` INTEGER PRIMARY KEY AUTOINCREMENT,
`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`;