MySQL Create Table SQL
Table Structure: okayapi_dberp_finance_payable:/tablelist/okayapi_dberp_finance_payable.html
-- MySQL Table okayapi_dberp_finance_payable
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_finance_payable` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`warehouse_order_id` int(11) NOT NULL COMMENT '入库单号',
`p_order_id` int(11) NOT NULL COMMENT '采购订单id',
`p_order_sn` varchar(50) NOT NULL COMMENT '采购订单号',
`supplier_id` int(11) NOT NULL COMMENT '',
`supplier_name` varchar(100) NOT NULL COMMENT '',
`payment_code` varchar(20) NOT NULL COMMENT '支付方式code',
`payment_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 '管理员id',
KEY `warehouse_order_id` (`warehouse_order_id`),
KEY `p_order_id` (`p_order_id`),
KEY `p_order_sn` (`p_order_sn`),
KEY `supplier_id` (`supplier_id`),
KEY `supplier_name` (`supplier_name`),
KEY `payment_code` (`payment_code`),
KEY `payment_amount` (`payment_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-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
warehouse_order_id | int(11) | 否 | 入库单号 | |||
p_order_id | int(11) | 否 | 采购订单id | |||
p_order_sn | varchar(50) | 否 | 采购订单号 | |||
supplier_id | int(11) | 否 | ||||
supplier_name | varchar(100) | 否 | ||||
payment_code | varchar(20) | 否 | 支付方式code | |||
payment_amount | decimal(19,4) | 0.0000 | 否 | 采购支付金额 | 0.0000 | |
finish_amount | decimal(19,4) | 0.0000 | 是 | 采购已经支付金额 | 0.0000 | |
admin_id | int(11) | 否 | 管理员id |