Git Product home page Git Product logo

epidemic_covid-19's People

Contributors

diangd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

epidemic_covid-19's Issues

city_info表格的sql语句中缺少了currentConfirmedCount列

# 数据库: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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.