CREATE TABLE `activitybaseprop` ( `ID` smallint(6) NOT NULL DEFAULT '0' COMMENT '活動ID 1:簽到獎勵 2:升級福利 3:每天美食 4:月卡系統 5:激活碼兌換 6:分享 7:問卷調查 8:登陸有禮', `Name_CN` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '活動名稱', `Name_EN` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Name_TW` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `SourceFile` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '資源文件', `Dec_CN` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `Dec_EN` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `Dec_TW` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `IsUsing` tinyint(4) DEFAULT '1' COMMENT '是否使用中 0:禁用 1:使用 2:使用(但活動欄中不顯示)', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `activityprop` ( `ID` smallint(6) NOT NULL DEFAULT '0', `ActivityBaseID` smallint(6) DEFAULT '0' COMMENT '對應基礎表ID', `IsUsing` tinyint(4) DEFAULT '1' COMMENT '是否使用中', `Name_CN` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '活動名稱', `Name_EN` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Name_TW` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Desc_CN` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '活動名稱', `Desc_EN` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Desc_TW` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `StartTime` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '開始時間', `EndTime` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '結束時間', `FinishCond` int(11) DEFAULT '0' COMMENT '完成條件', `SourceFile` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '資源文件', `EncResID1` smallint(5) DEFAULT '0' COMMENT '資源獎勵ID', `EncResID1Param1` int(11) DEFAULT '0' COMMENT '資源獎勵1參數1', `EncResID1Param2` int(11) DEFAULT '0' COMMENT '資源獎勵1參數2', `EncResID2` smallint(5) DEFAULT '0' COMMENT '資源獎勵ID2', `EncResID2Param1` int(11) DEFAULT '0' COMMENT '資源獎勵2參數1', `EncResID2Param2` int(11) DEFAULT '0' COMMENT '資源獎勵2參數2', `EncResID3` smallint(5) DEFAULT '0' COMMENT '資源獎勵ID3', `EncResID3Param1` int(11) DEFAULT '0' COMMENT '資源獎勵3參數1', `EncResID3Param2` int(11) DEFAULT '0' COMMENT '資源獎勵3參數2', `EncResID4` smallint(5) DEFAULT '0' COMMENT '資源獎勵ID4', `EncResID4Param1` int(11) DEFAULT '0' COMMENT '資源獎勵4參數1', `EncResID4Param2` int(11) DEFAULT '0' COMMENT '資源獎勵4參數2', `EncResID5` smallint(5) DEFAULT '0' COMMENT '資源獎勵ID5', `EncResID5Param1` int(11) DEFAULT '0' COMMENT '資源獎勵5參數1', `EncResID5Param2` int(11) DEFAULT '0' COMMENT '資源獎勵5參數2', `EncResID6` smallint(5) DEFAULT '0' COMMENT '資源獎勵ID', `EncResID6Param1` int(11) DEFAULT '0' COMMENT '資源獎勵1參數1', `EncResID6Param2` int(11) DEFAULT '0' COMMENT '資源獎勵6參數2', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `activitysubjectdetailprop` ( `ID` smallint(6) NOT NULL DEFAULT '0', `Name_CN` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '活動名稱', `Name_EN` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Name_TW` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Idx` varchar(20) DEFAULT NULL COMMENT '選項序號', `SubjectID` smallint(6) DEFAULT '0' COMMENT '題目', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `activitysubjectprop` ( `ID` smallint(6) NOT NULL DEFAULT '0', `Name_CN` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '活動名稱', `Name_EN` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Name_TW` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Dec_CN` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `Dec_EN` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `Dec_TW` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `ChkFlag` tinyint(4) DEFAULT '0' COMMENT '是否爲多選 0:單選 1:多選', `Idx` tinyint(2) DEFAULT NULL COMMENT '選項分頁號', `ActivityID` smallint(6) DEFAULT '0' COMMENT '對應活動表ID', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `activityupdaterateprop` ( `ID` smallint(6) NOT NULL AUTO_INCREMENT, `ActivityID` smallint(6) DEFAULT '0' COMMENT '對應活動表ID(activityprop)', `MinSort` smallint(6) DEFAULT '0' COMMENT '最小名次', `MaxSort` smallint(6) DEFAULT '0' COMMENT '最大名次', `Rate` smallint(6) DEFAULT '0' COMMENT '倍數', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;