-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.sql
69 lines (63 loc) · 2.61 KB
/
ext_tables.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
CREATE TABLE tx_recipes_domain_model_recipe
(
name VARCHAR(150) NOT NULL DEFAULT '',
slug VARCHAR(200) NOT NULL DEFAULT '',
description TEXT NOT NULL,
meta_title VARCHAR(150) NOT NULL,
meta_description VARCHAR(250) NOT NULL,
meta_keywords VARCHAR(250) NOT NULL,
images INT(11) UNSIGNED NOT NULL DEFAULT 0,
difficulty TINYINT(1) NOT NULL,
preparation_time TIME DEFAULT '00:00:00',
cooking_time TIME DEFAULT '00:00:00',
total_time TIME DEFAULT '00:00:00',
components INT(11) UNSIGNED NOT NULL DEFAULT 0,
portions TINYINT(2) UNSIGNED NOT NULL,
preparation TEXT NOT NULL,
steps INT(11) UNSIGNED NOT NULL DEFAULT 0,
nutritional_values INT(11) UNSIGNED NOT NULL DEFAULT 0,
tags INT(11) UNSIGNED NOT NULL DEFAULT 0,
categories INT(11) UNSIGNED NOT NULL DEFAULT 0
);
CREATE TABLE tx_recipes_domain_model_preparationstep
(
sorting INT(11) NOT NULL DEFAULT 0,
recipe INT(11) UNSIGNED NOT NULL DEFAULT 0,
name VARCHAR(150) NOT NULL,
description TEXT NOT NULL,
image INT(11) NOT NULL DEFAULT 0
);
CREATE TABLE tx_recipes_domain_model_component
(
sorting INT(11) NOT NULL DEFAULT 0,
recipe INT(11) UNSIGNED NOT NULL DEFAULT 0,
name VARCHAR(150) NOT NULL DEFAULT '',
ingredients INT(11) NOT NULL DEFAULT 0
);
CREATE TABLE tx_recipes_domain_model_ingredient
(
sorting INT(11) NOT NULL DEFAULT 0,
component INT(11) UNSIGNED NOT NULL DEFAULT 0,
type VARCHAR(200) NOT NULL,
unit VARCHAR(50) NOT NULL,
amount DECIMAL(5, 2) UNSIGNED NULL
);
CREATE TABLE tx_recipes_domain_model_nutritionalvalue
(
recipe INT(11) UNSIGNED NOT NULL DEFAULT 0,
nutrient VARCHAR(200) NOT NULL,
is_subsidiary TINYINT(1) NOT NULL,
unit VARCHAR(50) NOT NULL,
amount DECIMAL(5, 2) UNSIGNED NOT NULL
);
CREATE TABLE tx_recipes_domain_model_tag
(
name VARCHAR(100) NOT NULL,
slug VARCHAR(200) NOT NULL DEFAULT ''
);
CREATE TABLE tx_recipes_domain_model_recipe_2_tag
(
uid_local INT(10) UNSIGNED NOT NULL DEFAULT 0,
uid_foreign INT(10) UNSIGNED NOT NULL DEFAULT 0,
sorting INT(11) NOT NULL DEFAULT 0
);