VerifyCode.php 1.2 KB

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