This commit is contained in:
2020-08-15 21:50:59 +08:00
parent 2184b686f5
commit 27da9c50ca
8 changed files with 27 additions and 203 deletions
-22
View File
@@ -1,22 +0,0 @@
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace app\model;
/**
* Company模型
*/
class Company extends \think\Model{
protected $auto = array('update_time');
protected $insert = array('create_time');
public function apt(){
return $this->hasMany('CompanyApt', 'compId', 'compId');
}
}
-19
View File
@@ -1,19 +0,0 @@
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace app\model;
/**
* Company模型
*/
class CompanyApt extends \think\Model{
protected $auto = array('update_time');
protected $insert = array('create_time');
}