<?php

namespace App\Modules\Book\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 渠道图书评分评分
 * Class BookChannelScore
 * @package App\Modules\Book\Models
 */
class BookChannelScore extends Model
{
    /*
        CREATE TABLE `book_channel_scores` (
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `bid` int(11) NOT NULL,
        `distribution_channel_id` int(11) NOT NULL,
        `score` char(1) NOT NULL COMMENT '评分',
        `created_at` datetime NOT NULL,
        `updated_at` datetime NOT NULL,
        PRIMARY KEY (`id`),
        KEY `channel_id_bid_score-ink` (`distribution_channel_id`,`bid`,`score`)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='图书自主评分表';
    */

    protected $table = 'book_channel_scores';
    protected $fillable = ['distribution_channel_id','bid','score'];
}
