mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-01 18:42:47 +08:00
25 lines
309 B
PHP
25 lines
309 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace app\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin think\Model
|
|
*/
|
|
class PostTag extends Model
|
|
{
|
|
//
|
|
public function tag()
|
|
{
|
|
return $this->belongsTo(Tag::class,'tag_id');
|
|
}
|
|
|
|
public function post()
|
|
{
|
|
return $this->belongsTo(Post::class, 'post_id');
|
|
}
|
|
}
|