AlbumStatisticalModel.php 706 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: 思维定制
  5. * Date: 2019/2/18
  6. * Time: 13:47
  7. */
  8. namespace App\Models;
  9. use Illuminate\Database\Eloquent\SoftDeletes;
  10. class AlbumStatisticalModel extends BaseModel
  11. {
  12. use SoftDeletes;
  13. protected $dates = ['delete_at'];
  14. /**
  15. * 数据表名
  16. *
  17. * @var string
  18. *
  19. */
  20. protected $table = 'album_statistical';
  21. /**
  22. 主键
  23. */
  24. protected $primaryKey = 'id';
  25. //分页
  26. protected $perPage = PAGE_NUMS;
  27. /**
  28. * 可以被集体附值的表的字段
  29. *
  30. * @var string
  31. */
  32. protected $fillable = [
  33. 'store_id',
  34. 'share_times',
  35. 'favorite_times',
  36. 'time',
  37. ];
  38. }