2025-04-10 23:19:13 +08:00

49 lines
848 B
PHP
Executable File

<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "logs".
*
* @property string $username
* @property string $ip
* @property string $data
* @property string $create_time
*/
class Logs extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%c_logs}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['username', 'create_time'], 'string', 'max' => 32],
[['ip', 'data'], 'string', 'max' => 64],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'username' => 'Username',
'ip' => 'Ip',
'data' => 'Data',
'create_time' => 'Create Time',
];
}
}