mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
119 lines
3.4 KiB
PHP
119 lines
3.4 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['gift_rule_base']=array (
|
|
'columns' =>
|
|
array (
|
|
'id' =>
|
|
array(
|
|
'type' => 'int unsigned',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'editable' => false,
|
|
'extra' => 'auto_increment',
|
|
'order' => 10
|
|
),
|
|
'rule_bn' =>
|
|
array (
|
|
'type' => 'varchar(32)',
|
|
'required' => true,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '规则编号',
|
|
'searchtype' => 'has',
|
|
'filtertype' => 'normal',
|
|
'order' => 20
|
|
),
|
|
'title' =>
|
|
array (
|
|
'type' => 'varchar(64)',
|
|
'required' => true,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '规则名称',
|
|
'searchtype' => 'has',
|
|
'filtertype' => 'normal',
|
|
'order' => 30
|
|
),
|
|
'gift_list' =>
|
|
array (
|
|
'type' => 'text',
|
|
'required' => false,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '赠品列表',
|
|
'order' => 35
|
|
),
|
|
'create_time' =>
|
|
array (
|
|
'type' => 'time',
|
|
'required' => true,
|
|
'label' => '创建时间',
|
|
'filtertype' => 'time',
|
|
'filterdefault' => true,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'width' => 150,
|
|
'order' => 60
|
|
),
|
|
'modified_time' =>
|
|
array (
|
|
'type' => 'time',
|
|
'required' => true,
|
|
'label' => '修改时间',
|
|
'filtertype' => 'time',
|
|
'filterdefault' => true,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'width' => 150,
|
|
'order' => 65
|
|
),
|
|
'filter_arr' =>
|
|
array(
|
|
'type' => 'longtext',
|
|
'default' => 1,
|
|
'label'=>'促销条件',
|
|
'default_in_list' => false,
|
|
'in_list' => false,
|
|
'order' => 150,
|
|
),
|
|
'disabled' =>
|
|
array (
|
|
'type' => 'bool',
|
|
'default' => 'false',
|
|
'comment' => '是否已删除',
|
|
'editable' => false,
|
|
),
|
|
),
|
|
'index' =>
|
|
array(
|
|
'ind_rule_bn' =>
|
|
array (
|
|
'columns' =>
|
|
array (
|
|
'rule_bn'
|
|
),
|
|
'prefix' => 'unique'
|
|
),
|
|
),
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $'
|
|
); |