| Current Path : /var/www/html/ukas/backend/modules/documentAutomation/models/ |
| Current File : /var/www/html/ukas/backend/modules/documentAutomation/models/Documents.php |
<?php
namespace backend\modules\documentAutomation\models;
use Yii;
/**
* This is the model class for table "document_automation_documents".
*
* @property int $id
* @property string|null $title
* @property string|null $content
* @property string|null $created_at
* @property string|null $created_by
* @property string|null $updated_at
* @property string|null $updated_by
*/
class Documents extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'document_automation_documents';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['content'], 'string'],
[['title', 'created_by', 'updated_by', 'created_at', 'updated_at','template'], 'safe'],
[['title'], 'required', 'on' => 'create'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'title' => 'Document Title',
'content' => 'Content',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
}