mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 10:55:34 +08:00
86 lines
2.5 KiB
PHP
86 lines
2.5 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
$db['order_invoice']=array (
|
||
'columns' =>
|
||
array (
|
||
'id' => array(
|
||
'type'=>'int unsigned',
|
||
'require' => true,
|
||
'pkey' => true,
|
||
'editable' => false,
|
||
'extra' => 'auto_increment',
|
||
),
|
||
'order_id' =>
|
||
array (
|
||
'type' => 'int unsigned',
|
||
'required' => true,
|
||
'editable' => false,
|
||
),
|
||
'tax_title' =>
|
||
array (
|
||
'type' => 'varchar(255)',
|
||
'commit' => '发票抬头',
|
||
'editable' => false,
|
||
),
|
||
'tax_no' =>
|
||
array (
|
||
'type' => 'varchar(255)',
|
||
'commit' => '发票号',
|
||
'editable' => false,
|
||
),
|
||
'register_no' =>
|
||
array (
|
||
'type' => 'varchar(255)',
|
||
'commit' => '税务号',
|
||
'editable' => false
|
||
),
|
||
'invoice_kind' =>
|
||
array(
|
||
'type' => array(
|
||
0=>'纸质发票',
|
||
1=>'电子普票',
|
||
2=>'电子专票',
|
||
),
|
||
'default' => '0',
|
||
),
|
||
'title_type' =>
|
||
array (
|
||
'type' => array(
|
||
0=>'个人',
|
||
1=>'企业',
|
||
),
|
||
'default' => '0',
|
||
),
|
||
'create_time' =>
|
||
array (
|
||
'type' => 'time',
|
||
'editable' => 'false',
|
||
'commit' => '创建时间'
|
||
)
|
||
),
|
||
'index' =>
|
||
array (
|
||
'ind_order_id' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'order_id',
|
||
),
|
||
'prefix' => 'unique',
|
||
),
|
||
'ind_create_time' =>
|
||
array (
|
||
'columns' =>
|
||
array(
|
||
0 => 'create_time'
|
||
)
|
||
)
|
||
),
|
||
'comment' => '订单发表记录',
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: $',
|
||
); |