VerifyCode.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 $address 用户邮箱
  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. * @method static Builder|VerifyCode whereAddress($value)
  29. */
  30. class VerifyCode extends Model
  31. {
  32. protected $table = 'verify_code';
  33. protected $primaryKey = 'id';
  34. }