文件
mashangyoujiu/Application/Common/Model/MGoodsModel.class.php

44 行
3.0 KiB
PHP
可执行文件

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<?php
/*
* 商户商品模型 - 数据对象模型
*/
namespace Common\Model;
use Think\Model;
//[1.2.91]
class MGoodsModel extends JBaseModel
{
protected $tableName = 'retail_mgoods';
protected $fields = array(
'id', // NOT NULL AUTO_INCREMENT,
'goods_name', //varchar(255) DEFAULT NULL COMMENT '零售货物名称。',
'subheading', //varchar(255) DEFAULT NULL COMMENT '副标题',
'goods_class_id', //int(11) DEFAULT NULL COMMENT '货物所属类别id',
'good_number', //varchar(15) DEFAULT NULL COMMENT '货号',
'purch_price', //float(11,2) DEFAULT '0.00' COMMENT '成本价格',
'retail_price', //float(11,2) DEFAULT '0.00' COMMENT '零售价',
'plus_price', //decimal(20,2) DEFAULT NULL COMMENT 'plus会员价',
'online_price', //decimal(20,2) DEFAULT NULL COMMENT '小程序商城价格',
'vip_online_state', //varchar(255) DEFAULT '0' COMMENT 'vip是否打折 0关闭 1开启',
'vip_retail_state', //int(1) DEFAULT '0' COMMENT '允许vip线下会员打折: 0不允许 1允许',
'add_time', //int(11) DEFAULT NULL COMMENT '添加时间',
'status', //int(1) DEFAULT NULL COMMENT '状态:0,正常,1,下架,2,删除。',
'goods_num', //decimal(11,3) DEFAULT '0.000' COMMENT '商品库存',
'goods_order', //int(11) DEFAULT '1' COMMENT '商品排序',
'more_num', //decimal(11,3) DEFAULT NULL COMMENT '商品超量;超过该字段的库存数量即为超量',
'less_num', //decimal(11,3) DEFAULT NULL COMMENT '库存预警',
'sell_num', //decimal(11,3) DEFAULT '0.000' COMMENT '出售数量',
'fictitious_num', //int(11) DEFAULT NULL COMMENT '虚拟销量',
'company', //varchar(255) DEFAULT '' COMMENT '单位',
'specifications', //varchar(255) DEFAULT '' COMMENT '规格',
'merchantid', //int(11) DEFAULT '0' COMMENT '商户id。',
'store_id', //int(11) DEFAULT NULL COMMENT '门店id',
'goods_code', //varchar(20) DEFAULT '' COMMENT '商品条码。',
'online_state', //int(1) DEFAULT '0' COMMENT '是否在商城中出售:0,不在,1,在商城出售。',
'pricing_method', //tinyint(1) DEFAULT '1' COMMENT '该商品是否称重计价 1:不称重 2:称重',
'details', //text COMMENT '商品图文详情',
'check_num', //varchar(11) DEFAULT '' COMMENT '盘点数量',
'supplier_id', //int(11) DEFAULT '0',
'split_state', // tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可拆分:0,不可以。1,可以。',
'split_goods_id', // int(11) NOT NULL DEFAULT '0' COMMENT '拆分后的商品id',
);
}