| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%integral_recharge}}".
- *
- * @property int $id
- * @property int|null $store_id
- * @property float $pay_price 支付金额
- * @property float $original_price 支付金额
- * @property string $name 充值名称
- * @property int|null $is_delete
- * @property int|null $created_at
- * @property int|null $send_integral
- * @property int|null $first_commission
- * @property int|null $second_commission
- * @property int|null $third_commission
- * @property int|null $state
- */
- class IntegralRecharge extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%integral_recharge}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'is_delete', 'created_at', 'send_integral', 'first_commission', 'second_commission', 'third_commission', 'state', 'original_price'], 'integer'],
- [['pay_price'], 'number'],
- [['name'], 'required'],
- [['name'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'pay_price' => '支付金额',
- 'name' => '充值名称',
- 'is_delete' => 'Is Delete',
- 'created_at' => 'Add Time',
- 'send_integral' => '赠送积分',
- 'first_commission' => '一级佣金',
- 'second_commission' => '二级佣金',
- 'third_commission' => '三级佣金',
- 'state' => '是否启用',
- 'original_price' => '原价',
- ];
- }
- }
|