# 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