| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?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 "{{%agent_goods_install_log}}".
- *
- * @property integer $id
- * @property integer $goods_agent_admin_id
- * @property integer $order_detail_id
- * @property integer $order_id
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $status
- * @property integer $is_need_install
- * @property integer $order_type
- */
- class AgentGoodsInstallLog extends \yii\db\ActiveRecord
- {
- const ORDER_TYPE_NORMAL = 0;
- const ORDER_TYPE_PURCHASE = 1;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%agent_goods_install_log}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'goods_agent_admin_id', 'order_detail_id', 'created_at', 'updated_at', 'status', 'is_need_install', 'order_id', 'order_type'], 'integer']
- ];
- }
- }
|