File: /home/aliazzsr/api.crm.vqode.com/models/core/Influencer.php
<?php
namespace app\models\core;
use app\components\BaseModel;
class Influencer extends BaseModel
{
public static function tableName()
{
return 'influencer';
}
public function rules()
{
return [
[['name', ], 'required'],
[['name', ], 'string', 'max' => 255],
[['name', ], 'unique'],
[['name', 'description'], 'safe'],
];
}
}
/**
* @SWG\Definition(
* definition="Influencer",
* type="object",
* description="Influencer model",
* allOf={
* @SWG\Schema(
* @SWG\Property(property="id", type="integer", example="2"),
* @SWG\Property(property="name", type="string", example="Key influencer"),
* @SWG\Property(property="description", type="string", example="Key influencer"),
* )
* }
* )
*/