VerifyCode.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Http\Models;
  3. use Eloquent;
  4. use Illuminate\Database\Eloquent\Builder;
  5. use Illuminate\Database\Eloquent\Model;
  6. use Illuminate\Support\Carbon;
  7. /**
  8. * 注册时的激活验证码
  9. * Class VerifyCode
  10. *
  11. * @package App\Http\Models
  12. * @mixin Eloquent
  13. * @property int $id
  14. * @property string $username 用户邮箱
  15. * @property string $code 验证码
  16. * @property int $status 状态:0-未使用、1-已使用、2-已失效
  17. * @property Carbon|null $created_at 创建时间
  18. * @property Carbon|null $updated_at 最后更新时间
  19. * @method static Builder|VerifyCode newModelQuery()
  20. * @method static Builder|VerifyCode newQuery()
  21. * @method static Builder|VerifyCode query()
  22. * @method static Builder|VerifyCode whereCode($value)
  23. * @method static Builder|VerifyCode whereCreatedAt($value)
  24. * @method static Builder|VerifyCode whereId($value)
  25. * @method static Builder|VerifyCode whereStatus($value)
  26. * @method static Builder|VerifyCode whereUpdatedAt($value)
  27. * @method static Builder|VerifyCode whereUsername($value)
  28. */
  29. class VerifyCode extends Model
  30. {
  31. protected $table = 'verify_code';
  32. protected $primaryKey = 'id';
  33. }