ApiLogModel.php 839 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Models\Log;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Log\ApiLogModel
  6. *
  7. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\ApiLogModel newModelQuery()
  8. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\ApiLogModel newQuery()
  9. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\ApiLogModel query()
  10. * @mixin \Eloquent
  11. */
  12. class ApiLogModel extends Model
  13. {
  14. protected $connection = 'mysql_datalog';
  15. protected $table = "kdgx_fpdx_apilog";
  16. public $timestamps = false;
  17. protected $fillable = [
  18. 'uri',
  19. 'method',
  20. 'controller',
  21. 'uid',
  22. 'request',
  23. 'response',
  24. 'http_status',
  25. 'func_line',
  26. 'sql_line',
  27. 'ip',
  28. 'begin_at',
  29. 'end_at',
  30. 'host'
  31. ];
  32. }