|
- <?php
-
- namespace backend\modules\zzcs\models;
-
- use Yii;
- use yii\db\ActiveRecord;
-
- /**
- * This is the model class for table "order_opera_log".
- *
- * @property integer $id
- * @property integer $order_id
- * @property integer $opera_user_id
- * @property integer $opera_type
- * @property string $opera_time
- * @property string $opera_detail
- */
- class OrderOperaLog extends ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'order_opera_log';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['order_id', 'opera_user_id', 'opera_type'], 'integer'],
- [['opera_time'], 'safe'],
- [['opera_detail'], 'string'],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'order_id' => 'Order ID',
- 'opera_user_id' => 'Opera User ID',
- 'opera_type' => '1:create 2:cancel 3:modify',
- 'opera_time' => 'Opera Time',
- 'opera_detail' => 'Opera Detail',
- ];
- }
- }
|