@@ -48,7 +48,7 @@ create table tbl_menu(
48
48
cd_prod int primary key auto_increment,
49
49
img_prod varchar (100 ) not null ,
50
50
nm_prod varchar (100 ) not null ,
51
- price_prod decimal (10 , 2 ) not null ,
51
+ price_prod decimal (12 , 2 ) not null ,
52
52
qntd_prod int not null ,
53
53
size varchar (110 ),
54
54
bonusDesc varchar (210 ),
@@ -58,6 +58,7 @@ create table tbl_menu(
58
58
FOREIGN KEY (cd_cat) REFERENCES tbl_category (cd_cat)
59
59
)DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
60
60
61
+
61
62
update tbl_menu set size = " Frappuccino de chocolate\nCroissant e Torada" where cd_prod = 24 ;
62
63
update tbl_menu set nm_prod = " Dunkin Donuts" where cd_prod = 14 ;
63
64
update tbl_menu set nm_prod = " Combo happy" where cd_prod = 24 ;
@@ -72,6 +73,14 @@ select * from tbl_menu;
72
73
73
74
DROP table tbl_menu;
74
75
76
+ create table tbl_shoppingcart (
77
+ cd_cart int primary key auto_increment,
78
+ email_user varchar (256 ) not null ,
79
+ cd_prod int not null ,
80
+ qt_prod int not null ,
81
+ FOREIGN KEY (cd_prod) REFERENCES tbl_menu (cd_prod)
82
+ )DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
83
+
75
84
create table tbl_purchase (
76
85
cd_purchase int primary key auto_increment,
77
86
cpf_user varchar (14 ),
@@ -119,8 +128,6 @@ create table tbl_partners(
119
128
descr_parc varchar(2000)
120
129
); */
121
130
122
-
123
-
124
131
/* ******************* Inserts ********************/
125
132
insert into tbl_category (nm_cat) values (" Café" );
126
133
insert into tbl_category (nm_cat) values (" Chocolate" );
0 commit comments