Your IP : 216.73.216.79


Current Path : /var/www/html/jppmportal/frontend/models/
Upload File :
Current File : /var/www/html/jppmportal/frontend/models/DmgUser.php

<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "dmg_user".
 *
 * @property int $id
 * @property string $username
 * @property string $fullname
 * @property string|null $branch
 * @property string|null $auth_key
 * @property string $password_hash
 * @property string|null $password_reset_token
 * @property string $email
 * @property int|null $last_login
 * @property int|null $last_login_attempts
 * @property int|null $login_attempts
 * @property int|null $status
 * @property int|null $is_admin
 * @property string|null $created_by
 * @property int|null $created_at
 * @property string|null $updated_by
 * @property int|null $updated_at
 */
class DmgUser extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'dmg_user';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['username', 'fullname', 'password_hash', 'email'], 'required'],
            [['last_login', 'last_login_attempts', 'login_attempts', 'status', 'is_admin', 'created_at', 'updated_at'], 'integer'],
            [['username', 'fullname', 'branch', 'auth_key', 'password_hash', 'password_reset_token', 'email', 'created_by', 'updated_by'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'username' => 'Username',
            'fullname' => 'Fullname',
            'branch' => 'Branch',
            'auth_key' => 'Auth Key',
            'password_hash' => 'Password Hash',
            'password_reset_token' => 'Password Reset Token',
            'email' => 'Email',
            'last_login' => 'Last Login',
            'last_login_attempts' => 'Last Login Attempts',
            'login_attempts' => 'Login Attempts',
            'status' => 'Status',
            'is_admin' => 'Is Admin',
            'created_by' => 'Created By',
            'created_at' => 'Created At',
            'updated_by' => 'Updated By',
            'updated_at' => 'Updated At',
        ];
    }
}