初始化仓库
This commit is contained in:
53
common/modelsgii/Platform.php
Normal file
53
common/modelsgii/Platform.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_platform".
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $name 平台名称
|
||||
* @property string|null $secret 平台密钥(后期使用)
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
* @property int|null $is_deleted
|
||||
*/
|
||||
class Platform extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_platform';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['name', 'created_at', 'updated_at'], 'required'],
|
||||
[['created_at', 'updated_at', 'status'], 'integer'],
|
||||
[['name', 'token'], 'string', 'max' => 255],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'name' => 'Name',
|
||||
'token' => 'Token',
|
||||
'status' => 'Status',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user