123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "wz_mobile_cert".
- *
- * @property int $id ID
- * @property int $user_id 用户ID
- * @property string|null $mobile 手机号码
- * @property string|null $cert_key 验证码
- * @property int $cert 1:验证 0:未验证
- * @property int $request_from 请求来源
- * @property int $sent_time 验证码发送时间
- * @property int $cert_time 验证时间
- */
- class MobileCert extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%mobile_cert}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['user_id', 'cert', 'request_from', 'sent_time', 'cert_time'], 'integer'],
- [['mobile'], 'string', 'max' => 11],
- [['cert_key'], 'string', 'max' => 15],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'user_id' => 'User ID',
- 'mobile' => 'Mobile',
- 'cert_key' => 'Cert Key',
- 'cert' => 'Cert',
- 'request_from' => 'Request From',
- 'sent_time' => 'Sent Time',
- 'cert_time' => 'Cert Time',
- ];
- }
- }
|