Skip to content

Instantly share code, notes, and snippets.

@ricardosiri68
Created October 18, 2013 19:54
Show Gist options
  • Save ricardosiri68/7047246 to your computer and use it in GitHub Desktop.
Save ricardosiri68/7047246 to your computer and use it in GitHub Desktop.
hola a todos, estoy haciendo un trabajo practico donde tengo que armar una web de ventas de articulos donde se deben hacer los casos de usos mas dificiles por asi decirlo. para hacer el buscador, primero deberia de poder cargar los articulos, y para cargar los articulos antes deberia de organizar bien el tema de categorias y caracteristicas el a…
CREATE TABLE categorias
(
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
'nombre' VARCHAR(255) UNIQUE NOT NULL
);
CREATE TABLE subcategorias
(
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
'categoria_id' INT(11) NOT NULL REFERENCES categoria(id),
'nombre' VARCHAR(255) UNIQUE NOT NULL
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment