-
Notifications
You must be signed in to change notification settings - Fork 1
/
welcometool.sql
144 lines (117 loc) · 3.28 KB
/
welcometool.sql
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Creato il: Dic 29, 2016 alle 22:30
-- Versione del server: 5.7.16-0ubuntu0.16.04.1
-- Versione PHP: 7.0.8-0ubuntu0.16.04.3
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: `welcometool`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `languages`
--
CREATE TABLE `languages` (
`iso` varchar(3) NOT NULL,
`name` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struttura della tabella `new_user`
--
CREATE TABLE `new_user` (
`user_id` bigint(20) NOT NULL,
`username` varchar(200) NOT NULL,
`registration_date` bigint(20) NOT NULL,
`first_edit_date` bigint(20) NOT NULL,
`first_edit_location` varchar(100) NOT NULL,
`first_changeset_id` bigint(20) NOT NULL,
`first_changeset_editor` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struttura della tabella `notes`
--
CREATE TABLE `notes` (
`nid` bigint(20) NOT NULL,
`uid` bigint(20) NOT NULL,
`timestamp` bigint(20) NOT NULL,
`author` varchar(200) NOT NULL,
`type` varchar(10) NOT NULL,
`note` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struttura della tabella `snippets`
--
CREATE TABLE `snippets` (
`id` int(11) NOT NULL,
`language` varchar(15) NOT NULL,
`part` varchar(15) NOT NULL,
`text` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struttura della tabella `welcome_user`
--
CREATE TABLE `welcome_user` (
`uid` bigint(20) NOT NULL,
`welcomed` tinyint(4) NOT NULL,
`welcomed_by` varchar(50) NOT NULL,
`welcomed_on` bigint(20) NOT NULL,
`answered` tinyint(4) NOT NULL,
`total_changesets` int(11) NULL,
`last_check` bigint(20) NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indici per le tabelle scaricate
--
--
-- Indici per le tabelle `languages`
--
ALTER TABLE `languages`
ADD PRIMARY KEY (`iso`);
--
-- Indici per le tabelle `new_user`
--
ALTER TABLE `new_user`
ADD PRIMARY KEY (`user_id`);
--
-- Indici per le tabelle `notes`
--
ALTER TABLE `notes`
ADD PRIMARY KEY (`nid`);
--
-- Indici per le tabelle `snippets`
--
ALTER TABLE `snippets`
ADD PRIMARY KEY (`id`);
--
-- Indici per le tabelle `welcome_user`
--
ALTER TABLE `welcome_user`
ADD PRIMARY KEY (`uid`);
--
-- AUTO_INCREMENT per le tabelle scaricate
--
--
-- AUTO_INCREMENT per la tabella `notes`
--
ALTER TABLE `notes`
MODIFY `nid` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT per la tabella `snippets`
--
ALTER TABLE `snippets`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
/*!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 */;