-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 1 column, instead of 2. in line 6.
73 lines (73 loc) · 2.35 KB
/
db.csv
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
# Creating all tables
# ---------------------------------------------------------------
#
#
# Initializing constants
# ---------------------------------------------------------------
create constants: constant, value
insert constants: deliveryTime, 1
insert constants: reorderTime, 2
insert constants: machineChangeTime, 10000
#
#
# Initializing materials table
# ---------------------------------------------------------------
create materials: Material
insert materials: Holz
insert materials: Schrauben
insert materials: Farbe
insert materials: Karton
insert materials: Kissen
#
#
# Initializing storage rooms for materials
# ---------------------------------------------------------------
create matStorage: Material, currStock, maxStock
insert matStorage: Holz, 1000, 1000
insert matStorage: Schrauben, 5000, 5000
insert matStorage: Farbe, 1000, 1000
insert matStorage: Karton, 1000, 1000
insert matStorage: Kissen, 100, 100
#
#
# Initializing products table
# ---------------------------------------------------------------
create products: Product
insert products: Stuhl
insert products: Sofa
#
#
# Initializing machines
# ---------------------------------------------------------------
create machines: MachineType, amount
insert machines: HolzCNC, 1
insert machines: Montage, 1
insert machines: Lackierung, 1
insert machines: Verpackung, 1
#
#
# Initializing product machine time requirements
# ---------------------------------------------------------------
create timeRequirements: Product, !Machine, timeReq
insert timeRequirements: Sofa, HolzCNC, 30
insert timeRequirements: Sofa, Lackierung, 5
insert timeRequirements: Sofa, Montage, 15
insert timeRequirements: Sofa, Verpackung, 10
insert timeRequirements: Stuhl, HolzCNC, 10
insert timeRequirements: Stuhl, Montage, 5
insert timeRequirements: Stuhl, Lackierung, 2
insert timeRequirements: Stuhl, Verpackung, 5
#
#
# Initializing product material requirements
# ---------------------------------------------------------------
create matRequirements: Product, Material, matReq
insert matRequirements: Sofa, Holz, 4
insert matRequirements: Sofa, Schrauben, 5
insert matRequirements: Sofa, Kissen, 5
insert matRequirements: Sofa, Farbe, 1
insert matRequirements: Sofa, Karton, 5
insert matRequirements: Stuhl, Holz, 2
insert matRequirements: Stuhl, Schrauben, 10
insert matRequirements: Stuhl, Farbe, 2
insert matRequirements: Stuhl, Karton, 1