Your IP : 216.73.216.79


Current Path : /var/www/html/ukas/backend/modules/documentAutomation/models/
Upload File :
Current File : /var/www/html/ukas/backend/modules/documentAutomation/models/Template.php

<?php

namespace backend\modules\documentAutomation\models;

use Yii;

/**
 * This is the model class for table "document_automation_template".
 *
 * @property int $id
 * @property string|null $title
 * @property string|null $thumbnail
 * @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 Template extends \yii\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return 'document_automation_template';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['title',], 'required'],
            [['thumbnail', 'created_at', 'updated_at', 'content', 'created_by', 'updated_by'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'thumbnail' => 'Thumbnail',
            'content' => 'Content',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
        ];
    }

}