23 行
866 B
PHP
可执行文件
23 行
866 B
PHP
可执行文件
<?php
|
|
|
|
namespace Distribution\Model;
|
|
|
|
/**
|
|
* 分销员与客户绑定关系记录表
|
|
* Class LinkModel
|
|
* @package Distribution\Model
|
|
*/
|
|
class LinkModel extends \Common\Model\BaseModel
|
|
{
|
|
//客户与分销员中间表
|
|
protected $tableName = 'distribution_link';
|
|
protected $fields = array(
|
|
'id', //int(11) NOT NULL AUTO_INCREMENT,
|
|
'distributor_id', //int(11) DEFAULT '0' COMMENT '分销员id',
|
|
'uid', //int(11) DEFAULT '0' COMMENT '客户id',
|
|
'add_time', //int(11) DEFAULT '0' COMMENT '绑定时间',
|
|
'binding_type', //tinyint(1) DEFAULT '1' COMMENT '绑定类型 1购买商品绑定 2点击链接绑定',
|
|
'status', //tinyint(1) DEFAULT '1' COMMENT '1正常 0失效',
|
|
);
|
|
}
|