| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?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 "{{%partner_pool_detail}}".
- *
- * @property integer $id
- * @property integer $order_id
- * @property integer $store_id
- * @property string $order_no
- * @property integer $is_scan
- * @property integer $money
- * @property integer $pool_id
- * @property string $desc
- * @property integer $created_at
- * @property float $mx_rate
- * @property float $rl_rate
- * @property float $before_money
- * @property float $after_money
- * @property float $pay_price
- * @property float $total_pv
- * @property float $total_price
- * @property integer $model_type
- */
- class StoreUnionPoolDetail extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%store_union_pool_detail}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['order_id', 'pool_id', 'is_scan','model_type','store_id'], 'integer'],
- [['desc', 'order_no'], 'string'],
- [['money','pay_price','rl_rate','mx_rate','total_price','total_pv','before_money','after_money'], 'number'],
- [['created_at'], 'safe']
- ];
- }
- }
|