Commit 18a57f5b authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена модель новой таблицы (analytics_school_course)

parent 4154ed81
<?php
namespace common\modules\analyticsSchool\models;
use Yii;
/**
* This is the model class for table "analytics_school_course".
*
* @property integer $id
* @property string $name
* @property string $description
* @property string $image
*/
class AnalyticsSchoolCourse extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'analytics_school_course';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['name'], 'required'],
[['description', 'image'], 'string'],
[['name'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Name',
'description' => 'Description',
'image' => 'Image',
];
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment