VerifyCode.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. *
  10. * @property int $id
  11. * @property string $address 用户邮箱
  12. * @property string $code 验证码
  13. * @property int $status 状态:0-未使用、1-已使用、2-已失效
  14. * @property Carbon|null $created_at 创建时间
  15. * @property Carbon|null $updated_at 最后更新时间
  16. * @method static Builder|VerifyCode newModelQuery()
  17. * @method static Builder|VerifyCode newQuery()
  18. * @method static Builder|VerifyCode query()
  19. * @method static Builder|VerifyCode whereAddress($value)
  20. * @method static Builder|VerifyCode whereCode($value)
  21. * @method static Builder|VerifyCode whereCreatedAt($value)
  22. * @method static Builder|VerifyCode whereId($value)
  23. * @method static Builder|VerifyCode whereStatus($value)
  24. * @method static Builder|VerifyCode whereUpdatedAt($value)
  25. * @mixin Eloquent
  26. */
  27. class VerifyCode extends Model {
  28. protected $table = 'verify_code';
  29. protected $primaryKey = 'id';
  30. }