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

84 lines
2.5 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['formula'] = array(
'comment' => '所有的公式信息,包括调整价格、调整库存等等..',
'columns' => array(
'formula_id' => array(
'type' => 'mediumint(8) unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => 'ID',
'comment' => ''
),
'style' => array(
'type' => array(
'fund' => '价格调整', 'stock' => '库存调整'
),
'required' => true,
'label' => app::get('inventorydepth')->_('属性类别'),
'comment' => ''
),
/*
'bn' => array(
'type' => 'bn',
'required' => false,
'label' => app::get('inventorydepth')->_('公式编码'),
'comment' => ''
),*/
'heading' => array(
'type' => 'varchar(200)',
'required' => true,
'label' => app::get('inventorydepth')->_('公式名称'),
'is_title' => true,
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'has',
'comment' => '',
),
'content' => array(
'type' => 'serialize',
'required' => true,
'label' => app::get('inventorydepth')->_('公式内容'),
'comment' => '数组存储公式内容'
),
'operator' => array(
'type' => 'varchar(100)',
'required' => false,
'label' => app::get('inventorydepth')->_('操作人'),
'comment' => ''
),
'update_time' => array(
'type' => 'last_modify',
'required' => false,
'label' => app::get('inventorydepth')->_('最后更新时间'),
'comment' => ''
),
'operator_ip' => array(
'type' => 'ipaddr',
'required' => false,
'label' => app::get('inventorydepth')->_('操作人IP'),
'comment' => ''
)
),
'index' => array(
'idx_style' => array(
'columns' => array('style')
),
/*
'idx_bn' => array(
'columns' => array('bn')
),*/
'idx_heading' => array(
'columns' => array('heading')
)
),
'engine' => 'innodb',
'version' => '$Rev: $'
);