Your IP : 216.73.216.79


Current Path : /var/www/html/jpp/backend/modules/feedback.backup/models/
Upload File :
Current File : /var/www/html/jpp/backend/modules/feedback.backup/models/FeedbackMain.php

<?php

namespace backend\modules\feedback\models;

use Yii;

/**
 * This is the model class for table "feedback_main".
 *
 * @property int $id
 * @property string|null $type
 * @property string|null $cat
 * @property string|null $feedback
 * @property string|null $status
 * @property string|null $created_at
 * @property int|null $created_by
 * @property string|null $created_user_type
 * @property string|null $updated_at
 * @property int|null $updated_by
 * @property string|null $updated_user_type
 */
class FeedbackMain extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['type', 'cat', 'feedback'], 'required', 'message' => Yii::t('app', '{attribute} cannot be blank')],
            [['feedback'], 'string'],
            [['created_at', 'updated_at', 'type', 'cat', 'status', 'created_user_type', 'updated_user_type','ticket_no'], 'safe'],
            [['created_by', 'updated_by'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => Yii::t('app', 'ID'),
            'type' => Yii::t('app', 'Feedback Type'),
            'cat' => Yii::t('app', 'Feedback Category'),
            'feedback' => Yii::t('app', 'Feedback'),
            'ticket_no' => Yii::t('app', 'Ticket Number'),
            'status' => Yii::t('app', 'Status'),
            'created_at' => Yii::t('app', 'Send At'),
            'created_by' => Yii::t('app', 'Send By'),
            'created_user_type' => Yii::t('app', 'Created User Type'),
            'updated_at' => Yii::t('app', 'Updated At'),
            'updated_by' => Yii::t('app', 'Updated By'),
            'updated_user_type' => Yii::t('app', 'Updated User Type'),
        ];
    }

}