12345678910111213141516171819202122 |
- <?php
- namespace app\bug\model;
- class Action extends Base
- {
- protected $schema = [
- 'id' =>'bigint',
- 'menuid' =>'bigint',
- 'action_code' =>'varchar',
- 'status' =>'int',
- 'addtime' =>'datetime',
- 'updatetime' =>'datetime',
- ];
- public $status_cn=["禁用","启用"];
- protected $updateTime="updatetime";
- protected $createTime="addtime";
- public function ActionInfo(){
- return $this->belongsTo(ActionList::class,"action_code",'action_code')->bind(["action_name"]);
- }
-
- }
|