You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
998 B

  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "base_button_permission".
  6. *
  7. * @property integer $ID
  8. * @property integer $user_id
  9. * @property integer $menu_id
  10. * @property string $button_permission
  11. */
  12. class BaseButtonPermission extends \yii\db\ActiveRecord
  13. {
  14. /**
  15. * @inheritdoc
  16. */
  17. public static function tableName()
  18. {
  19. return 'base_button_permission';
  20. }
  21. /**
  22. * @inheritdoc
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['user_id', 'menu_id', 'button_permission'], 'required'],
  28. [['user_id', 'menu_id'], 'integer'],
  29. [['button_permission'], 'string', 'max' => 255],
  30. ];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'ID' => 'ID',
  39. 'user_id' => '用户ID,关联base_user',
  40. 'menu_id' => '菜单ID',
  41. 'button_permission' => '按钮ID列表',
  42. ];
  43. }
  44. }