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

194 lines
5.7 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['gift']=array (
'columns' => array (
'gift_id' => array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => '赠品ID',
'width' => 110,
'hidden' => true,
'editable' => false,
),
'product_id' => array (
'type' => 'varchar(200)',
'comment' => '货品ID',
'required' => true,
'editable' => false,
),
'gift_bn' => array (
'type' => 'varchar(200)',
'required' => true,
'label' => '货号',
'comment' => '赠品货号',
'searchtype' => 'head',
'editable' => false,
'filtertype' => 'yes',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'is_title' => true,
'width' => '120',
),
'gift_name' => array (
'type' => 'varchar(200)',
'required' => true,
'label' => '货品名称',
'comment' => '赠品名称',
'default_in_list' => true,
'width' => 260,
'searchtype' => 'head',
'editable' => false,
'filtertype' => 'yes',
'filterdefalut' => true,
'in_list' => true,
),
'spec_info' => array (
'type' => 'varchar(255)',
'default' => '',
'label' => '规格',
'comment' => '赠品规格',
'default_in_list' => true,
'width' => 260,
'editable' => false,
'in_list' => true,
),
'gift_num' => array(
'type' => 'number',
'in_list' => true,
'default' => 0,
'default_in_list' => true,
'required' => false,
'label' => '赠品库存',
'filtertype'=>false,
'searchtype'=>false,
'width' => 80,
'order' => 40,
),
'gift_price' => array(
'type' => 'money',
'in_list' => true,
'default' => 0,
'default_in_list' => true,
'required' => false,
'label' => '成本价',
'width' => 80,
'order' => 45,
),
'send_num' => array(
'type' => 'number',
'in_list' => true,
'default' => 0,
'default_in_list' => true,
'required' => false,
'label' => '已赠送数量',
'filtertype'=>false,
'searchtype'=>false,
'width' => 80,
'order' => 45,
),
'is_yujing' => array(
'type' => array(
'true' => '开启',
'false' => '关闭',
),
'in_list' => true,
'default' => 'false',
'default_in_list' => true,
'required' => false,
'label' => '预警',
'width' => 80,
'order' => 46,
),
'yj_num' => array(
'type' => 'number',
'in_list' => true,
'default' => 0,
'default_in_list' => true,
'required' => false,
'label' => '预警数量',
'width' => 80,
'order' => 45,
),
'yj_mobile' => array(
'type' => 'varchar(255)',
'in_list' => true,
'default' => '',
'default_in_list' => true,
'required' => false,
'label' => '预警手机号',
'width' => 80,
'order' => 50,
),
'is_del' => array(
'type' => array(
'0' => '启用',
'1' => '禁用',
),
'default' => '0',
'in_list' => true,
'default_in_list' => true,
'required' => false,
'label' => '是否启用',
'filtertype'=>false,
'searchtype'=>false,
'width' => 80,
'order' => 50,
),
'create_time' => array(
'type' => 'time',
'in_list' => true,
'default_in_list' => false,
'required' => false,
'label' => '创建时间',
'filtertype'=>false,
'searchtype'=>false,
'width' => 150,
'order' => 60,
),
'update_time' => array(
'type' => 'time',
'in_list' => true,
'default_in_list' => true,
'required' => false,
'label' => '更新日期',
'filtertype'=>false,
'searchtype' => false,
'width' => 150,
'order' => 70,
),
'shop_id' => array (
'type' => 'table:shop@ome',
'required' => false,
'editable' => false,
'label' => '来源店铺',
'in_list' => true,
'default_in_list' => true,
'width' => 150,
'order' => 80
),
'giftset' => array(
'type' => array(
'0' => '指定数量',
'1' => '不限数量',
'2' => '库存数量',
),
'default' => '0',
'required' => true,
'label' => '是否设定赠品数量',
),
),
'index' => array (
'ind_product_bn' =>array ('columns' =>array (0 => 'gift_bn')),
'ind_product_name' =>array ('columns' =>array (0 => 'gift_name')),
),
'engine' => 'innodb',
'version' => '$Rev: $',
);