# reward
> 打赏表
```[sql]
CREATE TABLE `tc_gift_reward` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`no` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '订单号',
`gift_type` tinyint(3) unsigned DEFAULT '0' COMMENT '礼品类型:1虚拟,2实物',
`gift_id` int(11) unsigned DEFAULT '0' COMMENT '礼品ID',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '礼品标题',
`thumb` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '缩略图',
`num` int(11) unsigned DEFAULT '0' COMMENT '数量,默认1',
`unit_price` decimal(10,0) DEFAULT NULL COMMENT '金票,单价',
`total_price` decimal(10,0) DEFAULT '0' COMMENT '金票,总价',
`sort` smallint(6) DEFAULT '0' COMMENT '排序',
`item_id` int(11) unsigned DEFAULT '0' COMMENT '打赏项目ID',
`item_type` tinyint(3) unsigned DEFAULT '0' COMMENT '打赏项目类型,如:视频,小说',
`payer_id` int(11) unsigned DEFAULT '0' COMMENT '打赏人ID',
`payee_id` int(11) unsigned DEFAULT '0' COMMENT '被赏人ID',
`status` tinyint(1) DEFAULT '1' COMMENT '状态:1成功,2失败',
`create_time` int(10) DEFAULT NULL COMMENT '添加时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间,有时间为软删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='礼品打赏明细表';
```
## 注意
gift_type
gift_id
item_id
item_type