| 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 "{{%share_holder_profit_goods_log}}".
- *
- * @property integer $id
- * @property integer $user_id
- * @property integer $goods_id
- * @property integer $order_id
- * @property integer $is_switch
- * @property float $goods_price
- * @property float $goods_profit
- * @property integer $created_at
- * @property integer $updated_at
- */
- class ShareHolderProfitGoodsLog extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%share_holder_profit_goods_log}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'user_id', 'goods_id', 'order_id', 'created_at', 'updated_at', 'is_switch'], 'integer'],
- [['goods_price', 'goods_profit'], 'number']
- ];
- }
- }
|