MySQL Create Table SQL
Table Structure: okayapi_dberp_accounts_receivable:/tablelist/okayapi_dberp_accounts_receivable.html
-- MySQL Table okayapi_dberp_accounts_receivable
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_accounts_receivable` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`sales_order_id` int(11) NOT NULL COMMENT '',
`sales_order_sn` varchar(50) NOT NULL COMMENT '',
`send_order_id` int(11) NOT NULL COMMENT '',
`send_order_sn` varchar(50) NOT NULL COMMENT '',
`customer_id` int(11) NOT NULL COMMENT '',
`customer_name` varchar(100) NOT NULL COMMENT '',
`receivable_code` varchar(20) NOT NULL COMMENT '',
`receivable_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
`finish_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
`admin_id` int(11) NOT NULL COMMENT '',
KEY `sales_order_id` (`sales_order_id`),
KEY `sales_order_sn` (`sales_order_sn`),
KEY `send_order_id` (`send_order_id`),
KEY `send_order_sn` (`send_order_sn`),
KEY `customer_id` (`customer_id`),
KEY `customer_name` (`customer_name`),
KEY `receivable_code` (`receivable_code`),
KEY `receivable_amount` (`receivable_amount`),
KEY `finish_amount` (`finish_amount`),
KEY `admin_id` (`admin_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'DBErp进销存-应收账款表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-10 of 10 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
sales_order_id | int(11) | 否 | ||||
sales_order_sn | varchar(50) | 否 | ||||
send_order_id | int(11) | 否 | ||||
send_order_sn | varchar(50) | 否 | ||||
customer_id | int(11) | 否 | ||||
customer_name | varchar(100) | 否 | ||||
receivable_code | varchar(20) | 否 | ||||
receivable_amount | decimal(19,4) | 0.0000 | 否 | 0.0000 | ||
finish_amount | decimal(19,4) | 0.0000 | 否 | 0.0000 | ||
admin_id | int(11) | 否 |