| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?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_order}}".
- *
- * @property integer $id
- * @property integer $divvy_id
- * @property string $order_no
- * @property double $pay_price
- * @property double $all_district_agent_divvy
- * @property double $dividend_amount
- * @property integer $send_time
- * @property integer $created_at
- * @property integer $updated_at
- */
- class AllDistrictOrder extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%all_district_order}}';
- }
- 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', 'send_time'], 'integer'],
- [['pay_price', 'dividend_amount', 'all_district_agent_divvy'], 'number'],
- [['order_no'], 'string'],
- [['created_at', 'updated_at'], 'safe']
- ];
- }
- }
|