diangd / epidemic_covid-19 Goto Github PK
View Code? Open in Web Editor NEW一个简单的新冠疫情数据展示网站
一个简单的新冠疫情数据展示网站
# 数据库:MySQL
# 版本:8.0
drop table if exists `province_info`;
# 省份信息表
create table `province_info`
(
`locationId` int(11) not null,
`provinceName` varchar(255) null default null,
`provinceShortName` varchar(255) null default null,
`currentConfirmedCount` int(11) null default null,
`confirmedCount` int(11) null default null,
`suspectedCount` int(11) null default null,
`curedCount` int(11) null default null,
`deadCount` int(11) null default null,
`comment` varchar(255) null default null,
`statisticsData` varchar(255) null default null,
`modifyTime` timestamp null default now(),
primary key (`locationId`) using btree
) engine = InnoDB
default charset = utf8;
drop table if exists `city_info`;
# 城市信息表
create table `city_info`
(
`locationId` int(11) not null,
`currentConfirmedCount` int(11) not null,
`cityName` varchar(255) null default null,
`confirmedCount` int(11) null default null,
`suspectedCount` int(11) null default null,
`curedCount` int(11) null default null,
`deadCount` int(11) null default null,
`modifyTime` timestamp null default now(),
`provinceId` int(11) not null,
primary key (`locationId`) using btree
) engine = InnoDB
default charset = utf8;
drop table if exists `statistic_data`;
create table `statistic_data`
(
`id` int(11) not null auto_increment,
`confirmedCount` int(11) null default null,
`confirmedIncr` int(11) null default null,
`curedCount` int(11) null default null,
`curedIncr` int(11) null default null,
`currentConfirmedCount` int(11) null default null,
`currentConfirmedIncr` int(11) null default null,
`dateId` int(11) null default null,
`deadCount` int(11) null default null,
`deadIncr` int(11) null default null,
`provinceId` int(11) null default null,
primary key (`id`) using btree
) engine = InnoDB
default charset = utf8;
# 统计信息
drop table if exists `statistic`;
create table `statistic`
(
id int(11) not null,
createTime bigint(20) null default null,
modifyTime bigint(20) null default null,
confirmedCount int(11) null default null,
suspectedCount int(11) null default null,
curedCount int(11) null default null,
deadCount int(11) null default null,
seriousCount int(11) null default null,
suspectedIncr int(11) null default null,
confirmedIncr int(11) null default null,
curedIncr int(11) null default null,
deadIncr int(11) null default null,
seriousIncr int(11) null default null,
currentConfirmedCount int(11) null default null,
currentConfirmedIncr int(11) null default null,
primary key (`id`) using btree
) engine = InnoDB
default charset = utf8;
drop table if exists `global_statistics`;
create table `global_statistics`
(
id int(11) not null,
confirmedCount int(11) null default null,
curedCount int(11) null default null,
deadCount int(11) null default null,
confirmedIncr int(11) null default null,
curedIncr int(11) null default null,
deadIncr int(11) null default null,
currentConfirmedCount int(11) null default null,
currentConfirmedIncr int(11) null default null,
primary key (`id`) using btree
) engine = InnoDB
default charset = utf8;
# 时间线
drop table if exists `timeline`;
create table timeline
(
id int not null,
pubDate bigint null,
pubDateStr varchar(255) null,
title varchar(255) null,
summary varchar(255) null,
infoSource varchar(255) null,
sourceUrl varchar(255) null,
provinceId int null,
primary key (`id`) using btree
) engine = InnoDB
default charset = utf8;
drop table if exists `country_info`;
create table `country_info`
(
`locationId` int(11) not null,
`provinceName` varchar(255) null default null,
`provinceShortName` varchar(255) null default null,
`currentConfirmedCount` int(11) null default null,
`confirmedCount` int(11) null default null,
`suspectedCount` int(11) null default null,
`curedCount` int(11) null default null,
`deadCount` int(11) null default null,
`modifyTime` bigint(20) null default null,
`createTime` bigint(20) null default null,
`countryShortCode` varchar(255) null default null,
`countryType` int(2) null default null,
`continents` varchar(255) null default null,
primary key (`locationId`) using btree
) engine = InnoDB
default charset = utf8;
CREATE VIEW timeline_limit120 AS
SELECT *
FROM timeline
ORDER BY pubDate DESC
LIMIT 120;
SELECT *
FROM timeline_limit120;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.