Files
OMS/app/o2o/dbschema/inventory_items.php
2026-01-04 19:08:31 +08:00

121 lines
2.7 KiB
PHP

<?php
/**
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
$db['inventory_items']=array (
'columns' =>
array (
'item_id' =>
array (
'type' => 'mediumint(8)',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => '明细表主键ID',
),
'inventory_id' =>
array (
'type' => 'varchar(32)',
'required' => true,
'label' => '盘点单ID',
),
'bm_id' =>
array (
'type' => 'int(10)',
'required' => true,
'label' => '基础物料ID',
),
'pos_accounts_num' =>
array (
'type' => 'mediumint(8)',
'label' => 'POS账面数',//oms_store
),
'accounts_num' =>
array (
'type' => 'mediumint(8)',
'label' => '线上账面数',//oms_store
),
'accounts_share_num' =>
array (
'type' => 'mediumint(8)',
'label' => '共享账面数',
),
'actual_num' =>
array (
'type' => 'mediumint(8)',
'label' => '线上实际数',//wms_store
),
'actual_share_num' =>
array (
'type' => 'mediumint(8)',
'label' => '共享实际数',
),
'short_over' =>
array (
'type' => 'mediumint(9)',
'label' => '线上盘盈亏',
),
'share_short_over' =>
array (
'type' => 'mediumint(9)',
'label' => '共享盘盈亏',
),
'material_bn' =>
array (
'type' => 'varchar(200)',
'label' => '基础物料编码',
),
'material_name' =>
array (
'type' => 'varchar(200)',
'label' => '基础物料名称',
),
'price' =>
array (
'type' => 'money',
'default' => '0',
'label' => '价格',
),
'amount'=> array(
'type' => 'money',
'default' => '0',
'label' => '小计',
),
),
'index' =>
array (
'ind_inventory_id' =>
array (
'columns' =>
array (
0 => 'inventory_id',
),
),
'ind_bm_id' =>
array (
'columns' =>
array (
0 => 'bm_id',
),
),
),
'comment' => '门店盘点明细表',
'engine' => 'innodb',
'version' => '$Rev: $',
);