SettingsMerchantsList.php 1.12 KB
<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "w_settings_merchants_list".
 *
 * @property integer $id
 * @property string $name
 * @property string $content
 * @property integer $sort
 * @property integer $is_active
 * @property string $mcode
 */
class SettingsMerchantsList extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'w_settings_merchants_list';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'content', 'sort', 'is_active', 'mcode'], 'required'],
            [['content'], 'string'],
            [['sort', 'is_active'], 'integer'],
            [['name'], 'string', 'max' => 1000],
            [['mcode'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'content' => 'Content',
            'sort' => 'Sort',
            'is_active' => 'Is Active',
            'mcode' => 'Mcode',
        ];
    }
}