51 lines
1.0 KiB
PHP
51 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii\oldDb;
|
|
|
|
/**
|
|
* This is the model class for table "yii_order_number_change".
|
|
*
|
|
* @property int $id
|
|
* @property int $order_id 关联订单id
|
|
* @property int $number 条数
|
|
* @property int $type 0购买1是赠送
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class OrderNumberChange extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_order_number_change';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['order_id'], 'required'],
|
|
[['order_id', 'number', 'type', 'created_at', 'updated_at'], 'integer'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'order_id' => 'Order ID',
|
|
'number' => 'Number',
|
|
'type' => 'Type',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|