AlbumProductStyleModel.php 753 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Models;
  3. use App\Models\BaseModel;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * @description 产品样式管理
  7. * @author system;
  8. * @version 1.0
  9. * @date 2018-06-05 17:11:53
  10. *
  11. */
  12. class AlbumProductStyleModel extends BaseModel
  13. {
  14. use SoftDeletes;
  15. protected $dates = ['delete_at'];
  16. /**
  17. * 数据表名
  18. *
  19. * @var string
  20. *
  21. */
  22. protected $table = 'album_product_style';
  23. /**
  24. 主键
  25. */
  26. protected $primaryKey = 'id';
  27. //分页
  28. protected $perPage = PAGE_NUMS;
  29. /**
  30. * 可以被集体附值的表的字段
  31. *
  32. * @var string
  33. */
  34. protected $fillable = [
  35. 'name',
  36. 'store_id'
  37. ];
  38. }