| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?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 "{{%ShareHolderFrostLog}}".
- *
- * @property integer $id
- * @property integer $parent_user_id
- * @property integer $child_user_id
- * @property float $amount
- * @property integer $status
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $order_id
- */
- class ShareHolderFrostLog extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%share_holder_frost_log}}';
- }
- 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 [
- [['parent_user_id', 'child_user_id', 'status', 'status', 'order_id'], 'integer'],
- [['amount'], 'number'],
- [['created_at', 'updated_at'], 'safe']
- ];
- }
- }
|