-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.sql
More file actions
60 lines (49 loc) · 2.21 KB
/
db.sql
File metadata and controls
60 lines (49 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 06-Nov-2018 às 20:29
-- Versão do servidor: 5.7.14
-- PHP Version: 7.2.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `libreatlas`
--
CREATE DATABASE IF NOT EXISTS `libreatlas` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
USE `libreatlas`;
-- --------------------------------------------------------
--
-- Estrutura da tabela `api_keys`
--
CREATE TABLE IF NOT EXISTS `api_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key id',
`key_string` varchar(32) COLLATE utf8_bin NOT NULL COMMENT 'key string',
`key_owner` text COLLATE utf8_bin COMMENT 'key owner (can be null)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='api key listing';
-- --------------------------------------------------------
--
-- Estrutura da tabela `markers`
--
CREATE TABLE IF NOT EXISTS `markers` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'marker id',
`latlng` text COLLATE utf8_bin COMMENT 'coordinates',
`facility` text COLLATE utf8_bin COMMENT 'marker facilty name',
`distribution` text COLLATE utf8_bin COMMENT 'distribution and version',
`event` text COLLATE utf8_bin COMMENT 'event',
`number_patients` int(11) DEFAULT NULL COMMENT 'number of patients',
`website` text COLLATE utf8_bin COMMENT 'website address',
`contacts` text COLLATE utf8_bin COMMENT 'support contacts',
`last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp of last update',
`disabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'if disabled, marker acts like "deleted" (but for compatibility reasons it is never removed)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='markers for the map';
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;