51 lines
810 B
PHP
51 lines
810 B
PHP
<?php
|
||
/**
|
||
* 时间:2023年03月02日
|
||
* 作者:墨楠小
|
||
* 邮箱:monanxiao@qq.com
|
||
* 商品标签模型
|
||
*
|
||
*/
|
||
namespace app\admin\model;
|
||
|
||
use think\Model;
|
||
|
||
class StoreProductLabel extends Model
|
||
{
|
||
// 设置当前模型的数据库连接
|
||
protected $connection = 'shop';
|
||
|
||
// 设置当前模型对应的完整数据表名称
|
||
protected $table = 'eb_store_product_label';
|
||
protected $pk = 'product_label_id';
|
||
|
||
/**
|
||
*
|
||
* 关联商户
|
||
*
|
||
*/
|
||
public function merchant()
|
||
{
|
||
|
||
}
|
||
|
||
/**
|
||
*
|
||
* 关联用户
|
||
*
|
||
*/
|
||
public function user()
|
||
{
|
||
|
||
}
|
||
|
||
/**
|
||
*
|
||
* 关联商品
|
||
*
|
||
*/
|
||
public function product()
|
||
{
|
||
return $this->hasOne(EbStoreProduct::class, 'product_id', 'product_id');
|
||
}
|
||
} |