| Current Path : /var/www/html/drsa/backend/modules/appCompetency/models/ |
| Current File : /var/www/html/drsa/backend/modules/appCompetency/models/ModuleAppCompetencyMaterial.php |
<?php
namespace backend\modules\appCompetency\models;
use Yii;
/**
* This is the model class for table "module_app_competency_material".
*
* @property int $id
* @property int $competency_id
* @property string $title
* @property string $url
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*/
class ModuleAppCompetencyMaterial extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'module_app_competency_material';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['title'], 'required'],
[['competency_id', 'url', 'created_by', 'updated_by', 'created_at', 'updated_at'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'competency_id' => 'Competency ID',
'title' => 'Title',
'url' => 'Upload File',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
}