Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 18, 2019 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0bb39aa8d11852d3201a1a4cf4ae8466 to your computer and use it in GitHub Desktop.
Save parzibyte/0bb39aa8d11852d3201a1a4cf4ae8466 to your computer and use it in GitHub Desktop.
/*
Puedes copiar y pegar el contenido
de este script directamente en la consola
de MySQL
*/
CREATE DATABASE IF NOT EXISTS usuarios_login;
USE usuarios_login;
/* Luego crea la tabla de los usuarios */
CREATE TABLE IF NOT EXISTS usuarios(
id bigint unsigned not null auto_increment,
correo varchar(255) not null unique, /*UNIQUE para evitar la duplicidad de usuarios*/
palabra_secreta varchar(255) not null,
primary key(id)
);
/* Nota: no borres la siguiente línea en blanco */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment