25 lines
500 B
PHP
25 lines
500 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use app\BaseModel;
|
|
use support\Model;
|
|
|
|
/**
|
|
* wa_favorite
|
|
* @property integer $id (主键)
|
|
* @property integer $user_id 用户
|
|
* @property integer $photographer_id 摄影师
|
|
* @property mixed $created_at 创建时间
|
|
* @property string $updated_at 更新时间
|
|
* @property string $deleted_at
|
|
*/
|
|
class Favorite extends BaseModel
|
|
{
|
|
|
|
public function photographer()
|
|
{
|
|
return $this->hasOne(Photographer::class, 'id', 'photographer_id');
|
|
}
|
|
}
|