123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%email_cert}}".
- *
- * @property int $id ID
- * @property int $user_id 用户ID
- * @property string|null $email 邮箱
- * @property string|null $cert_key 验证码
- * @property int $cert 1:验证 0:未验证
- * @property int $request_from 请求来源
- * @property int $sent_time 验证码发送时间
- * @property int $cert_time 验证时间
- */
- class EmailCert extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%email_cert}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['user_id', 'cert', 'request_from', 'sent_time', 'cert_time'], 'integer'],
- [['email'], 'string', 'max' => 50],
- [['cert_key'], 'string', 'max' => 15],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'user_id' => '用户ID',
- 'email' => '邮箱',
- 'cert_key' => '验证码',
- 'cert' => '1:验证 0:未验证',
- 'request_from' => '请求来源',
- 'sent_time' => '验证码发送时间',
- 'cert_time' => '验证时间',
- ];
- }
- }
|