SmsCode.php 696 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Module\Sms\Models;
  3. use UCore\ModelCore;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * 短信验证码模型
  7. *
  8. * field start
  9. * field end
  10. *
  11. */
  12. class SmsCode extends ModelCore
  13. {
  14. use SoftDeletes;
  15. /**
  16. * 数据表名称
  17. *
  18. * @var string
  19. */
  20. protected $table = 'sms_code';
  21. /**
  22. * 可批量赋值的属性
  23. *
  24. * @var array
  25. */
  26. protected $fillable = [
  27. 'mobile',
  28. 'token',
  29. 'type',
  30. 'code_value'
  31. ];
  32. /**
  33. * 应该被调整为日期的属性
  34. *
  35. * @var array
  36. */
  37. protected $dates = [
  38. 'created_at',
  39. 'updated_at',
  40. 'deleted_at'
  41. ];
  42. }