Files
OMS/app/logisticsmanager/dbschema/waybill.php
2025-12-28 23:13:25 +08:00

94 lines
2.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
$db['waybill']=array (
'columns' =>
array (
'id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'editable' => false,
'extra' => 'auto_increment',
),
'waybill_number' =>
array (
'type' => 'varchar(100)',
'required' => true,
'default' => '',
'editable' => false,
'label' => '运单号',
'width' => 130,
//'searchtype' => 'has',
'in_list' => true,
'default_in_list' => true,
'order' => 10,
),
'channel_id' =>
array (
'type' => 'table:channel@logisticsmanager',
//'required' => true,
'editable' => false,
'comment' => '渠道主键',
'label' => '来源渠道',
'width' => 150,
'in_list' => true,
'default_in_list' => true,
'order' => 20,
),
'logistics_code' =>
array (
'type' => 'varchar(100)',
'required' => true,
'default' => '',
'editable' => false,
'comment' => '物流公司编码',
'label' => '物流公司',
'width' => 100,
'in_list' => true,
'default_in_list' => true,
'order' => 30,
),
'status' =>
array (
'type' => 'tinyint unsigned',
'editable' => false,
'required' => true,
'default' => 0,
'label' => '使用状态',
'width' => 80,
'in_list' => true,
'default_in_list' => true,
'order' => 40,
),
'create_time' =>
array (
'type' => 'time',
'comment' => '单号发放时间',
'label' => '发放时间',
'width' => '130',
'in_list' => true,
),
),
'index' =>
array (
'ind_waybill_channel' => array (
'columns' => array (
0 => 'waybill_number',
1 => 'channel_id',
),
'prefix' => 'unique',
),
'ind_create_time' => array(
'columns' => array('create_time'),
),
),
'comment' => '面单号表',
'engine' => 'innodb',
'version' => '$Rev: $',
);