SmsDbGateway.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace App\Module\Sms\Models;
  3. use Illuminate\Database\Eloquent\SoftDeletes;
  4. use UCore\ModelCore;
  5. /**
  6. * 数据库-短信网关 模型
  7. *
  8. * field start
  9. * @property int $id
  10. * @property string $tpl_id
  11. * @property string $tpl_value
  12. * @property string $key
  13. * @property string $universal_number
  14. * @property string $mobile
  15. * @property string $content
  16. * @property string $idd_code
  17. * @property string $zero_prefixed_number
  18. * @property \Carbon\Carbon $created_at
  19. * @property \Carbon\Carbon $updated_at
  20. * @property \Carbon\Carbon $deleted_at 删除时间
  21. * field end
  22. */
  23. class SmsDbGateway extends ModelCore
  24. {
  25. use SoftDeletes;
  26. /**
  27. * 数据表名称
  28. *
  29. * @var string
  30. */
  31. protected $table = 'sms_dbgateway';
  32. // attrlist start
  33. protected $fillable = [
  34. 'id',
  35. 'tpl_id',
  36. 'tpl_value',
  37. 'key',
  38. 'universal_number',
  39. 'mobile',
  40. 'content',
  41. 'idd_code',
  42. 'zero_prefixed_number',
  43. ];
  44. // attrlist end
  45. /**
  46. * 可批量赋值的属性
  47. *
  48. * @var array
  49. */
  50. protected $fillable = [
  51. 'tpl_id',
  52. 'tpl_value',
  53. 'key',
  54. 'universal_number',
  55. 'mobile',
  56. 'content',
  57. 'idd_code',
  58. 'zero_prefixed_number'
  59. ];
  60. /**
  61. * 应该被调整为日期的属性
  62. *
  63. * @var array
  64. */
  65. protected $dates = [
  66. 'created_at',
  67. 'updated_at',
  68. 'deleted_at'
  69. ];
  70. }