- Добавлена таблица хешей

parent 844b235f
<?php
namespace common\modules\triggers\models;
use Yii;
/**
* This is the model class for table "auth_hashes".
*
* @property integer $id
* @property string $email
* @property string $hash
* @property integer $auth_count
* @property string $valid_date
*/
class AuthHashes extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'auth_hashes';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['email', 'hash', 'valid_date'], 'required'],
[['auth_count'], 'integer'],
[['valid_date'], 'safe'],
[['email'], 'string', 'max' => 255],
[['hash'], 'string', 'max' => 50],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'email' => 'Email',
'hash' => 'Hash',
'auth_count' => 'Auth Count',
'valid_date' => 'Valid Date',
];
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment