| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%business_order}}".
- *
- * @property integer $id
- * @property integer $member_id
- * @property string $order_no
- * @property integer $saas_id
- * @property string $pay_price
- * @property integer $pay_type
- * @property integer $is_pay
- * @property integer $pay_time
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $current_level
- * @property integer $after_level
- * @property integer $combine_money
- * @property integer $is_combine_pay
- */
- class BusinessRightDuration extends \yii\db\ActiveRecord
- {
- //后台开通
- const FROM_ADMIN = 1;
- //消费开通
- const FROM_PAYSUM = 2;
- //会员卡开通
- const FROM_CARD = 3;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%business_right_duration}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['saas_id','right_id','created_at','is_delete','expire_time'], 'integer'],
- [['from'], 'safe'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'saas_id' => '用户',
- 'right_id' => '权限id',
- 'created_at' => '创建时间',
- 'is_delete' => 'Is Delete',
- 'expire_time' => '过期时间',
- 'from' => '开通渠道',
- ];
- }
- }
|