Skip to content

Commit 7c4cc56

Browse files
committed
CREATE LINK IN LAYOUT CFCFunc FOR CADASTRAR PROD
1 parent 121ac86 commit 7c4cc56

File tree

9 files changed

+111
-1
lines changed

9 files changed

+111
-1
lines changed

.vs/CoffeeForCode/v16/.suo

34 KB
Binary file not shown.
Binary file not shown.

CoffeeForCode/Views/Shared/_CFCfunc.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
</a>
174174
</li>
175175
<li>
176-
<a href="CadastrarProd">
176+
<a href="Categoria">
177177
<span class="icon"><i class="fa fa-inbox" aria-hidden="true" style=" color:#fff6e5; font-size:2em;padding-top: 26%;"></i></span>
178178
<span class="title" style="color:#fff6e5;font:bold 1.3em comic Sans MS; padding-top: 7%;">Produtos</span>
179179
</a>

CoffeeForCode/bin/CoffeeForCode.dll

0 Bytes
Binary file not shown.

CoffeeForCode/bin/CoffeeForCode.pdb

0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

cfc_script.sql

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
-- MySQL Workbench Synchronization
2+
-- Generated: 2021-03-7 23:20
3+
-- Model: Coffee For Code
4+
-- Version: 1.1
5+
-- Project: Sync with restAPI by SystemStrength
6+
-- Author: SystemStrength
7+
8+
/****** Comandos abaixo devem ser utilizados apenas em conexao direta com a api ******/
9+
drop database heroku_88863b9257990d2;
10+
11+
create database `heroku_88863b9257990d2` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci ;
12+
13+
14+
use heroku_88863b9257990d2;
15+
16+
/****** Para test local utilizar os comandos a baixo ******/
17+
create database `db_cfc` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci ;
18+
use db_cfc;
19+
/**********************************************************************************/
20+
21+
create table tbl_account(
22+
id_user int primary key auto_increment,
23+
email varchar(256) not null,
24+
nm_user varchar(60) not null,
25+
rg_user varchar(12) not null,
26+
phone_user VARCHAR(15),
27+
password varchar(256) not null,
28+
partner BIT
29+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
30+
31+
create table tbl_category(
32+
cd_cat int primary key auto_increment,
33+
nm_cat varchar(50) not null
34+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
35+
36+
create table tbl_menu(
37+
cd_prod int primary key auto_increment,
38+
img_prod mediumblob not null,
39+
nm_prod varchar(50) not null,
40+
price_prod decimal(10, 2) not null,
41+
qntd_prod int not null,
42+
cat_prod varchar(50) not null,
43+
date_prod date
44+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
45+
46+
insert into tbl_menu (nm_prod, price_prod, cat_prod, qntd_prod, img_prod) values ( "Expresso", "5.00", "Café", "1", "/expresso.jpg");
47+
48+
49+
create table tbl_purchase(
50+
cd_purchase int primary key auto_increment,
51+
cpf_user varchar(14),
52+
address_user varchar(50),
53+
HomeNumber_user varchar(40),
54+
apt_block_user varchar(10),
55+
PayFormat_user varchar(20) not null
56+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
57+
58+
create table tbl_WorkWithUS(
59+
cd_user int not null primary key auto_increment,
60+
nm_user varchar(50) not null,
61+
phone_user varchar(20) not null,
62+
email_user varchar(40) not null
63+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
64+
65+
66+
create table tbl_manager(
67+
nm_manager varchar(50) not null,
68+
cpf_manager varchar(14) not null,
69+
password_manager varchar(12) primary key not null
70+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
71+
72+
create table tbl_employees(
73+
id_employees int primary key auto_increment,
74+
nm_employees varchar(50) not null,
75+
cg_employees varchar(50) not null,
76+
email_employees varchar(40) not null,
77+
cpf_employees varchar(14) not null,
78+
addres_employees varchar(50) not null,
79+
phone_employees varchar(15) not null
80+
) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
81+
82+
/*
83+
create table tbl_partners(
84+
cd_parc int not null primary key auto_increment,
85+
nm_parc varchar(50) not null,
86+
empresa_parc varchar(50) not null,
87+
cnpj_parc varchar(17) not null,
88+
email_parc varchar(40) not null,
89+
site_parc varchar(40),
90+
end_parc varchar(50),
91+
tel_parc varchar(30) not null,
92+
redeSocial_parc varchar(40),
93+
descr_parc varchar(2000)
94+
); */
95+
96+
97+
98+
/******************** Inserts ********************/
99+
insert into tbl_category (nm_cat) values ("Café");
100+
insert into tbl_category (nm_cat) values ("Chocolate");
101+
insert into tbl_category (nm_cat) values ("MilkShake");
102+
insert into tbl_category (nm_cat) values ("Sanduíche");
103+
insert into tbl_category (nm_cat) values ("Cookies");
104+
insert into tbl_category (nm_cat) values ("Hambúrguer");
105+
106+
/******************** Selects ********************/
107+
select * from tbl_account;
108+
select * from tbl_employees;
109+
select * from tbl_menu;
110+
select * from tbl_category;

0 commit comments

Comments
 (0)