First commit 31/12/2001
This commit is contained in:
58
sql/cr_pelis_tbl.sql
Normal file
58
sql/cr_pelis_tbl.sql
Normal file
@ -0,0 +1,58 @@
|
||||
# drop the "pelis" table if it exists, then recreate it
|
||||
|
||||
DROP TABLE IF EXISTS pelis;
|
||||
|
||||
CREATE TABLE pelis
|
||||
(
|
||||
# /********************\
|
||||
#|* Datos B<>sicos *|
|
||||
# \********************/
|
||||
id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
owner SMALLINT,
|
||||
Genero ENUM( "SIN CLASIFICAR",
|
||||
"Acci<EFBFBD>n",
|
||||
"Animaci<EFBFBD>n",
|
||||
"Aventuras",
|
||||
"B<EFBFBD>lica",
|
||||
"Biograf<EFBFBD>a",
|
||||
"Cat<EFBFBD>strofe",
|
||||
"C.Ficci<63>n",
|
||||
"Fant<EFBFBD>stico",
|
||||
"Cine Negro",
|
||||
"Comedia",
|
||||
"Dib.Animado",
|
||||
"Documental",
|
||||
"Drama",
|
||||
"Hist<EFBFBD>rica",
|
||||
"Intriga",
|
||||
"Musical",
|
||||
"Melodrama",
|
||||
"Oeste",
|
||||
"Terror",
|
||||
"Picantes"
|
||||
) DEFAULT "SIN CLASIFICAR",
|
||||
Status ENUM( "OK",
|
||||
"Para Alquilar",
|
||||
"Ripeando",
|
||||
"Por llegar"
|
||||
),
|
||||
Titulo VARCHAR(30) NOT NULL,
|
||||
FechaRip DATE,
|
||||
Duracion TIME,
|
||||
NumCDs SMALLINT DEFAULT '1',
|
||||
Comentarios TEXT,
|
||||
Imagen BLOB,
|
||||
filetype VARCHAR(50),
|
||||
imgH SMALLINT,
|
||||
imgW SMALLINT,
|
||||
|
||||
# /************************\
|
||||
#|* CLAVES PK, SK *|
|
||||
# \************************/
|
||||
|
||||
PRIMARY KEY (id),
|
||||
);
|
||||
|
||||
# Cargamos otros datos suministrados por defecto...
|
||||
# LOAD DATA LOCAL INFILE "pelis.txt" INTO TABLE personas;
|
||||
|
Reference in New Issue
Block a user