| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%cashier_goods_price_log}}".
- *
- * @property integer $id
- * @property integer $goods_id
- * @property integer $user_id
- * @property integer $md_id
- * @property string $attr
- * @property float $price
- * @property string $created_at
- */
- class CashierGoodsPriceLog extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%cashier_goods_price_log}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'goods_id', 'user_id', 'md_id'], 'integer'],
- [['created_at', 'attr'], 'string'],
- [['price'], 'number'],
- [['created_at'], 'safe']
- ];
- }
- }
|