-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb_dump.sql
More file actions
65 lines (53 loc) · 1.36 KB
/
db_dump.sql
File metadata and controls
65 lines (53 loc) · 1.36 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
61
62
63
64
65
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Czas generowania: 21 Lis 2017, 22:44
-- Wersja serwera: 5.6.35
-- Wersja PHP: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Baza danych: `menu`
--
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `orders`
--
CREATE TABLE `orders` (
`id` int(10) UNSIGNED NOT NULL,
`date_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`order_from` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT 'Zamówienie',
`user_id` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_german2_ci ROW_FORMAT=COMPACT;
--
-- Zrzut danych tabeli `orders`
--
INSERT INTO `orders` (`id`, `date_time`, `order_from`, `user_id`) VALUES
(47, '2017-11-20 23:00:00', 'Restaurant 1', 1);
--
-- Indeksy dla zrzutów tabel
--
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`),
ADD KEY `user` (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT dla tabeli `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;
--
-- Ograniczenia dla zrzutów tabel
--
--
-- Ograniczenia dla tabeli `orders`
--
ALTER TABLE `orders`
ADD CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);