-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcours_php.sql
More file actions
78 lines (64 loc) · 2.42 KB
/
cours_php.sql
File metadata and controls
78 lines (64 loc) · 2.42 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
66
67
68
69
70
71
72
73
74
75
76
77
78
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 28, 2021 at 06:38 AM
-- Server version: 8.0.24
-- PHP Version: 8.0.3
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: `cours_php`
--
-- --------------------------------------------------------
--
-- Table structure for table `produits`
--
CREATE TABLE `produits` (
`id_produit` int NOT NULL,
`nom` varchar(250) COLLATE utf8mb4_general_ci NOT NULL,
`description` longtext COLLATE utf8mb4_general_ci NOT NULL,
`prix` decimal(10,2) NOT NULL DEFAULT '2.00',
`deleted_at` datetime DEFAULT NULL,
`type` varchar(5) COLLATE utf8mb4_general_ci NOT NULL,
`etat` varchar(12) COLLATE utf8mb4_general_ci NOT NULL,
`categorie` varchar(50) COLLATE utf8mb4_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `produits`
--
INSERT INTO `produits` (`id_produit`, `nom`, `description`, `prix`, `deleted_at`, `type`, `etat`, `categorie`) VALUES
(1, 'Ma tarte au citron', 'Très bon produit', '2.50', '2021-02-17 09:36:33', 'froid', 'disponible', 'fruit'),
(2, 'Tarte citron 3', '', '2999.00', NULL, 'chaud', 'indisponible', ''),
(3, 'Ma tarte à la fraise', 'Une bonne tarte', '3.65', NULL, 'froid', 'indisponible', ''),
(4, 'Ma tarte aux pommes', 'Encore un produit pour l\'armateur', '3.65', NULL, 'froid', 'disponible', 'légume'),
(5, 'Ma tarte aux framboises', 'Un produit savoureux', '5.60', NULL, '', '', ''),
(6, 'test', 'test', '0.03', NULL, '', '', ''),
(7, 'Chausson aux pommes', 'En promo', '2999.00', NULL, '', '', ''),
(8, 'test', 'TGRGRG', '34.00', NULL, '', '', '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `produits`
--
ALTER TABLE `produits`
ADD PRIMARY KEY (`id_produit`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `produits`
--
ALTER TABLE `produits`
MODIFY `id_produit` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
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 */;