GithubHelp home page GithubHelp logo

app_de_vendas_mercado's Introduction

Ta tudo torto, mas so pra mostrar o que vai precisar mesmo.

Requisitos :

Banco: MySQL, 
Server up: WampServer pra por o servidor do banco MySql on na máquina local
Banco Management: MySQLWorkBench pra mexer mais bonitinho com o sql
IDE: Netbeans 8.2 pra rodar o projeto.
--
Dentro no netbeans nas bibliotecas coloca esses 2 jars ( libs )
Libs( *bibliotecas* ) : 
	mysql-connector-java-8.0.29.jar ( conexao com o banco ) 
	rs2xml.jar ( mexer com as tabelas )

Banco de dados : Executa um por um no MySQLWorkBench

create database mercadoGod character set utf8 collate utf8_general_ci;

use mercadoGod;

create table prodtable(
	productid int primary key auto_increment,
	prodname varchar(50) not null unique,
	prodval varchar(10) not null,
	prodamount int default 1,
	prodprice decimal(5,2) not null,
	prodvalue decimal(5,2) not null
)charset=utf8 engine=InnoDB;


create table clitable(
	idclient int primary key auto_increment,
	clientname varchar(50) not null,
	clientfone varchar(12) not null,
	climessage varchar(200),
	totprice decimal(5,2) default 0
)charset=utf8 engine=InnoDB;


create table saletable(
	idsale int primary key auto_increment,
	saledate timestamp default current_timestamp,
	saleprice decimal(5,2) not null,
	idclient int not null,
	foreign key(idclient) references mercadogod.clitable(idclient)
)charset=utf8 engine=InnoDB;


create table temptable(
	idvenda int primary key auto_increment,
	productid int not null,
	prodquant int not null,
	foreign key(productid) references mercadogod.prodtable(productid)
)charset=utf8 engine=InnoDB;

create table saletabletrue(
	idvenda int primary key auto_increment,
	prodmount int,
	prodlucro decimal(5,2) not null,
	prodreal decimal(5,2) not null,
	selldate timestamp default current_timestamp,
	productid int not null,
	foreign key(productid) references mercadogod.prodtable(productid)
)charset=utf8 engine=InnoDB;

app_de_vendas_mercado's People

Contributors

r0bertwell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.