Git Product home page Git Product logo

tecnow's Introduction

Tecnow

Plataforma de eventos do universo Geek: Jogos e Animes, onde os participantes do evento podem se cadastrar e cadastrar seus animes e jogos favoritos. CRUD de usuários, animes e jogos, autenticação, autorização, permissão utilizando a linguagem Java, Spring MVC, Hibernate e Java Serves Pages(JSP) com páginas estilizadas através da framework Materialize.

Utilização

Neste exemplo, a utilização é do banco de dados MySQL. Para editar as configurações do banco de dados MySQL, acesse a classe br.com.tecnow.dao.jdbc.FabricaDeConexoes e configure.

Criar o banco de dados

CREATE SCHEMA tecnow;

Colocá-lo em uso

USE tecnow;

Criar a tabela de usuarios

CREATE TABLE usuario ( id BIGINT PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(60) NOT NULL, data_nascimento DATE NOT NULL, sexo ENUM('FEMININO', 'MASCULINO') NOT NULL, email VARCHAR(120) NOT NULL UNIQUE, senha VARCHAR(32) NOT NULL );

Criar a tabela de animes

CREATE TABLE anime ( id BIGINT PRIMARY KEY AUTO_INCREMENT, Nome VARCHAR(40) NOT NULL, data_cadastro DATE, id_usuario BIGINT ); ALTER TABLE anime ADD FOREIGN KEY(id_usuario) REFERENCES usuario (id);

Criar a tabela de jogos

CREATE TABLE jogo ( id BIGINT PRIMARY KEY AUTO_INCREMENT, Nome VARCHAR(40) NOT NULL, Categoria ENUM('TIRO', 'RPG', 'PLATAFORMA', 'ESPORTE', 'HACK_AND_SLASH', 'OUTRO') NOT NULL, data_cadastro DATE, id_usuario BIGINT ); ALTER TABLE jogo ADD FOREIGN KEY(id_usuario) REFERENCES usuario (id);

tecnow's People

Contributors

camiladiniz 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.