-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsalon.sql
141 lines (113 loc) · 3.42 KB
/
salon.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
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 14, 2021 at 05:11 PM
-- Server version: 10.3.27-MariaDB-0+deb10u1
-- PHP Version: 7.3.19-1~deb10u1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `salon`
--
-- --------------------------------------------------------
--
-- Table structure for table `buy`
--
CREATE TABLE `buy` (
`id` int(11) NOT NULL,
`id_car` text COLLATE utf8_polish_ci NOT NULL,
`name_buyer` text COLLATE utf8_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci;
--
-- Dumping data for table `buy`
--
INSERT INTO `buy` (`id`, `id_car`, `name_buyer`) VALUES
(1, '2', 'Jan Kowal'),
(2, '4', 'df');
-- --------------------------------------------------------
--
-- Table structure for table `car`
--
CREATE TABLE `car` (
`id` int(11) NOT NULL,
`producent` text COLLATE utf8_polish_ci NOT NULL,
`model` text COLLATE utf8_polish_ci NOT NULL,
`rok` text COLLATE utf8_polish_ci NOT NULL,
`przebieg` text COLLATE utf8_polish_ci NOT NULL,
`Cena_kupna` text COLLATE utf8_polish_ci NOT NULL,
`Cena_wynajmu` text COLLATE utf8_polish_ci NOT NULL,
`status` text COLLATE utf8_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci;
--
-- Dumping data for table `car`
--
INSERT INTO `car` (`id`, `producent`, `model`, `rok`, `przebieg`, `Cena_kupna`, `Cena_wynajmu`, `status`) VALUES
(1, 'Seat', 'Ibiza 6j', '2016', '140000', '20000', '600', 'wynajety'),
(2, 'Dacia', 'Duster', '2013', '12000', '15000', '500', 'wynajety'),
(3, 'BMW', 'e39', '2001', '300000', '10000', '200', 'wynajety'),
(4, 'Seat', 'Leon', '2015', '35000', '50000', '300', 'sprzedany');
-- --------------------------------------------------------
--
-- Table structure for table `rent`
--
CREATE TABLE `rent` (
`id` int(11) NOT NULL,
`id_car` int(11) NOT NULL,
`name_buyer` text COLLATE utf8_polish_ci NOT NULL,
`do_kiedy` text COLLATE utf8_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci;
--
-- Dumping data for table `rent`
--
INSERT INTO `rent` (`id`, `id_car`, `name_buyer`, `do_kiedy`) VALUES
(1, 2, 'Juzek', '14.04.2021 15:00:46'),
(2, 2, 'Ads', '14.04.2021 15:03:40'),
(3, 3, 'dsf', '14.04.2021 15:05:47'),
(4, 1, 'Jan', '14.05.2021 15:13:02');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `buy`
--
ALTER TABLE `buy`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `car`
--
ALTER TABLE `car`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `rent`
--
ALTER TABLE `rent`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `buy`
--
ALTER TABLE `buy`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `car`
--
ALTER TABLE `car`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `rent`
--
ALTER TABLE `rent`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;
/*!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 */;