| Current Path : /var/www/html/project/models/ |
| Current File : /var/www/html/project/models/TasksLog.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "tasks_log".
*
* @property int $id
* @property int $task_id
* @property string $remarks
* @property string $file_url
* @property int $created_by
* @property string $created_dt
*/
class TasksLog extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'tasks_log';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
//[['remarks'], 'required'],
[['task_id', 'created_by'], 'integer'],
//[['remarks'], 'string'],
[['created_dt', 'file_url', 'remarks'], 'safe'],
//[['file_url'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'task_id' => 'Task ID',
'remarks' => 'Findings / Result / Remarks',
'file_url' => 'Upload File',
'created_by' => 'Created By',
'created_dt' => 'Created Dt',
];
}
}