-- 社团派单
-- zmh
CREATE TABLE `guild_order` (
  `id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单id',
  `guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
  `owner` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '派单人',
  `taker` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '接单人',
  `cfgid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '配置',
  `status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  `content` varchar(500) NOT NULL DEFAULT '{}' COMMENT '任务内容',
  `etime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '有效时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团派单-合服合并';


ALTER TABLE `player_guild`
ADD COLUMN `order`  bigint(20) NOT NULL DEFAULT 0 COMMENT '已接单' AFTER `red_gold_packet`,
ADD COLUMN `deliver`  int(11) NOT NULL DEFAULT 0 COMMENT '待派发' AFTER `order`;
