123456789101112131415161718192021 |
- <?php
- namespace app\common\model;
- use think\Db;
- use think\db\Query;
- use think\Model;
- class SiteModel extends Model{
- protected $name='system_site';
- public $autoWriteTimestamp=true;
- public function towns(){
- return $this->hasOne(TownsModel::class,'id');
- }
- public function kd(){
- return $this->hasMany(ValuesModel::class,'site_id');
- }
- }
|