<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://www.we7.cc" versionCode="0.51">
	<application setting="false">
		<name><![CDATA[刮刮卡]]></name>
		<identifie><![CDATA[scratch]]></identifie>
		<version><![CDATA[1.2]]></version>
		<type><![CDATA[activity]]></type>
		<ability><![CDATA[刮刮卡营销抽奖]]></ability>
		<description><![CDATA[刮刮卡是指卡上的一种覆盖数字和字母密码等文字的涂层，因此刮刮卡也叫密码覆膜卡、帐户卡或记账密码卡。客户端可兑奖]]></description>
		<author><![CDATA[超级无聊]]></author>
		<url><![CDATA[]]></url>
	</application>
	<platform>
		<subscribes>
		</subscribes>
		<handles>
			<message type="text" />
		</handles>
		<rule embed="true" />
	</platform>
	<bindings>
		<home>
			<entry title="刮刮卡微站" do="index" />
		</home>			
		<menu>
			<entry title="刮刮卡管理" do="manage" state="" direct="false" />
		</menu>
	</bindings>
<install><![CDATA[
CREATE TABLE IF NOT EXISTS `ims_award` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `weid` int(11) NOT NULL,
  `rid` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `fansID` int(11) NOT NULL,
  `from_user` varchar(50) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` varchar(200) NOT NULL,
  `prizetype` varchar(10) NOT NULL,
  `award_sn` varchar(50) NOT NULL,
  `createtime` int(10) NOT NULL,
  `consumetime` int(10) NOT NULL,
  `status` tinyint(4) NOT NULL,
  `accept_time` int(10) NOT NULL,
  `accept_satatus` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `ims_scratch_fans` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rid` int(11) NOT NULL,
  `fansID` int(11) NOT NULL,
  `from_user` varchar(50) NOT NULL,
  `tel` varchar(20) DEFAULT NULL,
  `todaynum` int(11) NOT NULL,
  `totalnum` int(11) NOT NULL,
  `awardnum` int(11) DEFAULT '0',
  `last_time` int(10) NOT NULL,
  `createtime` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `ims_scratch_reply` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `rid` int(10) unsigned NOT NULL,
  `title` varchar(50) NOT NULL,
  `description` varchar(255) NOT NULL,
  `content` varchar(200) DEFAULT NULL,
  `start_picurl` varchar(200) NOT NULL,
  `isshow` tinyint(1) DEFAULT NULL,
  `keyword` varchar(100) DEFAULT NULL,
  `ticket_information` varchar(200) DEFAULT NULL,
  `starttime` int(10) DEFAULT NULL,
  `endtime` int(10) DEFAULT NULL,
  `Repeat_lottery_reply` varchar(50) DEFAULT NULL,
  `end_theme` varchar(50) DEFAULT NULL,
  `end_instruction` varchar(200) DEFAULT NULL,
  `end_picurl` varchar(200) DEFAULT NULL,
  `c_type_one` varchar(20) DEFAULT NULL,
  `c_name_one` varchar(50) DEFAULT NULL,
  `c_num_one` int(11) DEFAULT '0',
  `c_draw_one` int(11) DEFAULT '0',
  `c_type_two` varchar(20) DEFAULT NULL,
  `c_name_two` varchar(50) DEFAULT NULL,
  `c_num_two` int(11) DEFAULT NULL,
  `c_draw_two` int(11) DEFAULT '0',
  `c_type_three` varchar(20) DEFAULT NULL,
  `c_name_three` varchar(50) DEFAULT NULL,
  `c_num_three` int(11) DEFAULT '0',
  `c_draw_three` int(11) DEFAULT '0',
  `c_type_four` varchar(20) DEFAULT NULL,
  `c_name_four` varchar(50) DEFAULT NULL,
  `c_num_four` int(11) DEFAULT '0',
  `c_draw_four` int(11) DEFAULT '0',
  `c_type_five` varchar(20) DEFAULT NULL,
  `c_name_five` varchar(50) DEFAULT NULL,
  `c_num_five` int(11) DEFAULT NULL,
  `c_draw_five` int(11) DEFAULT '0',
  `c_type_six` varchar(20) DEFAULT NULL,
  `c_name_six` varchar(50) DEFAULT NULL,
  `c_num_six` int(11) DEFAULT '0',
  `c_draw_six` int(10) DEFAULT '0',
  `total_num` int(11) DEFAULT NULL COMMENT '总获奖人数(自动加)',
  `probability` double DEFAULT NULL,
  `award_times` int(11) DEFAULT '0',
  `number_times` int(11) DEFAULT '0',
  `most_num_times` int(11) DEFAULT '0',
  `sn_code` tinyint(4) DEFAULT '0',
  `sn_rename` varchar(20) DEFAULT NULL,
  `tel_rename` varchar(20) DEFAULT NULL,
  `copyright` varchar(20) DEFAULT NULL,
  `show_num` tinyint(2) DEFAULT NULL,
  `viewnum` int(11) DEFAULT '0',
  `fansnum` int(11) DEFAULT '0',
  `createtime` int(10) DEFAULT NULL,
  `share_title` varchar(200) DEFAULT NULL,
  `share_desc` varchar(300) DEFAULT NULL,
  `share_url` varchar(100) DEFAULT NULL,
  `share_txt` varchar(500) DEFAULT NULL,
  `accept_passwrod` varchar(20) NOT NULL,
	`is_default` TINYINT(1) NOT NULL,  
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;]]></install>
	<uninstall><![CDATA[]]></uninstall>
	<upgrade><![CDATA[]]></upgrade>
</manifest>