Your IP : 216.73.216.79


Current Path : /var/www/html/slaas/backend/modules/documentAutomation/models/
Upload File :
Current File : /var/www/html/slaas/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',
        ];
    }

}