Skip to content

Simple show ticket management project, with connection to SQL database.

Notifications You must be signed in to change notification settings

mateusayres/e-tickets-shows-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Tickets-Shows-Project mateusayres-Java

Simple show ticket management project, with connection to SQL database.
To connect to the database, run the SQL Script Query below on your DBMS, and change the connection credentials.


Projeto de gerenciamento de ingressos para show simples, com conexão com banco de dados SQL.
Para conectar com o banco de dados, execute o SQL Script Query abaixo em seu SGBD, e altere as credenciais de conexão.

SQL Script:

CREATE DATABASE eticketsshows;
USE eticketsshows;

CREATE TABLE ingressos (
    id INT AUTO_INCREMENT PRIMARY KEY,
    nome VARCHAR(100) NOT NULL,
    tipo ENUM('Arquibancada', 'Pista', 'Camarote') NOT NULL,
    valor DECIMAL(10, 2) NOT NULL,
    pagamento ENUM('PIX', 'Cartão de Crédito', 'Boleto') NOT NULL
);

INSERT INTO ingressos (nome, tipo, valor, pagamento) VALUES
('Maria Silva', 'Arquibancada', 150.00, 'PIX'),
('Mateus Ayres', 'Camarote', 350.00, 'PIX'),
('João Pereira', 'Pista', 200.00, 'Cartão de Crédito'),
('Ana Costa', 'Camarote', 350.00, 'Boleto'),
('Carlos Souza', 'Arquibancada', 150.00, 'Boleto'),
('Paula Fernandes', 'Pista', 200.00, 'PIX'),
('Kauã Fonseca', 'Arquibancada', 150.00, 'Cartão de Crédito'),
('Miguel Oliveira', 'Camarote', 350.00, 'Cartão de Crédito');

Credentials:

src/
└── br/
    └── com/
        └── eticketsshows/
            └── controller/
                └── Conexao.java ⬅️

        // MySQL database connection URL, includes server address (localhost), port (3306),
        // The database name (eticketsshows) and a parameter to disable the use of SSL (useSSL=false)
        String url = "jdbc:mysql://localhost:3306/eticketsshows?useSSL=false"; ⬅️

        // Username to connect to the database
        String user = "root"; ⬅️

        // User password to connect to the database
        String password = "root"; ⬅️

Preview:

e-tickets-shows-print

About

Simple show ticket management project, with connection to SQL database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages