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