Your IP : 216.73.216.79


Current Path : /var/www/html/learn/backend/modules/menu/models/frontend/
Upload File :
Current File : /var/www/html/learn/backend/modules/menu/models/frontend/MenuCategory.php

<?php

namespace backend\modules\menu\models\frontend;

use Yii;

/**
 * This is the model class for table "frontend_menu_category".
 *
 * @property int $category_id
 * @property string|null $category_name
 * @property string|null $category_description
 * @property int $category_status
 * @property string|null $created_at
 * @property int|null $created_by
 * @property string|null $updated_at
 * @property int|null $updated_by
 */
class MenuCategory extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'frontend_menu_category';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['category_status', 'created_by', 'updated_by'], 'integer'],
            [['created_at', 'updated_at'], 'safe'],
            [['category_name', 'category_description'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'category_id' => 'Category ID',
            'category_name' => 'Category Name',
            'category_description' => 'Category Description',
            'category_status' => 'Category Status',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
        ];
    }
}