-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sql
More file actions
20 lines (16 loc) · 702 Bytes
/
setup.sql
File metadata and controls
20 lines (16 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--Copyright (C) 2015 Kivanc Yazan
--See LICENSE file for more details about GNU General Public License.
CREATE DATABASE IF NOT EXISTS TwitterVotes
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_unicode_ci;
USE TwitterVotes;
CREATE TABLE IF NOT EXISTS `tweets` (
`TweetID` bigint(20) NOT NULL PRIMARY KEY,
`TweetText` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`TweetDT` datetime NOT NULL,
`TweetApp` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`UserID` bigint(20) NOT NULL,
`UserName` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`UserDT` datetime NOT NULL,
`Status` mediumtext COLLATE utf8mb4_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;