MySQL Create Table SQL
Table Structure: okayapi_box_transaction:/tablelist/okayapi_box_transaction.html
-- MySQL Table okayapi_box_transaction
-- From: OkayAPI.com
CREATE TABLE `okayapi_box_transaction` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`invoice_id` bigint(20) NULL COMMENT '',
`gateway_id` int(11) NULL COMMENT '',
`txn_id` varchar(255) NULL COMMENT '',
`txn_status` varchar(255) NULL COMMENT '',
`s_id` varchar(255) NULL COMMENT '',
`s_period` varchar(255) NULL COMMENT '',
`amount` varchar(255) NULL COMMENT '',
`currency` varchar(10) NULL COMMENT '',
`type` varchar(255) NULL COMMENT '',
`status` varchar(255) NULL DEFAULT 'received' COMMENT '',
`ip` varchar(45) NULL COMMENT '',
`error` text NULL COMMENT '',
`error_code` int(11) NULL COMMENT '',
`validate_ipn` tinyint(1) NULL DEFAULT '1' COMMENT '',
`ipn` text NULL COMMENT '',
`output` text NULL COMMENT '',
`note` text NULL COMMENT '',
KEY `invoice_id` (`invoice_id`),
KEY `gateway_id` (`gateway_id`),
KEY `txn_id` (`txn_id`),
KEY `txn_status` (`txn_status`),
KEY `s_id` (`s_id`),
KEY `s_period` (`s_period`),
KEY `amount` (`amount`),
KEY `currency` (`currency`),
KEY `type` (`type`),
KEY `status` (`status`),
KEY `ip` (`ip`),
KEY `error` (`error`),
KEY `error_code` (`error_code`),
KEY `validate_ipn` (`validate_ipn`),
KEY `ipn` (`ipn`),
KEY `output` (`output`),
KEY `note` (`note`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '主机销售-交易';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-17 of 17 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
invoice_id | bigint(20) | 是 | Normal Index | |||
gateway_id | int(11) | 是 | ||||
txn_id | varchar(255) | 是 | ||||
txn_status | varchar(255) | 是 | ||||
s_id | varchar(255) | 是 | ||||
s_period | varchar(255) | 是 | ||||
amount | varchar(255) | 是 | ||||
currency | varchar(10) | 是 | ||||
type | varchar(255) | 是 | ||||
status | varchar(255) | received | 是 | received | ||
ip | varchar(45) | 是 | ||||
error | text | 是 | ||||
error_code | int(11) | 是 | ||||
validate_ipn | tinyint(1) | 1 | 是 | 1 | ||
ipn | text | 是 | ||||
output | text | 是 | ||||
note | text | 是 |