-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.sql
44 lines (42 loc) · 1.06 KB
/
db.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
USE test;
DROP TABLE IF EXISTS parts;
CREATE TABLE parts
(
id int(10) PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(100) NOT NULL,
required BIT DEFAULT false NOT NULL,
quantity int(7) NOT NULL
)
ENGINE=InnoDB
DEFAULT CHARSET = utf8 COLLATE = utf8_general_ci;
CREATE UNIQUE INDEX parts_title_uindex ON parts (title);
INSERT INTO `parts` (`title`,`required`,`quantity`)
VALUES
("Motherboard", 1, 10),
("Sound card", 0, 5),
("Processor", 1, 7),
("Case lighting", 0, 3),
("HDD", 0, 8),
("SSD", 1, 6),
("Case", 1, 15),
("Memory", 1, 12),
("Video card", 0, 10),
("Computer cooling", 1, 5),
("DVD/CD drive", 0, 11),
("BD drive", 0, 2),
("Mouse", 0, 12),
("Keyboard", 0, 9),
("Speakers", 0, 2),
("Scanner", 0, 0),
("Printer", 0, 1),
("Monitor", 0, 6),
("Headphones", 0, 17),
("Power cable", 1, 14),
("Power supply", 1, 8),
("Microphone", 0, 0),
("Card reader", 0, 0),
("Network adapter", 0, 5),
("USB-hub", 0, 7),
("Webcam", 0, 5),
("Router", 0, 11),
("TV tuner", 0, 0);