Files
xk-api-yii/common/modelsgii/OrderLog.php
2024-09-19 11:32:39 +08:00

52 lines
989 B
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "{{%order_log}}".
*
* @property int $id
* @property int $order_id
* @property string $content
* @property int $created_at
* @property int $updated_at
*/
class OrderLog extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%order_log}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['order_id'], 'required'],
[['order_id', 'created_at', 'updated_at'], 'integer'],
[['content'], 'string', 'max' => 500],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'order_id' => 'Order ID',
'content' => 'Content',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}