AuthPerm.php
656 Bytes
<?php
namespace domain\system\models;
use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;
/**
* 路由权限
* This is the model class for table "{{%auth_perm.}}".
*/
class AuthPerm extends ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%auth_perm}}';
}
/**
* @return array
*/
public function behaviors()
{
return [
'time' => [
'class' => TimestampBehavior::className(),
'createdAtAttribute' => 'created_at',
'updatedAtAttribute' => 'updated_at',
]
];
}
}