23 lines
537 B
MySQL
23 lines
537 B
MySQL
|
-- !txn
|
||
|
-- +up
|
||
|
CREATE TABLE `margin_repays`
|
||
|
(
|
||
|
`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 '',
|
||
|
|
||
|
-- quantity is the quantity of the trade that makes profit
|
||
|
`principle` DECIMAL(16, 8) NOT NULL,
|
||
|
|
||
|
`time` DATETIME(3) NOT NULL
|
||
|
);
|
||
|
|
||
|
-- +down
|
||
|
DROP TABLE IF EXISTS `margin_repays`;
|