first commit
This commit is contained in:
29
pgserver/application/model/SurveyDetail.php
Normal file
29
pgserver/application/model/SurveyDetail.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\model;
|
||||
|
||||
|
||||
class SurveyDetail extends Base
|
||||
{
|
||||
public $autoWriteTimestamp = 'datetime';
|
||||
public $type = [
|
||||
'boundaries' => 'json',
|
||||
'pub_serv' => 'json',
|
||||
// 'scenery' => 'json',
|
||||
'living_room' => 'json',
|
||||
'kitchen' => 'json',
|
||||
'facility' => 'json',
|
||||
'other' => 'json',
|
||||
'prosperity_lv' => 'json',
|
||||
'business_district_lv' => 'json',
|
||||
'traffic' => 'json',
|
||||
'shop_condition' => 'json',
|
||||
'usage_condition' => 'json'
|
||||
];
|
||||
|
||||
public function survey()
|
||||
{
|
||||
return $this->belongsTo(Survey::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user