BusinessRightDuration.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%business_order}}".
  11. *
  12. * @property integer $id
  13. * @property integer $member_id
  14. * @property string $order_no
  15. * @property integer $saas_id
  16. * @property string $pay_price
  17. * @property integer $pay_type
  18. * @property integer $is_pay
  19. * @property integer $pay_time
  20. * @property integer $is_delete
  21. * @property integer $created_at
  22. * @property integer $current_level
  23. * @property integer $after_level
  24. * @property integer $combine_money
  25. * @property integer $is_combine_pay
  26. */
  27. class BusinessRightDuration extends \yii\db\ActiveRecord
  28. {
  29. //后台开通
  30. const FROM_ADMIN = 1;
  31. //消费开通
  32. const FROM_PAYSUM = 2;
  33. //会员卡开通
  34. const FROM_CARD = 3;
  35. /**
  36. * @inheritdoc
  37. */
  38. public static function tableName()
  39. {
  40. return '{{%business_right_duration}}';
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['saas_id','right_id','created_at','is_delete','expire_time'], 'integer'],
  49. [['from'], 'safe'],
  50. ];
  51. }
  52. /**
  53. * @inheritdoc
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => 'ID',
  59. 'saas_id' => '用户',
  60. 'right_id' => '权限id',
  61. 'created_at' => '创建时间',
  62. 'is_delete' => 'Is Delete',
  63. 'expire_time' => '过期时间',
  64. 'from' => '开通渠道',
  65. ];
  66. }
  67. }