| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use app\plugins\scanCodePay\models\Order as ScanOrder;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%all_district_agent}}".
- *
- * @property integer $id
- * @property integer $divvy_id
- * @property integer $saas_id
- * @property integer $type
- * @property double $dividend_amount
- * @property integer $send_time
- * @property integer $created_at
- * @property integer $updated_at
- */
- class AllDistrictAgent extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%all_district_agent}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['divvy_id', 'saas_id', 'send_time', 'type'], 'integer'],
- [['dividend_amount'], 'number'],
- [['created_at', 'updated_at'], 'safe']
- ];
- }
- }
|