Giter Site home page Giter Site logo

aulas-renan's Introduction

aulas-renan

Ensinando o Renan a programar em php

Ensinando o que é o README.md

É a página aberta do Github.

Integrando com o Brackets.

é assim que funciona.

Criei o inicio do index.

fdasklfdjsaklfsda

SQL - tabela: usuarios

CREATE TABLE IF NOT EXISTS `usuarios` (
  `idUsuario` int(11) NOT NULL AUTO_INCREMENT,
  `nome` varchar(512) NOT NULL,
  `sobrenome` varchar(512) NOT NULL,
  `login` varchar(512) NOT NULL,
  `senha` varchar(512) NOT NULL,
  `cpf` varchar(512) NOT NULL,
  `endereco` varchar(512) DEFAULT NULL,
  `celular` varchar(512) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`idUsuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `animes` (
  `idAnime` int(11) NOT NULL AUTO_INCREMENT,
  `titulo` varchar(512) NOT NULL,
  `ano` varchar(512) NOT NULL,
  `autor` varchar(512) NOT NULL,
  `editora` varchar(512) NOT NULL,
  `status` int(1) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`idAnime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `animes_ref_genero` (
  `idAnimeRefGenero` int(11) NOT NULL AUTO_INCREMENT,
  `idAnime` int(11) NOT NULL,
  `idGenero` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`idAnimeRefGenero`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `genero` (
  `idGenero` int(11) NOT NULL AUTO_INCREMENT,
  `nomeGenero` varchar(512) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`idGenero`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;




CREATE TABLE IF NOT EXISTS `perguntas` (
  `idPergunta` int(11) NOT NULL AUTO_INCREMENT,
  `status` int(11) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idCriador` int(11) DEFAULT NULL,
  `pergunta` varchar(1024) NOT NULL,
  `respostaCorreta` int(11) NOT NULL,
  PRIMARY KEY (`idPergunta`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;



CREATE TABLE IF NOT EXISTS `participantes` (
  `idParticipante` int(11) NOT NULL AUTO_INCREMENT,
  `nome` varchar(512) NOT NULL,
  `setor` varchar(512) NOT NULL,
  `cargo` varchar(512) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `prova` int(11) DEFAULT NULL,
  PRIMARY KEY (`idParticipante`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;



-- Estrutura da tabela `provas_respondidas`
--

CREATE TABLE `provas_respondidas` (
  `idProva` int(11) NOT NULL,
  `nome` varchar(512) NOT NULL,
  `respostasCorretas` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `dataCriacao` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `provas_respondidas`
--
ALTER TABLE `provas_respondidas`
  ADD PRIMARY KEY (`idProva`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `provas_respondidas`
--
ALTER TABLE `provas_respondidas`
  MODIFY `idProva` int(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

aulas-renan's People

Contributors

renan-nobrega avatar ruizuikeda avatar

Watchers

James Cloos avatar  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.