SmsCode.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. * @property int $id
  10. * @property string $mobile
  11. * @property string $token
  12. * @property string $type
  13. * @property string $code_value
  14. * @property \Carbon\Carbon $created_at
  15. * @property \Carbon\Carbon $updated_at
  16. * @property \Carbon\Carbon $deleted_at 删除时间
  17. * field end
  18. *
  19. */
  20. class SmsCode extends ModelCore
  21. {
  22. use SoftDeletes;
  23. /**
  24. * 数据表名称
  25. *
  26. * @var string
  27. */
  28. protected $table = 'sms_code';
  29. // attrlist start
  30. protected $fillable = [
  31. 'id',
  32. 'mobile',
  33. 'token',
  34. 'type',
  35. 'code_value',
  36. ];
  37. // attrlist end
  38. /**
  39. * 可批量赋值的属性
  40. *
  41. * @var array
  42. */
  43. protected $fillable = [
  44. 'mobile',
  45. 'token',
  46. 'type',
  47. 'code_value'
  48. ];
  49. /**
  50. * 应该被调整为日期的属性
  51. *
  52. * @var array
  53. */
  54. protected $dates = [
  55. 'created_at',
  56. 'updated_at',
  57. 'deleted_at'
  58. ];
  59. }