|
|
/*
|
|
|
Navicat MySQL Data Transfer
|
|
|
|
|
|
Source Server : zaq
|
|
|
Source Server Version : 50016
|
|
|
Source Host : localhost:3306
|
|
|
Source Database : donation
|
|
|
|
|
|
Target Server Type : MYSQL
|
|
|
Target Server Version : 50016
|
|
|
File Encoding : 65001
|
|
|
|
|
|
Date: 2020-04-30 00:17:22
|
|
|
*/
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS=0;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for budget
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `budget`;
|
|
|
CREATE TABLE `budget` (
|
|
|
`Pro_id` varchar(24) NOT NULL,
|
|
|
`ma_id` int(11) NOT NULL,
|
|
|
`number` int(11) default NULL,
|
|
|
PRIMARY KEY (`Pro_id`,`ma_id`),
|
|
|
KEY `ma_id` (`ma_id`),
|
|
|
CONSTRAINT `budget_ibfk_1` FOREIGN KEY (`Pro_id`) REFERENCES `project` (`id`),
|
|
|
CONSTRAINT `budget_ibfk_2` FOREIGN KEY (`ma_id`) REFERENCES `material` (`id`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of budget
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '1', '2000');
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '2', '5000');
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '6', '50000');
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '13', '2000');
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '14', '1500');
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '15', '200');
|
|
|
INSERT INTO `budget` VALUES ('514113007583765545A20001', '16', '5000');
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '1', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '2', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '3', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '4', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '5', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '6', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '7', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '8', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '9', null);
|
|
|
INSERT INTO `budget` VALUES ('531100005620503332A20010', '10', null);
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for charity
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `charity`;
|
|
|
CREATE TABLE `charity` (
|
|
|
`id` varchar(19) NOT NULL,
|
|
|
`name` varchar(255) default NULL,
|
|
|
`mobile` varchar(15) NOT NULL,
|
|
|
`e_mail` varchar(50) NOT NULL,
|
|
|
`password` varchar(16) NOT NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
UNIQUE KEY `name` (`name`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of charity
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `charity` VALUES ('514113007583765545', '南阳市慈善总会', '037763121116', 'nyscszh@163.com', 'nycszh');
|
|
|
INSERT INTO `charity` VALUES ('531100005620503332', '北京春苗慈善基金会', '01084137619', 'chunmiaojjh@163.com', 'szhszh');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for jk
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `jk`;
|
|
|
CREATE TABLE `jk` (
|
|
|
`Pro_id` varchar(24) NOT NULL,
|
|
|
`User_id` varchar(20) NOT NULL,
|
|
|
`money` int(11) NOT NULL,
|
|
|
PRIMARY KEY (`Pro_id`,`User_id`),
|
|
|
KEY `User_id` (`User_id`),
|
|
|
CONSTRAINT `jk_ibfk_1` FOREIGN KEY (`Pro_id`) REFERENCES `project` (`id`),
|
|
|
CONSTRAINT `jk_ibfk_2` FOREIGN KEY (`User_id`) REFERENCES `user` (`user_ID`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of jk
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `jk` VALUES ('531100005620503332A20010', '565793455', '1000');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for material
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `material`;
|
|
|
CREATE TABLE `material` (
|
|
|
`id` int(11) NOT NULL auto_increment,
|
|
|
`name` varchar(255) default NULL,
|
|
|
`Price` float default NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
UNIQUE KEY `name` (`name`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of material
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `material` VALUES ('1', '医用防护服', '350');
|
|
|
INSERT INTO `material` VALUES ('2', '医用N95口罩', '20');
|
|
|
INSERT INTO `material` VALUES ('3', '新生儿保温箱', '65000');
|
|
|
INSERT INTO `material` VALUES ('4', '新生儿转运系统', '280000');
|
|
|
INSERT INTO `material` VALUES ('5', '监护仪', '20000');
|
|
|
INSERT INTO `material` VALUES ('6', '一次性医用口罩', '2');
|
|
|
INSERT INTO `material` VALUES ('7', '一次性医用橡胶口罩', '2');
|
|
|
INSERT INTO `material` VALUES ('8', '有创呼吸机', '160000');
|
|
|
INSERT INTO `material` VALUES ('9', '无创呼吸机', '11000');
|
|
|
INSERT INTO `material` VALUES ('10', '制氧机', '4800');
|
|
|
INSERT INTO `material` VALUES ('11', '负压救护车', '342000');
|
|
|
INSERT INTO `material` VALUES ('12', '隔离衣', '60');
|
|
|
INSERT INTO `material` VALUES ('13', '正压隔离衣', '70');
|
|
|
INSERT INTO `material` VALUES ('14', '84消毒液(2500ml)', '35');
|
|
|
INSERT INTO `material` VALUES ('15', '95%医用酒精(50斤)', '375');
|
|
|
INSERT INTO `material` VALUES ('16', '3M口罩', '36');
|
|
|
INSERT INTO `material` VALUES ('17', '体外膜肺氧和仪(Medos Delta Stream III)', '1.4e+006');
|
|
|
INSERT INTO `material` VALUES ('18', '全自动核酸提取仪(MagNA Pure24)', '600000');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for platform
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `platform`;
|
|
|
CREATE TABLE `platform` (
|
|
|
`platform_id` varchar(14) NOT NULL,
|
|
|
`name` varchar(255) default NULL,
|
|
|
`mobile` varchar(15) NOT NULL,
|
|
|
`e_mail` varchar(25) default NULL,
|
|
|
`address` varchar(255) NOT NULL,
|
|
|
PRIMARY KEY (`platform_id`),
|
|
|
UNIQUE KEY `name` (`name`),
|
|
|
UNIQUE KEY `e_mail` (`e_mail`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of platform
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `platform` VALUES ('Z2000133000019', '支付宝', '057128997058', 'resume@alipay.com', '浙江省杭州市文三路478号华星时代广场22楼');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for project
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `project`;
|
|
|
CREATE TABLE `project` (
|
|
|
`id` varchar(24) NOT NULL,
|
|
|
`name` varchar(255) NOT NULL,
|
|
|
`propose` varchar(255) NOT NULL,
|
|
|
`goal` int(11) NOT NULL,
|
|
|
`rate` int(11) default NULL,
|
|
|
`plat_id` varchar(14) NOT NULL,
|
|
|
`c_id` varchar(19) NOT NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
KEY `plat_id` (`plat_id`),
|
|
|
KEY `c_id` (`c_id`),
|
|
|
CONSTRAINT `project_ibfk_1` FOREIGN KEY (`plat_id`) REFERENCES `platform` (`platform_id`),
|
|
|
CONSTRAINT `project_ibfk_2` FOREIGN KEY (`c_id`) REFERENCES `charity` (`id`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of project
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `project` VALUES ('514113007583765545A20001', '防控疫情,大爱无疆', '为南阳市新冠肺炎疫情严重的防疫一线地区筹募资金,购置防护物资', '2000000', '100', 'Z2000133000019', '514113007583765545');
|
|
|
INSERT INTO `project` VALUES ('531100005620503332A20010', '抗击疫情,众志成城', '为湖北、北京等各地医院及群众筹集善款采购疫情专项物资', '10000000', '86', 'Z2000133000019', '531100005620503332');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for support
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `support`;
|
|
|
CREATE TABLE `support` (
|
|
|
`Pro_id` varchar(24) NOT NULL,
|
|
|
`unit_id` varchar(50) NOT NULL,
|
|
|
`ma_id` int(11) NOT NULL,
|
|
|
`number` int(11) NOT NULL,
|
|
|
PRIMARY KEY (`Pro_id`,`unit_id`,`ma_id`),
|
|
|
KEY `unit_id` (`unit_id`),
|
|
|
KEY `ma_id` (`ma_id`),
|
|
|
CONSTRAINT `support_ibfk_1` FOREIGN KEY (`Pro_id`) REFERENCES `project` (`id`),
|
|
|
CONSTRAINT `support_ibfk_2` FOREIGN KEY (`unit_id`) REFERENCES `unit` (`unit_id`),
|
|
|
CONSTRAINT `support_ibfk_3` FOREIGN KEY (`ma_id`) REFERENCES `material` (`id`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of support
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `support` VALUES ('531100005620503332A20010', '001118110102310111', '12', '1000');
|
|
|
INSERT INTO `support` VALUES ('531100005620503332A20010', '110105', '12', '2000');
|
|
|
INSERT INTO `support` VALUES ('531100005620503332A20010', '41580121-341010511A2101', '12', '600');
|
|
|
INSERT INTO `support` VALUES ('531100005620503332A20010', '43136154-553011216A5191', '12', '600');
|
|
|
INSERT INTO `support` VALUES ('531100005620503332A20010', 'PDY60089-053010111A5151', '12', '300');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for unit
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `unit`;
|
|
|
CREATE TABLE `unit` (
|
|
|
`unit_id` varchar(50) NOT NULL,
|
|
|
`unit_name` varchar(255) default NULL,
|
|
|
PRIMARY KEY (`unit_id`),
|
|
|
UNIQUE KEY `unit_name` (`unit_name`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of unit
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `unit` VALUES ('110105', '北京市朝阳区');
|
|
|
INSERT INTO `unit` VALUES ('41580121-341010511A2101', '河南省中医院');
|
|
|
INSERT INTO `unit` VALUES ('43136154-553011216A5191', '昆明市儿童医院');
|
|
|
INSERT INTO `unit` VALUES ('411300', '南阳市');
|
|
|
INSERT INTO `unit` VALUES ('001118110102310111', '首都医科大学附属复兴医院');
|
|
|
INSERT INTO `unit` VALUES ('PDY60089-053010111A5151', '云南省阜外心血管病医院');
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for user
|
|
|
-- ----------------------------
|
|
|
DROP TABLE IF EXISTS `user`;
|
|
|
CREATE TABLE `user` (
|
|
|
`user_ID` varchar(20) NOT NULL,
|
|
|
`pass_word` varchar(16) NOT NULL,
|
|
|
`plat_id` varchar(14) default NULL,
|
|
|
PRIMARY KEY (`user_ID`),
|
|
|
KEY `plat_id` (`plat_id`),
|
|
|
CONSTRAINT `user_ibfk_1` FOREIGN KEY (`plat_id`) REFERENCES `platform` (`platform_id`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Records of user
|
|
|
-- ----------------------------
|
|
|
INSERT INTO `user` VALUES ('565793455', 'nycszh', 'Z2000133000019');
|
|
|
INSERT INTO `user` VALUES ('741265891', 'szhszh', 'Z2000133000019');
|