AdminRole.php 740 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. /**
  10. * Class AuthRole
  11. * @package app\modules\common\models
  12. * @property integer $admin_id
  13. * @property string $role_id
  14. */
  15. class AdminRole extends ActiveRecord
  16. {
  17. public static function tableName()
  18. {
  19. return '{{%admin_role}}';
  20. }
  21. public function rules()
  22. {
  23. return [
  24. [['admin_id'], 'integer'],
  25. [['role_id'], 'integer'],
  26. ];
  27. }
  28. public function attributeLabels()
  29. {
  30. return [
  31. 'admin_id' => '账号ID',
  32. 'role_key' => '角色ID',
  33. ];
  34. }
  35. }