Your IP : 216.73.216.79


Current Path : /var/www/html/sprm/backend/models/
Upload File :
Current File : /var/www/html/sprm/backend/models/ReportTable.php

<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "report_table".
 *
 * @property integer $id_report_table
 * @property integer $id_report_meta
 * @property string $title_report_table
 * @property string $table_name
 * @property string $column_name
 * @property string $sql_statement
 * @property string $type_report
 * @property string $created_by
 * @property string $created_at
 * @property string $updated_by
 * @property string $updated_at
 */
class ReportTable extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'report_table';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id_report_meta'], 'integer'],
            [['column_name'], 'safe'],
            [['title_report_table', 'table_name', 'column_name', 'sql_statement', 'type_report', 'created_by', 'created_at', 'updated_by', 'updated_at','column_id'], 'string'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id_report_table' => 'Id Report Table',
            'id_report_meta' => 'Id Report Meta',
            'title_report_table' => 'Title Report Table',
            'table_name' => 'Table Name',
            'column_name' => 'Column Name',
            'sql_statement' => 'Sql Statement',
            'type_report' => 'Type Report',
            'created_by' => 'Created By',
            'created_at' => 'Created At',
            'updated_by' => 'Updated By',
            'updated_at' => 'Updated At',
            'column_id' => 'Column ID',
        ];
    }

    public function getReportMeta()
        {
                return $this->hasOne(ReportMeta::className(), ['id_report_meta' => 'id_report_meta']);
        }
    
}