refactor: 视频信息分类添加软件删除
This commit is contained in:
@@ -4,6 +4,7 @@ declare (strict_types = 1);
|
||||
namespace app\admin\model\v1;
|
||||
|
||||
use app\common\model\VideoCategoryBaseModel;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
/**
|
||||
* 视频分类模型
|
||||
@@ -11,6 +12,13 @@ use app\common\model\VideoCategoryBaseModel;
|
||||
*/
|
||||
class VideoCategoryModel extends VideoCategoryBaseModel
|
||||
{
|
||||
// 启用软件删除
|
||||
use SoftDelete;
|
||||
// 软删除字段
|
||||
protected $deleteTime = 'deleted_at';
|
||||
// 自动写入时间格式
|
||||
protected $autoWriteTimestamp = 'datetime';
|
||||
|
||||
// 关联视频模型
|
||||
public function video()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user