MPSetting.php 656 Bytes
<?php

namespace domain\mp\models;

use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;

/**
 * 公众号设置
 * This is the model class for table "{{%mp_setting}}".
 */
class MPSetting extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%mp_setting}}';
    }

    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'time' => [
                'class' => TimestampBehavior::className(),
                'createdAtAttribute' => 'created_at',
                'updatedAtAttribute' => 'updated_at',
            ]
        ];
    }
}