| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%q_and_a_ad_setting}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $award_integral
- * @property int $see_num
- * @property string $first_commission
- * @property string $second_commission
- * @property string $third_commission
- * @property string $adpid
- * @property int $updated_at
- */
- class QAndAAdSetting extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%q_and_a_ad_setting}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at'],
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'award_integral', 'see_num', 'adpid'], 'required'],
- [['store_id', 'first_commission', 'second_commission', 'third_commission', 'updated_at'], 'safe']
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'award_integral' => '奖励积分',
- 'see_num' => '观看次数',
- 'first_commission' => '一级分销',
- 'second_commission' => '二级分销',
- 'third_commission' => '三级分销',
- 'adpid' => '广告位id',
- 'updated_at' => '是否删除',
- ];
- }
- }
|