<?php

namespace App\Modules\Welfare\Models;

use Illuminate\Database\Eloquent\Model;

/*
CREATE TABLE `welfare_prizes` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `channel_user_id` int(11) NOT NULL COMMENT '账号ID',
  `date` date NOT NULL,
  `num` int(11) NOT NULL DEFAULT '0' COMMENT '总数量',
  `left` int(11) NOT NULL DEFAULT '0' COMMENT '剩余数量',
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid-date-ink` (`channel_user_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分销登录奖励表';
*/
class WelfarePrize extends Model
{
    protected $table = 'welfare_prizes';
    protected $fillable = ['channel_user_id','date','num','left'];
}
