<?php
/**
 * Created by PhpStorm.
 * User: 思维定制
 * Date: 2018/6/25
 * Time: 17:11
 */

namespace App\Models;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\SoftDeletes;

class AlbumFavoriteModel extends BaseModel
{
    use SoftDeletes;
    protected $dates = ['delete_at'];

    /**
     * 数据表名
     *
     * @var string
     *
     */
    protected $table = 'album_favorite';
    /**
    主键
     */
    protected $primaryKey = 'id';

    //分页
    protected $perPage = PAGE_NUMS;

    /**
     * 可以被集体附值的表的字段
     *
     * @var string
     */
    protected $fillable = [
        'user_id',
        'product_id',
        'store_id'
    ];
}