-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sql
More file actions
executable file
·51 lines (45 loc) · 2.5 KB
/
Copy pathtest.sql
File metadata and controls
executable file
·51 lines (45 loc) · 2.5 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
-- --------------------------------------------------------
-- Host: localhost
-- Server Version: 5.5.52 - SUSE MySQL package
-- Server Betriebssystem: Linux
-- HeidiSQL Version: 8.3.0.4771
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Exportiere Struktur von Tabelle test.travel
CREATE TABLE IF NOT EXISTS `travel` (
`travel_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`name` varchar(50) DEFAULT NULL,
`description` mediumtext,
`pictures` mediumint(9) DEFAULT NULL,
`locations` mediumint(9) DEFAULT NULL,
PRIMARY KEY (`travel_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- Exportiere Daten aus Tabelle test.travel: ~1 rows (ungefähr)
/*!40000 ALTER TABLE `travel` DISABLE KEYS */;
INSERT INTO `travel` (`travel_id`, `user_id`, `name`, `description`, `pictures`, `locations`) VALUES
(1, 1, 'Spanien - Juhuuu', 'super gel', NULL, NULL);
/*!40000 ALTER TABLE `travel` ENABLE KEYS */;
-- Exportiere Struktur von Tabelle test.users
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`passwort` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`vorname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`nachname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Exportiere Daten aus Tabelle test.users: ~1 rows (ungefähr)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `email`, `passwort`, `vorname`, `nachname`, `created_at`, `updated_at`) VALUES
(1, 'witt.torsten@googlemail.com', '$2y$10$Lrc8rLsWs0RJvN0cWTD1IOlrNACHUX5my2GBkQhs02oors5r6kaay', 'Torste', 'Witt', '2016-10-10 14:56:10', NULL);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;