Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 12, 2019 19:42
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/d0f7b3f3c465c19951c4e9fc56b5bd17 to your computer and use it in GitHub Desktop.
Save parzibyte/d0f7b3f3c465c19951c4e9fc56b5bd17 to your computer and use it in GitHub Desktop.
create database if not exists sistema_ventas;
use sistema_ventas;
create table if not exists productos(
id bigint unsigned not null auto_increment,
codigo varchar(255) not null,
descripcion varchar(255) not null,
precioCompra decimal(9, 2) not null,
precioVenta decimal(9, 2) not null,
existencia decimal(9, 2) not null,
primary key(id)
);
create table if not exists clientes(
id bigint unsigned not null auto_increment,
nombre varchar(255) not null,
correo varchar(255) not null,
primary key(id)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment