Files
swiftadmin/app/admin/model/PdmPartitemRelation.php

38 lines
723 B
PHP
Raw Normal View History

<?php
namespace app\admin\model;
use think\Model;
use think\model\concern\SoftDelete;
/**
* pdm_partitem_relation
* <!--partmanage-->
* PN关系维护
* Class PdmPartitemRelation
* @package app\admin\model
*/
class PdmPartitemRelation extends Model
{
use SoftDelete;
// 定义时间戳字段名
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
protected $deleteTime = 'delete_time';
/**
* 定义 sa_admin 关联模型
* @localKey creatorid
* @bind name,nickname
*/
public function admin()
{
return $this->hasOne(\app\common\model\system\Admin::Class,'id','creatorid')->bind(['name','nickname']);
}
}