Sunteți pe pagina 1din 95

Sybase PowerDesigner

Physical Data Model Report


Model: cine_max Report:

Author: Usuario Version: Date: 10/11/2011 Summary:

Physical Data Model cine_max

Report

Table of Contents
The 'Table of Contents' field needs to be updated!

Sybase PowerDesigner

10/11/2011

Page 2 of 95

Physical Data Model

cine_max

I Specifications
Include specifications here...

II Model information
II.1Card of the model cine_max
Name Code Comment DBMS Database cine_max CINE_MAX MySQL 5.0 <None>

IIIPDM Diagrams
III.1Model level diagrams
III.1.1Diagram Diagram_1
turnos salas pel icula cod_peli nombre_p artista_p sinopsis_p duracion text <pk> text text text time cod_s ci_empleado nombre_s capa_s encargado_s text <pk> text <fk> text int text FK_OFRECE FK_PERMANECE FK_ADMITE FK_T IENE cartelera cod_cart cod_s cod_peli cod_turno cod_p cod_sala hora_funcion fecha_carte text text text text text text text date <pk> <fk2> <fk1> <fk3> empleado ci_empleado cod_turno nombre apellido direccion text <pk> text <fk> text text text FK_GENERA FK_INCLUYE FK_EMIT E FK_CONDUCE FK_CONTIENE reservaciones cod_cart emisor_re cod_cliente monto_trans cod_reser cod_cart2 ci_empleado ci_client text text text float(8,2) text text text text cod_turno text <pk> nombre_empl text hora_limit time

FK_POSEE

boletos cod _bo text <pk> nombre_bo text precio_bo float(8,2)

vent_boleto cod_vent cod _bo cod_cart ci_empleado cod__cart cod_bole emisor hora_impresion cd_reser text text text text text text text time text <pk> <fk1> <fk2> <fk3>

<pk> <fk3> <fk2> <fk1>

FK_HACE cliente nombre_cliente apellido_clien ci_client dir_client tlf_clien text text text <pk> text text

PowerDesigner

10/11/2011

Page 3

Physical Data Model

cine_max

IVPhysical diagrams objects


IV.1References
IV.1.1Model level references IV.1.1.1Reference list
Name hace conduce contiene genera emite tiene admite posee permanece incluye ofrece Code HACE CONDUCE CONTIENE GENERA EMITE TIENE ADMITE POSEE PERMANECE INCLUYE OFRECE Parent Table cliente boletos cartelera empleado empleado pelicula salas turnos empleado cartelera turnos Child Table reservaciones vent_boleto vent_boleto reservaciones vent_boleto cartelera cartelera empleado salas reservaciones cartelera

IV.1.1.2Reference admite
IV.1.1.2.1Card of the reference admite
Name Code Parent Table Child Table admite ADMITE salas cartelera

IV.1.1.2.2Code preview of admite


alter table CARTELERA add constraint FK_ADMITE foreign key (COD_S) references SALAS (COD_S) on delete restrict on update restrict;

IV.1.1.2.3List of diagrams containing reference admite


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.2.4Reference join list for reference admite


Parent Table Column cod_s
PowerDesigner

Child Table Column cod_s


10/11/2011 Page 4

Physical Data Model

cine_max

IV.1.1.2.5Extended Attribute List of reference admite


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.3Reference conduce
IV.1.1.3.1Card of the reference conduce
Name Code Parent Table Child Table conduce CONDUCE boletos vent_boleto

IV.1.1.3.2Code preview of conduce


alter table VENT_BOLETO add constraint FK_CONDUCE foreign key (COD__BO) references BOLETOS (COD__BO) on delete restrict on update restrict;

IV.1.1.3.3List of diagrams containing reference conduce


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.3.4Reference join list for reference conduce


Parent Table Column cod _bo cod _bo Child Table Column

IV.1.1.3.5Extended Attribute List of reference conduce


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.4Reference contiene
IV.1.1.4.1Card of the reference contiene
Name Code Parent Table Child Table contiene CONTIENE cartelera vent_boleto

PowerDesigner

10/11/2011

Page 5

Physical Data Model

cine_max

IV.1.1.4.2Code preview of contiene


alter table VENT_BOLETO add constraint FK_CONTIENE foreign key (COD_CART) references CARTELERA (COD_CART) on delete restrict on update restrict;

IV.1.1.4.3List of diagrams containing reference contiene


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.4.4Reference join list for reference contiene


Parent Table Column cod_cart cod_cart Child Table Column

IV.1.1.4.5Extended Attribute List of reference contiene


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.5Reference emite
IV.1.1.5.1Card of the reference emite
Name Code Parent Table Child Table emite EMITE empleado vent_boleto

IV.1.1.5.2Code preview of emite


alter table VENT_BOLETO add constraint FK_EMITE foreign key (CI_EMPLEADO) references EMPLEADO (CI_EMPLEADO) on delete restrict on update restrict;

IV.1.1.5.3List of diagrams containing reference emite


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.5.4Reference join list for reference emite


Parent Table Column ci_empleado ci_empleado Child Table Column

IV.1.1.5.5Extended Attribute List of reference emite

PowerDesigner

10/11/2011

Page 6

Physical Data Model

cine_max

Name ReferenceMatch

Data Type ReferenceMatchT ype

Value

Target Name MySQL 5.0

IV.1.1.6Reference genera
IV.1.1.6.1Card of the reference genera
Name Code Parent Table Child Table genera GENERA empleado reservaciones

IV.1.1.6.2Code preview of genera


alter table RESERVACIONES add constraint FK_GENERA foreign key (CI_EMPLEADO) references EMPLEADO (CI_EMPLEADO) on delete restrict on update restrict;

IV.1.1.6.3List of diagrams containing reference genera


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.6.4Reference join list for reference genera


Parent Table Column ci_empleado ci_empleado Child Table Column

IV.1.1.6.5Extended Attribute List of reference genera


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.7Reference hace
IV.1.1.7.1Card of the reference hace
Name Code Parent Table Child Table hace HACE cliente reservaciones

IV.1.1.7.2Code preview of hace


alter table RESERVACIONES add constraint FK_HACE foreign key (CI_CLIENT)

PowerDesigner

10/11/2011

Page 7

Physical Data Model references CLIENTE (CI_CLIENT) on delete restrict on update restrict;

cine_max

IV.1.1.7.3List of diagrams containing reference hace


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.7.4Reference join list for reference hace


Parent Table Column ci_client ci_client Child Table Column

IV.1.1.7.5Extended Attribute List of reference hace


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.8Reference incluye
IV.1.1.8.1Card of the reference incluye
Name Code Parent Table Child Table incluye INCLUYE cartelera reservaciones

IV.1.1.8.2Code preview of incluye


alter table RESERVACIONES add constraint FK_INCLUYE foreign key (COD_CART) references CARTELERA (COD_CART) on delete restrict on update restrict;

IV.1.1.8.3List of diagrams containing reference incluye


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.8.4Reference join list for reference incluye


Parent Table Column cod_cart cod_cart2 Child Table Column

IV.1.1.8.5Extended Attribute List of reference incluye


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 8

Physical Data Model

cine_max

IV.1.1.9Reference ofrece
IV.1.1.9.1Card of the reference ofrece
Name Code Parent Table Child Table ofrece OFRECE turnos cartelera

IV.1.1.9.2Code preview of ofrece


alter table CARTELERA add constraint FK_OFRECE foreign key (COD_TURNO) references TURNOS (COD_TURNO) on delete restrict on update restrict;

IV.1.1.9.3List of diagrams containing reference ofrece


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.9.4Reference join list for reference ofrece


Parent Table Column cod_turno cod_turno Child Table Column

IV.1.1.9.5Extended Attribute List of reference ofrece


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.10Reference permanece
IV.1.1.10.1Card of the reference permanece
Name Code Parent Table Child Table permanece PERMANECE empleado salas

IV.1.1.10.2Code preview of permanece


alter table SALAS add constraint FK_PERMANECE foreign key (CI_EMPLEADO) references EMPLEADO (CI_EMPLEADO) on delete restrict on update restrict;

IV.1.1.10.3List of diagrams containing reference permanece


PowerDesigner 10/11/2011 Page 9

Physical Data Model

cine_max

Name Diagram_1 DIAGRAM_1

Code

IV.1.1.10.4Reference join list for reference permanece


Parent Table Column ci_empleado ci_empleado Child Table Column

IV.1.1.10.5Extended Attribute List of reference permanece


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.1.1.11Reference posee
IV.1.1.11.1Card of the reference posee
Name Code Parent Table Child Table posee POSEE turnos empleado

IV.1.1.11.2Code preview of posee


alter table EMPLEADO add constraint FK_POSEE foreign key (COD_TURNO) references TURNOS (COD_TURNO) on delete restrict on update restrict;

IV.1.1.11.3List of diagrams containing reference posee


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.11.4Reference join list for reference posee


Parent Table Column cod_turno cod_turno Child Table Column

IV.1.1.11.5Extended Attribute List of reference posee


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 10

Physical Data Model

cine_max

IV.1.1.12Reference tiene
IV.1.1.12.1Card of the reference tiene
Name Code Parent Table Child Table tiene TIENE pelicula cartelera

IV.1.1.12.2Code preview of tiene


alter table CARTELERA add constraint FK_TIENE foreign key (COD_PELI) references PELICULA (COD_PELI) on delete restrict on update restrict;

IV.1.1.12.3List of diagrams containing reference tiene


Name Diagram_1 DIAGRAM_1 Code

IV.1.1.12.4Reference join list for reference tiene


Parent Table Column cod_peli cod_peli Child Table Column

IV.1.1.12.5Extended Attribute List of reference tiene


Name ReferenceMatch Data Type ReferenceMatchT ype Value Target Name MySQL 5.0

IV.2Tables
IV.2.1Model level tables IV.2.1.1Table list
Name pelicula empleado salas boletos vent_boleto turnos reservaciones cliente cartelera PELICULA EMPLEADO SALAS BOLETOS VENT_BOLETO TURNOS RESERVACIONES CLIENTE CARTELERA Code

PowerDesigner

10/11/2011

Page 11

Physical Data Model

cine_max

IV.2.1.2Table columns list


Name cod_peli nombre_p artista_p sinopsis_p duracion ci_empleado cod_turno nombre apellido direccion cod_s ci_empleado nombre_s capa_s encargado_s cod _bo nombre_bo precio_bo cod_vent cod _bo cod_cart ci_empleado cod__cart cod_bole emisor hora_impresion cd_reser cod_turno nombre_empl hora_limit cod_cart emisor_re cod_cliente monto_trans cod_reser cod_cart2 ci_empleado ci_client nombre_cliente apellido_clien ci_client dir_client Code COD_PELI NOMBRE_P ARTISTA_P SINOPSIS DURACION CI_EMPLEADO COD_TURNO NOMBRE APELLIDO DIRECCION COD_S CI_EMPLEADO NOMBRE_S CAPA_S ENCARGADO_S COD__BO NOMBRE_BO PRECIO_BO COD_VENT COD__BO COD_CART CI_EMPLEADO COD__CART COD_BOLETO EMISOR HORA_IMPRESION CD_RESER COD_TURNO NOMBRE_EMPL HORA_LIMIT CARTELERA EMISOR_RE COD_CLIENTE MONTO_TRANS COD_RESER COD_CART CI_EMPLEADO CI_CLIENT NOMBRE_CLIENTE APELLIDO_CLIEN CI_CLIENT DIR_CLIENT

PowerDesigner

10/11/2011

Page 12

Physical Data Model

cine_max

tlf_clien cod_cart cod_s cod_peli cod_turno cod_p cod_sala hora_funcion fecha_carte

TLF_CLIEN COD_CART COD_S COD_PELI COD_TURNO COD_P COD_SALA HORA_FUNCION FECHA_CARTE

IV.2.1.3Table keys list


Name Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Code IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 IDENTIFIER_1 Table pelicula empleado salas boletos vent_boleto turnos reservaciones cliente cartelera

IV.2.1.4Table indexes list


Name PELICULA_P K EMPLEADO_ PK POSEE_FK SALAS_PK PERMANECE _FK BOLETOS_PK VENT_BOLET O_PK CONDUCE_F K CONTIENE_F K Code PELICULA_PK EMPLEADO_P K POSEE_FK SALAS_PK PERMANECE_ FK BOLETOS_PK VENT_BOLET O_PK CONDUCE_FK CONTIENE_FK Uniqu e TRU E TRU E FALS E TRU E FALS E TRU E TRU E FALS E FALS E Cluste r FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E Prima ry TRU E TRU E FALS E TRU E FALS E TRU E TRU E FALS E FALS E Forei gn Key FALS E FALS E TRU E FALS E TRU E FALS E FALS E TRU E TRU E Altern ate Key FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E Table pelicula empleado empleado salas salas boletos vent_boleto vent_boleto vent_boleto

PowerDesigner

10/11/2011

Page 13

Physical Data Model

cine_max

EMITE_FK TURNOS_PK RESERVACIO NES_PK HACE_FK GENERA_FK INCLUYE_FK CLIENTE_PK CARTELERA_ PK TIENE_FK ADMITE_FK OFRECE_FK

EMITE_FK TURNOS_PK RESERVACIO NES_PK HACE_FK GENERA_FK INCLUYE_FK CLIENTE_PK CARTELERA_ PK TIENE_FK ADMITE_FK OFRECE_FK

FALS E TRU E TRU E FALS E FALS E FALS E TRU E TRU E FALS E FALS E FALS E

FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E

FALS E TRU E TRU E FALS E FALS E FALS E TRU E TRU E FALS E FALS E FALS E

TRU E FALS E FALS E TRU E TRU E TRU E FALS E FALS E TRU E TRU E TRU E

FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E FALS E

vent_boleto turnos reservaciones reservaciones reservaciones reservaciones cliente cartelera cartelera cartelera cartelera

IV.2.1.5Table boletos
IV.2.1.5.1Card of the table boletos
Name Code DBMS boletos BOLETOS MySQL 5.0

IV.2.1.5.2Constraint name of table boletos


TK_BOLETOS

IV.2.1.5.3Server check expression of table boletos


%RULES%

IV.2.1.5.4Code preview of boletos


drop index BOLETOS_PK on BOLETOS; drop table if exists BOLETOS; /*==============================================================*/ /* Table: BOLETOS */ /*==============================================================*/ create table BOLETOS (

PowerDesigner

10/11/2011

Page 14

Physical Data Model COD__BO text not null, NOMBRE_BO text, PRECIO_BO float(8,2), primary key (COD__BO) ); /*==============================================================*/ /* Index: BOLETOS_PK */ /*==============================================================*/ create unique index BOLETOS_PK on BOLETOS ( COD__BO );

cine_max

IV.2.1.5.5List of diagrams containing table boletos


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.5.6Reference to list of the table boletos


Name conduce CONDUCE Code

IV.2.1.5.7Dependent Object list of table boletos


Name conduce CONDUCE Code Class Name Reference

IV.2.1.5.8Extended Attribute list of table boletos


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.5.9Column list of the table boletos


Name cod _bo nombre_bo precio_bo COD__BO NOMBRE_BO PRECIO_BO Code

IV.2.1.5.10Column cod _bo of table boletos


IV.2.1.5.10.1Card of the column cod _bo of the table boletos

Name Code Data Type

cod _bo COD__BO text

PowerDesigner

10/11/2011

Page 15

Physical Data Model

cine_max

Mandatory

TRUE

IV.2.1.5.10.2Constraint name of column cod _bo of table boletos


CK_COD__BO

IV.2.1.5.10.3Standard check of column cod _bo of table boletos

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.5.10.4Server check expression of column cod _bo of table boletos


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.5.10.5Dependent Object list of column cod _bo

Name <Unknown> cod _bo Identifier_1 <Unknown> COD__BO IDENTIFIER_1

Code

Class Name Reference Join Index Column Key

IV.2.1.5.10.6Extended Attribute List of column cod _bo

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.5.11Column nombre_bo of table boletos


IV.2.1.5.11.1Card of the column nombre_bo of the table boletos

Name Code Data Type Mandatory

nombre_bo NOMBRE_BO text FALSE

IV.2.1.5.11.2Constraint name of column nombre_bo of table boletos

PowerDesigner

10/11/2011

Page 16

Physical Data Model CK_NOMBRE_BO

cine_max

IV.2.1.5.11.3Standard check of column nombre_bo of table boletos

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.5.11.4Server check expression of column nombre_bo of table boletos


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.5.11.5Extended Attribute List of column nombre_bo

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.5.12Column precio_bo of table boletos


IV.2.1.5.12.1Card of the column precio_bo of the table boletos

Name Code Data Type Mandatory

precio_bo PRECIO_BO float(8,2) FALSE

IV.2.1.5.12.2Constraint name of column precio_bo of table boletos


CK_PRECIO_BO

IV.2.1.5.12.3Standard check of column precio_bo of table boletos

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify

FALSE FALSE FALSE

PowerDesigner

10/11/2011

Page 17

Physical Data Model

cine_max

List of Values
IV.2.1.5.12.4Server check expression of column precio_bo of table boletos
%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.5.12.5Extended Attribute List of column precio_bo

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.5.13Key list of the table boletos


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.5.14Key Identifier_1 of table boletos


IV.2.1.5.14.1Card of the key Identifier_1 of the table boletos

Name Code Table

Identifier_1 IDENTIFIER_1 boletos

IV.2.1.5.14.2Code preview of Identifier_1


alter table BOLETOS drop primary key;

IV.2.1.5.14.3Column list of the key Identifier_1

Name cod _bo COD__BO

Code

IV.2.1.5.14.4Dependent Object list of key Identifier_1

Name BOLETOS_PK conduce BOLETOS_PK CONDUCE

Code

Class Name Index Reference

IV.2.1.5.14.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 18

Physical Data Model

cine_max

IV.2.1.5.15Index list of the table boletos


Name BOLETOS_PK Code BOLETOS_PK Unique TRUE Cluster FALSE Primary TRUE Foreign Key FALSE Alternate Key FALSE

IV.2.1.5.16Index BOLETOS_PK of table boletos


IV.2.1.5.16.1Card of the index BOLETOS_PK of the table boletos

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

BOLETOS_PK BOLETOS_PK TRUE FALSE TRUE FALSE FALSE boletos

IV.2.1.5.16.2Code preview of BOLETOS_PK


drop index BOLETOS_PK on BOLETOS; /*==============================================================*/ /* Index: BOLETOS_PK */ /*==============================================================*/ create unique index BOLETOS_PK on BOLETOS ( COD__BO );

IV.2.1.5.16.3Column list of the index BOLETOS_PK

Name cod _bo COD__BO

Code

Sort Ascending

IV.2.1.5.16.4Extended Attribute List of index BOLETOS_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.6Table cartelera
IV.2.1.6.1Card of the table cartelera
Name Code DBMS cartelera CARTELERA MySQL 5.0

PowerDesigner

10/11/2011

Page 19

Physical Data Model

cine_max

IV.2.1.6.2Constraint name of table cartelera


TK_CARTELERA

IV.2.1.6.3Server check expression of table cartelera


%RULES%

IV.2.1.6.4Code preview of cartelera


drop index OFRECE_FK on CARTELERA; drop index ADMITE_FK on CARTELERA; drop index TIENE_FK on CARTELERA; drop index CARTELERA_PK on CARTELERA; drop table if exists CARTELERA; /*==============================================================*/ /* Table: CARTELERA */ /*==============================================================*/ create table CARTELERA ( COD_CART text not null, COD_S text not null, COD_PELI text not null, COD_TURNO text not null, COD_P text, COD_SALA text, HORA_FUNCION text, FECHA_CARTE date, primary key (COD_CART) ); /*==============================================================*/ /* Index: CARTELERA_PK */ /*==============================================================*/ create unique index CARTELERA_PK on CARTELERA ( COD_CART ); /*==============================================================*/ /* Index: TIENE_FK */ /*==============================================================*/ create index TIENE_FK on CARTELERA ( COD_PELI ); /*==============================================================*/ /* Index: ADMITE_FK */ /*==============================================================*/ create index ADMITE_FK on CARTELERA (

PowerDesigner

10/11/2011

Page 20

Physical Data Model COD_S ); /*==============================================================*/ /* Index: OFRECE_FK */ /*==============================================================*/ create index OFRECE_FK on CARTELERA ( COD_TURNO ); alter table CARTELERA add constraint FK_ADMITE foreign key (COD_S) references SALAS (COD_S) on delete restrict on update restrict; alter table CARTELERA add constraint FK_OFRECE foreign key (COD_TURNO) references TURNOS (COD_TURNO) on delete restrict on update restrict; alter table CARTELERA add constraint FK_TIENE foreign key (COD_PELI) references PELICULA (COD_PELI) on delete restrict on update restrict;

cine_max

IV.2.1.6.5List of diagrams containing table cartelera


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.6.6Reference to list of the table cartelera


Name contiene incluye CONTIENE INCLUYE Code

IV.2.1.6.7Reference from list of the table cartelera


Name tiene admite ofrece TIENE ADMITE OFRECE Code Foreign Key Columns cod_peli cod_s cod_turno

IV.2.1.6.8Dependent Object list of table cartelera


Name contiene incluye tiene admite ofrece CONTIENE INCLUYE TIENE ADMITE OFRECE Code Class Name Reference Reference Reference Reference Reference

IV.2.1.6.9Extended Attribute list of table cartelera


Name
PowerDesigner

Data Type

Value
10/11/2011

Target Name
Page 21

Physical Data Model

cine_max

Temporary

(Boolean)

false

MySQL 5.0

IV.2.1.6.10Column list of the table cartelera


Name cod_cart cod_s cod_peli cod_turno cod_p cod_sala hora_funcion fecha_carte COD_CART COD_S COD_PELI COD_TURNO COD_P COD_SALA HORA_FUNCION FECHA_CARTE Code

IV.2.1.6.11Column cod_cart of table cartelera


IV.2.1.6.11.1Card of the column cod_cart of the table cartelera

Name Code Data Type Mandatory

cod_cart COD_CART text TRUE

IV.2.1.6.11.2Constraint name of column cod_cart of table cartelera


CK_COD_CART

IV.2.1.6.11.3Standard check of column cod_cart of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.11.4Server check expression of column cod_cart of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.11.5Dependent Object list of column cod_cart

Name <Unknown> <Unknown> cod_cart


PowerDesigner

Code <Unknown> <Unknown> COD_CART


10/11/2011

Class Name Reference Join Reference Join Index Column


Page 22

Physical Data Model

cine_max

Identifier_1

IDENTIFIER_1

Key

IV.2.1.6.11.6Extended Attribute List of column cod_cart

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.6.12Column cod_s of table cartelera


IV.2.1.6.12.1Card of the column cod_s of the table cartelera

Name Code Data Type Mandatory

cod_s COD_S text TRUE

IV.2.1.6.12.2Constraint name of column cod_s of table cartelera


CK_COD_S

IV.2.1.6.12.3Standard check of column cod_s of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.12.4Server check expression of column cod_s of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.12.5Dependent Object list of column cod_s

Name <Unknown> cod_s <Unknown> COD_S

Code

Class Name Reference Join Index Column

IV.2.1.6.12.6Extended Attribute List of column cod_s

Name

Data Type

Value

Target Name

PowerDesigner

10/11/2011

Page 23

Physical Data Model

cine_max

CharSet Collate National Unsigned ZeroFill

CharSets (String) (Boolean) (Boolean) (Boolean)

false false false

MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.6.13Column cod_peli of table cartelera


IV.2.1.6.13.1Card of the column cod_peli of the table cartelera

Name Code Data Type Mandatory

cod_peli COD_PELI text TRUE

IV.2.1.6.13.2Constraint name of column cod_peli of table cartelera


CK_COD_PELI

IV.2.1.6.13.3Standard check of column cod_peli of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.13.4Server check expression of column cod_peli of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.13.5Dependent Object list of column cod_peli

Name <Unknown> cod_peli <Unknown> COD_PELI

Code

Class Name Reference Join Index Column

IV.2.1.6.13.6Extended Attribute List of column cod_peli

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

PowerDesigner

10/11/2011

Page 24

Physical Data Model

cine_max

IV.2.1.6.14Column cod_turno of table cartelera


IV.2.1.6.14.1Card of the column cod_turno of the table cartelera

Name Code Data Type Mandatory

cod_turno COD_TURNO text TRUE

IV.2.1.6.14.2Constraint name of column cod_turno of table cartelera


CK_COD_TURNO

IV.2.1.6.14.3Standard check of column cod_turno of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.14.4Server check expression of column cod_turno of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.14.5Dependent Object list of column cod_turno

Name <Unknown> cod_turno <Unknown> COD_TURNO

Code

Class Name Reference Join Index Column

IV.2.1.6.14.6Extended Attribute List of column cod_turno

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.6.15Column cod_p of table cartelera


IV.2.1.6.15.1Card of the column cod_p of the table cartelera

PowerDesigner

10/11/2011

Page 25

Physical Data Model

cine_max

Name Code Data Type Mandatory

cod_p COD_P text FALSE

IV.2.1.6.15.2Constraint name of column cod_p of table cartelera


CK_COD_P

IV.2.1.6.15.3Standard check of column cod_p of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.15.4Server check expression of column cod_p of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.15.5Extended Attribute List of column cod_p

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.6.16Column cod_sala of table cartelera


IV.2.1.6.16.1Card of the column cod_sala of the table cartelera

Name Code Data Type Mandatory

cod_sala COD_SALA text FALSE

IV.2.1.6.16.2Constraint name of column cod_sala of table cartelera


CK_COD_SALA

IV.2.1.6.16.3Standard check of column cod_sala of table cartelera

Minimum Value

PowerDesigner

10/11/2011

Page 26

Physical Data Model

cine_max

Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.16.4Server check expression of column cod_sala of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.16.5Extended Attribute List of column cod_sala

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.6.17Column hora_funcion of table cartelera


IV.2.1.6.17.1Card of the column hora_funcion of the table cartelera

Name Code Data Type Mandatory

hora_funcion HORA_FUNCION text FALSE

IV.2.1.6.17.2Constraint name of column hora_funcion of table cartelera


CK_HORA_FUNCION

IV.2.1.6.17.3Standard check of column hora_funcion of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.17.4Server check expression of column hora_funcion of table cartelera

PowerDesigner

10/11/2011

Page 27

Physical Data Model %MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

cine_max

IV.2.1.6.17.5Extended Attribute List of column hora_funcion

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.6.18Column fecha_carte of table cartelera


IV.2.1.6.18.1Card of the column fecha_carte of the table cartelera

Name Code Data Type Mandatory

fecha_carte FECHA_CARTE date FALSE

IV.2.1.6.18.2Constraint name of column fecha_carte of table cartelera


CK_FECHA_CARTE

IV.2.1.6.18.3Standard check of column fecha_carte of table cartelera

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.6.18.4Server check expression of column fecha_carte of table cartelera


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.6.18.5Extended Attribute List of column fecha_carte

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

PowerDesigner

10/11/2011

Page 28

Physical Data Model

cine_max

IV.2.1.6.19Key list of the table cartelera


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.6.20Key Identifier_1 of table cartelera


IV.2.1.6.20.1Card of the key Identifier_1 of the table cartelera

Name Code Table

Identifier_1 IDENTIFIER_1 cartelera

IV.2.1.6.20.2Code preview of Identifier_1


alter table CARTELERA drop primary key;

IV.2.1.6.20.3Column list of the key Identifier_1

Name cod_cart COD_CART

Code

IV.2.1.6.20.4Dependent Object list of key Identifier_1

Name CARTELERA_PK contiene incluye

Code CARTELERA_PK CONTIENE INCLUYE

Class Name Index Reference Reference

IV.2.1.6.20.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.6.21Index list of the table cartelera


Name CARTELERA_ PK TIENE_FK ADMITE_FK OFRECE_FK Code CARTELERA_P K TIENE_FK ADMITE_FK OFRECE_FK Unique TRUE FALSE FALSE FALSE Cluster FALSE FALSE FALSE FALSE Primary TRUE FALSE FALSE FALSE Foreign Key FALSE TRUE TRUE TRUE Alternate Key FALSE FALSE FALSE FALSE

IV.2.1.6.22Index CARTELERA_PK of table cartelera

PowerDesigner

10/11/2011

Page 29

Physical Data Model

cine_max

IV.2.1.6.22.1Card of the index CARTELERA_PK of the table cartelera

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

CARTELERA_PK CARTELERA_PK TRUE FALSE TRUE FALSE FALSE cartelera

IV.2.1.6.22.2Code preview of CARTELERA_PK


drop index CARTELERA_PK on CARTELERA; /*==============================================================*/ /* Index: CARTELERA_PK */ /*==============================================================*/ create unique index CARTELERA_PK on CARTELERA ( COD_CART );

IV.2.1.6.22.3Column list of the index CARTELERA_PK

Name cod_cart COD_CART

Code

Sort Ascending

IV.2.1.6.22.4Extended Attribute List of index CARTELERA_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.6.23Index TIENE_FK of table cartelera


IV.2.1.6.23.1Card of the index TIENE_FK of the table cartelera

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

TIENE_FK TIENE_FK FALSE FALSE FALSE TRUE FALSE cartelera

IV.2.1.6.23.2Code preview of TIENE_FK


drop index TIENE_FK on CARTELERA;

PowerDesigner

10/11/2011

Page 30

Physical Data Model

cine_max

/*==============================================================*/ /* Index: TIENE_FK */ /*==============================================================*/ create index TIENE_FK on CARTELERA ( COD_PELI );

IV.2.1.6.23.3Column list of the index TIENE_FK

Name cod_peli COD_PELI

Code

Sort Ascending

IV.2.1.6.23.4Extended Attribute List of index TIENE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.6.24Index ADMITE_FK of table cartelera


IV.2.1.6.24.1Card of the index ADMITE_FK of the table cartelera

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

ADMITE_FK ADMITE_FK FALSE FALSE FALSE TRUE FALSE cartelera

IV.2.1.6.24.2Code preview of ADMITE_FK


drop index ADMITE_FK on CARTELERA; /*==============================================================*/ /* Index: ADMITE_FK */ /*==============================================================*/ create index ADMITE_FK on CARTELERA ( COD_S );

IV.2.1.6.24.3Column list of the index ADMITE_FK

Name cod_s COD_S

Code

Sort Ascending

PowerDesigner

10/11/2011

Page 31

Physical Data Model

cine_max

IV.2.1.6.24.4Extended Attribute List of index ADMITE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.6.25Index OFRECE_FK of table cartelera


IV.2.1.6.25.1Card of the index OFRECE_FK of the table cartelera

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

OFRECE_FK OFRECE_FK FALSE FALSE FALSE TRUE FALSE cartelera

IV.2.1.6.25.2Code preview of OFRECE_FK


drop index OFRECE_FK on CARTELERA; /*==============================================================*/ /* Index: OFRECE_FK */ /*==============================================================*/ create index OFRECE_FK on CARTELERA ( COD_TURNO );

IV.2.1.6.25.3Column list of the index OFRECE_FK

Name cod_turno COD_TURNO

Code

Sort Ascending

IV.2.1.6.25.4Extended Attribute List of index OFRECE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.7Table cliente
IV.2.1.7.1Card of the table cliente
Name Code DBMS cliente CLIENTE MySQL 5.0

PowerDesigner

10/11/2011

Page 32

Physical Data Model

cine_max

IV.2.1.7.2Constraint name of table cliente


TK_CLIENTE

IV.2.1.7.3Server check expression of table cliente


%RULES%

IV.2.1.7.4Code preview of cliente


drop index CLIENTE_PK on CLIENTE; drop table if exists CLIENTE; /*==============================================================*/ /* Table: CLIENTE */ /*==============================================================*/ create table CLIENTE ( NOMBRE_CLIENTE text, APELLIDO_CLIEN text, CI_CLIENT text not null, DIR_CLIENT text, TLF_CLIEN text, primary key (CI_CLIENT) ); /*==============================================================*/ /* Index: CLIENTE_PK */ /*==============================================================*/ create unique index CLIENTE_PK on CLIENTE ( CI_CLIENT );

IV.2.1.7.5List of diagrams containing table cliente


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.7.6Reference to list of the table cliente


Name hace HACE Code

IV.2.1.7.7Dependent Object list of table cliente


Name hace HACE Code Class Name Reference

IV.2.1.7.8Extended Attribute list of table cliente


Name Data Type Value Target Name

PowerDesigner

10/11/2011

Page 33

Physical Data Model

cine_max

Temporary

(Boolean)

false

MySQL 5.0

IV.2.1.7.9Column list of the table cliente


Name nombre_cliente apellido_clien ci_client dir_client tlf_clien Code NOMBRE_CLIENTE APELLIDO_CLIEN CI_CLIENT DIR_CLIENT TLF_CLIEN

IV.2.1.7.10Column nombre_cliente of table cliente


IV.2.1.7.10.1Card of the column nombre_cliente of the table cliente

Name Code Data Type Mandatory

nombre_cliente NOMBRE_CLIENTE text FALSE

IV.2.1.7.10.2Constraint name of column nombre_cliente of table cliente


CK_NOMBRE_CLIENTE

IV.2.1.7.10.3Standard check of column nombre_cliente of table cliente

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.7.10.4Server check expression of column nombre_cliente of table cliente


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.7.10.5Extended Attribute List of column nombre_cliente

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

PowerDesigner

10/11/2011

Page 34

Physical Data Model

cine_max

IV.2.1.7.11Column apellido_clien of table cliente


IV.2.1.7.11.1Card of the column apellido_clien of the table cliente

Name Code Data Type Mandatory

apellido_clien APELLIDO_CLIEN text FALSE

IV.2.1.7.11.2Constraint name of column apellido_clien of table cliente


CK_APELLIDO_CLIEN

IV.2.1.7.11.3Standard check of column apellido_clien of table cliente

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.7.11.4Server check expression of column apellido_clien of table cliente


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.7.11.5Extended Attribute List of column apellido_clien

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.7.12Column ci_client of table cliente


IV.2.1.7.12.1Card of the column ci_client of the table cliente

Name Code Data Type Mandatory

ci_client CI_CLIENT text TRUE

IV.2.1.7.12.2Constraint name of column ci_client of table cliente


CK_CI_CLIENT

PowerDesigner

10/11/2011

Page 35

Physical Data Model

cine_max

IV.2.1.7.12.3Standard check of column ci_client of table cliente

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.7.12.4Server check expression of column ci_client of table cliente


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.7.12.5Dependent Object list of column ci_client

Name <Unknown> ci_client Identifier_1 <Unknown> CI_CLIENT IDENTIFIER_1

Code

Class Name Reference Join Index Column Key

IV.2.1.7.12.6Extended Attribute List of column ci_client

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.7.13Column dir_client of table cliente


IV.2.1.7.13.1Card of the column dir_client of the table cliente

Name Code Data Type Mandatory

dir_client DIR_CLIENT text FALSE

IV.2.1.7.13.2Constraint name of column dir_client of table cliente


CK_DIR_CLIENT

IV.2.1.7.13.3Standard check of column dir_client of table cliente

Minimum Value Maximum Value Default Value


PowerDesigner 10/11/2011 Page 36

Physical Data Model

cine_max

Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.7.13.4Server check expression of column dir_client of table cliente


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.7.13.5Extended Attribute List of column dir_client

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.7.14Column tlf_clien of table cliente


IV.2.1.7.14.1Card of the column tlf_clien of the table cliente

Name Code Data Type Mandatory

tlf_clien TLF_CLIEN text FALSE

IV.2.1.7.14.2Constraint name of column tlf_clien of table cliente


CK_TLF_CLIEN

IV.2.1.7.14.3Standard check of column tlf_clien of table cliente

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.7.14.4Server check expression of column tlf_clien of table cliente


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

PowerDesigner

10/11/2011

Page 37

Physical Data Model

cine_max

IV.2.1.7.14.5Extended Attribute List of column tlf_clien

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.7.15Key list of the table cliente


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.7.16Key Identifier_1 of table cliente


IV.2.1.7.16.1Card of the key Identifier_1 of the table cliente

Name Code Table

Identifier_1 IDENTIFIER_1 cliente

IV.2.1.7.16.2Code preview of Identifier_1


alter table CLIENTE drop primary key;

IV.2.1.7.16.3Column list of the key Identifier_1

Name ci_client CI_CLIENT

Code

IV.2.1.7.16.4Dependent Object list of key Identifier_1

Name CLIENTE_PK hace CLIENTE_PK HACE

Code

Class Name Index Reference

IV.2.1.7.16.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.7.17Index list of the table cliente


Name CLIENTE_PK Code CLIENTE_PK Unique TRUE Cluster FALSE Primary TRUE Foreign Key FALSE Alternate Key FALSE

PowerDesigner

10/11/2011

Page 38

Physical Data Model

cine_max

IV.2.1.7.18Index CLIENTE_PK of table cliente


IV.2.1.7.18.1Card of the index CLIENTE_PK of the table cliente

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

CLIENTE_PK CLIENTE_PK TRUE FALSE TRUE FALSE FALSE cliente

IV.2.1.7.18.2Code preview of CLIENTE_PK


drop index CLIENTE_PK on CLIENTE; /*==============================================================*/ /* Index: CLIENTE_PK */ /*==============================================================*/ create unique index CLIENTE_PK on CLIENTE ( CI_CLIENT );

IV.2.1.7.18.3Column list of the index CLIENTE_PK

Name ci_client CI_CLIENT

Code

Sort Ascending

IV.2.1.7.18.4Extended Attribute List of index CLIENTE_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.8Table empleado
IV.2.1.8.1Card of the table empleado
Name Code DBMS empleado EMPLEADO MySQL 5.0

IV.2.1.8.2Constraint name of table empleado


TK_EMPLEADO

PowerDesigner

10/11/2011

Page 39

Physical Data Model

cine_max

IV.2.1.8.3Server check expression of table empleado


%RULES%

IV.2.1.8.4Code preview of empleado


drop index POSEE_FK on EMPLEADO; drop index EMPLEADO_PK on EMPLEADO; drop table if exists EMPLEADO; /*==============================================================*/ /* Table: EMPLEADO */ /*==============================================================*/ create table EMPLEADO ( CI_EMPLEADO text not null, COD_TURNO text not null, NOMBRE text, APELLIDO text, DIRECCION text, primary key (CI_EMPLEADO) ); /*==============================================================*/ /* Index: EMPLEADO_PK */ /*==============================================================*/ create unique index EMPLEADO_PK on EMPLEADO ( CI_EMPLEADO ); /*==============================================================*/ /* Index: POSEE_FK */ /*==============================================================*/ create index POSEE_FK on EMPLEADO ( COD_TURNO ); alter table EMPLEADO add constraint FK_POSEE foreign key (COD_TURNO) references TURNOS (COD_TURNO) on delete restrict on update restrict;

IV.2.1.8.5List of diagrams containing table empleado


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.8.6Reference to list of the table empleado


Name genera emite GENERA EMITE Code

PowerDesigner

10/11/2011

Page 40

Physical Data Model

cine_max

permanece

PERMANECE

IV.2.1.8.7Reference from list of the table empleado


Name posee POSEE Code Foreign Key Columns cod_turno

IV.2.1.8.8Dependent Object list of table empleado


Name genera emite permanece posee GENERA EMITE PERMANECE POSEE Code Class Name Reference Reference Reference Reference

IV.2.1.8.9Extended Attribute list of table empleado


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.8.10Column list of the table empleado


Name ci_empleado cod_turno nombre apellido direccion CI_EMPLEADO COD_TURNO NOMBRE APELLIDO DIRECCION Code

IV.2.1.8.11Column ci_empleado of table empleado


IV.2.1.8.11.1Card of the column ci_empleado of the table empleado

Name Code Data Type Mandatory

ci_empleado CI_EMPLEADO text TRUE

IV.2.1.8.11.2Constraint name of column ci_empleado of table empleado


CK_CI_EMPLEADO

IV.2.1.8.11.3Standard check of column ci_empleado of table empleado

Minimum Value Maximum Value Default Value Unit


PowerDesigner 10/11/2011 Page 41

Physical Data Model

cine_max

Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.8.11.4Server check expression of column ci_empleado of table empleado


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.8.11.5Dependent Object list of column ci_empleado

Name <Unknown> <Unknown> <Unknown> ci_empleado Identifier_1

Code <Unknown> <Unknown> <Unknown> CI_EMPLEADO IDENTIFIER_1

Class Name Reference Join Reference Join Reference Join Index Column Key

IV.2.1.8.11.6Extended Attribute List of column ci_empleado

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.8.12Column cod_turno of table empleado


IV.2.1.8.12.1Card of the column cod_turno of the table empleado

Name Code Data Type Mandatory

cod_turno COD_TURNO text TRUE

IV.2.1.8.12.2Constraint name of column cod_turno of table empleado


CK_COD_TURNO

IV.2.1.8.12.3Standard check of column cod_turno of table empleado

Minimum Value Maximum Value Default Value Unit Format Uppercase

FALSE

PowerDesigner

10/11/2011

Page 42

Physical Data Model

cine_max

Lowercase Cannot Modify List of Values

FALSE FALSE

IV.2.1.8.12.4Server check expression of column cod_turno of table empleado


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.8.12.5Dependent Object list of column cod_turno

Name <Unknown> cod_turno <Unknown> COD_TURNO

Code

Class Name Reference Join Index Column

IV.2.1.8.12.6Extended Attribute List of column cod_turno

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.8.13Column nombre of table empleado


IV.2.1.8.13.1Card of the column nombre of the table empleado

Name Code Data Type Mandatory

nombre NOMBRE text FALSE

IV.2.1.8.13.2Constraint name of column nombre of table empleado


CK_NOMBRE

IV.2.1.8.13.3Standard check of column nombre of table empleado

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

PowerDesigner

10/11/2011

Page 43

Physical Data Model

cine_max

IV.2.1.8.13.4Server check expression of column nombre of table empleado


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.8.13.5Extended Attribute List of column nombre

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.8.14Column apellido of table empleado


IV.2.1.8.14.1Card of the column apellido of the table empleado

Name Code Data Type Mandatory

apellido APELLIDO text FALSE

IV.2.1.8.14.2Constraint name of column apellido of table empleado


CK_APELLIDO

IV.2.1.8.14.3Standard check of column apellido of table empleado

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.8.14.4Server check expression of column apellido of table empleado


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.8.14.5Extended Attribute List of column apellido

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

PowerDesigner

10/11/2011

Page 44

Physical Data Model

cine_max

IV.2.1.8.15Column direccion of table empleado


IV.2.1.8.15.1Card of the column direccion of the table empleado

Name Code Data Type Mandatory

direccion DIRECCION text FALSE

IV.2.1.8.15.2Constraint name of column direccion of table empleado


CK_DIRECCION

IV.2.1.8.15.3Standard check of column direccion of table empleado

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.8.15.4Server check expression of column direccion of table empleado


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.8.15.5Extended Attribute List of column direccion

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.8.16Key list of the table empleado


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.8.17Key Identifier_1 of table empleado


IV.2.1.8.17.1Card of the key Identifier_1 of the table empleado

Name Code

Identifier_1 IDENTIFIER_1

PowerDesigner

10/11/2011

Page 45

Physical Data Model

cine_max

Table

empleado

IV.2.1.8.17.2Code preview of Identifier_1


alter table EMPLEADO drop primary key;

IV.2.1.8.17.3Column list of the key Identifier_1

Name ci_empleado

Code CI_EMPLEADO

IV.2.1.8.17.4Dependent Object list of key Identifier_1

Name EMPLEADO_PK genera emite permanece

Code EMPLEADO_PK GENERA EMITE PERMANECE

Class Name Index Reference Reference Reference

IV.2.1.8.17.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.8.18Index list of the table empleado


Name EMPLEADO_P K POSEE_FK Code EMPLEADO_PK POSEE_FK Unique TRUE FALSE Cluster FALSE FALSE Primary TRUE FALSE Foreign Key FALSE TRUE Alternate Key FALSE FALSE

IV.2.1.8.19Index EMPLEADO_PK of table empleado


IV.2.1.8.19.1Card of the index EMPLEADO_PK of the table empleado

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

EMPLEADO_PK EMPLEADO_PK TRUE FALSE TRUE FALSE FALSE empleado

IV.2.1.8.19.2Code preview of EMPLEADO_PK


PowerDesigner 10/11/2011 Page 46

Physical Data Model drop index EMPLEADO_PK on EMPLEADO; /*==============================================================*/ /* Index: EMPLEADO_PK */ /*==============================================================*/ create unique index EMPLEADO_PK on EMPLEADO ( CI_EMPLEADO );

cine_max

IV.2.1.8.19.3Column list of the index EMPLEADO_PK

Name ci_empleado

Code CI_EMPLEADO

Sort Ascending

IV.2.1.8.19.4Extended Attribute List of index EMPLEADO_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.8.20Index POSEE_FK of table empleado


IV.2.1.8.20.1Card of the index POSEE_FK of the table empleado

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

POSEE_FK POSEE_FK FALSE FALSE FALSE TRUE FALSE empleado

IV.2.1.8.20.2Code preview of POSEE_FK


drop index POSEE_FK on EMPLEADO; /*==============================================================*/ /* Index: POSEE_FK */ /*==============================================================*/ create index POSEE_FK on EMPLEADO ( COD_TURNO );

IV.2.1.8.20.3Column list of the index POSEE_FK

Name cod_turno COD_TURNO

Code

Sort Ascending

PowerDesigner

10/11/2011

Page 47

Physical Data Model

cine_max

IV.2.1.8.20.4Extended Attribute List of index POSEE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.9Table pelicula
IV.2.1.9.1Card of the table pelicula
Name Code DBMS pelicula PELICULA MySQL 5.0

IV.2.1.9.2Constraint name of table pelicula


TK_PELICULA

IV.2.1.9.3Server check expression of table pelicula


%RULES%

IV.2.1.9.4Code preview of pelicula


drop index PELICULA_PK on PELICULA; drop table if exists PELICULA; /*==============================================================*/ /* Table: PELICULA */ /*==============================================================*/ create table PELICULA ( COD_PELI text not null, NOMBRE_P text, ARTISTA_P text, SINOPSIS text, DURACION time, primary key (COD_PELI) ); /*==============================================================*/ /* Index: PELICULA_PK */ /*==============================================================*/ create unique index PELICULA_PK on PELICULA ( COD_PELI );

IV.2.1.9.5List of diagrams containing table pelicula


Name Diagram_1 DIAGRAM_1 Code

PowerDesigner

10/11/2011

Page 48

Physical Data Model

cine_max

IV.2.1.9.6Reference to list of the table pelicula


Name tiene TIENE Code

IV.2.1.9.7Dependent Object list of table pelicula


Name tiene TIENE Code Class Name Reference

IV.2.1.9.8Extended Attribute list of table pelicula


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.9.9Column list of the table pelicula


Name cod_peli nombre_p artista_p sinopsis_p duracion COD_PELI NOMBRE_P ARTISTA_P SINOPSIS DURACION Code

IV.2.1.9.10Column cod_peli of table pelicula


IV.2.1.9.10.1Card of the column cod_peli of the table pelicula

Name Code Data Type Mandatory

cod_peli COD_PELI text TRUE

IV.2.1.9.10.2Constraint name of column cod_peli of table pelicula


CK_COD_PELI

IV.2.1.9.10.3Standard check of column cod_peli of table pelicula

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

PowerDesigner

10/11/2011

Page 49

Physical Data Model

cine_max

IV.2.1.9.10.4Server check expression of column cod_peli of table pelicula


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.9.10.5Dependent Object list of column cod_peli

Name <Unknown> cod_peli Identifier_1 <Unknown> COD_PELI IDENTIFIER_1

Code

Class Name Reference Join Index Column Key

IV.2.1.9.10.6Extended Attribute List of column cod_peli

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.9.11Column nombre_p of table pelicula


IV.2.1.9.11.1Card of the column nombre_p of the table pelicula

Name Code Data Type Mandatory

nombre_p NOMBRE_P text FALSE

IV.2.1.9.11.2Constraint name of column nombre_p of table pelicula


CK_NOMBRE_P

IV.2.1.9.11.3Standard check of column nombre_p of table pelicula

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.9.11.4Server check expression of column nombre_p of table pelicula


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

PowerDesigner

10/11/2011

Page 50

Physical Data Model

cine_max

IV.2.1.9.11.5Extended Attribute List of column nombre_p

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.9.12Column artista_p of table pelicula


IV.2.1.9.12.1Card of the column artista_p of the table pelicula

Name Code Data Type Mandatory

artista_p ARTISTA_P text FALSE

IV.2.1.9.12.2Constraint name of column artista_p of table pelicula


CK_ARTISTA_P

IV.2.1.9.12.3Standard check of column artista_p of table pelicula

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.9.12.4Server check expression of column artista_p of table pelicula


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.9.12.5Extended Attribute List of column artista_p

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.9.13Column sinopsis_p of table pelicula

PowerDesigner

10/11/2011

Page 51

Physical Data Model

cine_max

IV.2.1.9.13.1Card of the column sinopsis_p of the table pelicula

Name Code Data Type Mandatory

sinopsis_p SINOPSIS text FALSE

IV.2.1.9.13.2Constraint name of column sinopsis_p of table pelicula


CK_SINOPSIS

IV.2.1.9.13.3Standard check of column sinopsis_p of table pelicula

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.9.13.4Server check expression of column sinopsis_p of table pelicula


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.9.13.5Extended Attribute List of column sinopsis_p

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.9.14Column duracion of table pelicula


IV.2.1.9.14.1Card of the column duracion of the table pelicula

Name Code Data Type Mandatory

duracion DURACION time FALSE

IV.2.1.9.14.2Constraint name of column duracion of table pelicula


CK_DURACION

IV.2.1.9.14.3Standard check of column duracion of table pelicula

PowerDesigner

10/11/2011

Page 52

Physical Data Model

cine_max

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.9.14.4Server check expression of column duracion of table pelicula


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.9.14.5Extended Attribute List of column duracion

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.9.15Key list of the table pelicula


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.9.16Key Identifier_1 of table pelicula


IV.2.1.9.16.1Card of the key Identifier_1 of the table pelicula

Name Code Table

Identifier_1 IDENTIFIER_1 pelicula

IV.2.1.9.16.2Code preview of Identifier_1


alter table PELICULA drop primary key;

IV.2.1.9.16.3Column list of the key Identifier_1

Name cod_peli COD_PELI

Code

IV.2.1.9.16.4Dependent Object list of key Identifier_1

PowerDesigner

10/11/2011

Page 53

Physical Data Model

cine_max

Name PELICULA_PK tiene

Code PELICULA_PK TIENE

Class Name Index Reference

IV.2.1.9.16.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.9.17Index list of the table pelicula


Name PELICULA_PK Code PELICULA_PK Unique TRUE Cluster FALSE Primary TRUE Foreign Key FALSE Alternate Key FALSE

IV.2.1.9.18Index PELICULA_PK of table pelicula


IV.2.1.9.18.1Card of the index PELICULA_PK of the table pelicula

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

PELICULA_PK PELICULA_PK TRUE FALSE TRUE FALSE FALSE pelicula

IV.2.1.9.18.2Code preview of PELICULA_PK


drop index PELICULA_PK on PELICULA; /*==============================================================*/ /* Index: PELICULA_PK */ /*==============================================================*/ create unique index PELICULA_PK on PELICULA ( COD_PELI );

IV.2.1.9.18.3Column list of the index PELICULA_PK

Name cod_peli COD_PELI

Code

Sort Ascending

IV.2.1.9.18.4Extended Attribute List of index PELICULA_PK

Name

Data Type

Value

Target Name

PowerDesigner

10/11/2011

Page 54

Physical Data Model

cine_max

FullText

(Boolean)

false

MySQL 5.0

IV.2.1.10Table reservaciones
IV.2.1.10.1Card of the table reservaciones
Name Code DBMS reservaciones RESERVACIONES MySQL 5.0

IV.2.1.10.2Constraint name of table reservaciones


TK_RESERVACIONES

IV.2.1.10.3Server check expression of table reservaciones


%RULES%

IV.2.1.10.4Code preview of reservaciones


drop index INCLUYE_FK on RESERVACIONES; drop index GENERA_FK on RESERVACIONES; drop index HACE_FK on RESERVACIONES; drop index RESERVACIONES_PK on RESERVACIONES; drop table if exists RESERVACIONES; /*==============================================================*/ /* Table: RESERVACIONES */ /*==============================================================*/ create table RESERVACIONES ( CARTELERA text, EMISOR_RE text, COD_CLIENTE text, MONTO_TRANS float(8,2), COD_RESER text not null, COD_CART text not null, CI_EMPLEADO text not null, CI_CLIENT text not null, primary key (COD_RESER) ); /*==============================================================*/ /* Index: RESERVACIONES_PK */ /*==============================================================*/ create unique index RESERVACIONES_PK on RESERVACIONES ( COD_RESER );

PowerDesigner

10/11/2011

Page 55

Physical Data Model /*==============================================================*/ /* Index: HACE_FK */ /*==============================================================*/ create index HACE_FK on RESERVACIONES ( CI_CLIENT ); /*==============================================================*/ /* Index: GENERA_FK */ /*==============================================================*/ create index GENERA_FK on RESERVACIONES ( CI_EMPLEADO ); /*==============================================================*/ /* Index: INCLUYE_FK */ /*==============================================================*/ create index INCLUYE_FK on RESERVACIONES ( COD_CART ); alter table RESERVACIONES add constraint FK_GENERA foreign key (CI_EMPLEADO) references EMPLEADO (CI_EMPLEADO) on delete restrict on update restrict; alter table RESERVACIONES add constraint FK_HACE foreign key (CI_CLIENT) references CLIENTE (CI_CLIENT) on delete restrict on update restrict; alter table RESERVACIONES add constraint FK_INCLUYE foreign key (COD_CART) references CARTELERA (COD_CART) on delete restrict on update restrict;

cine_max

IV.2.1.10.5List of diagrams containing table reservaciones


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.10.6Reference from list of the table reservaciones


Name hace genera incluye HACE GENERA INCLUYE Code Foreign Key Columns ci_client ci_empleado cod_cart2

IV.2.1.10.7Dependent Object list of table reservaciones


Name hace genera incluye HACE GENERA INCLUYE Code Class Name Reference Reference Reference

PowerDesigner

10/11/2011

Page 56

Physical Data Model

cine_max

IV.2.1.10.8Extended Attribute list of table reservaciones


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.10.9Column list of the table reservaciones


Name cod_cart emisor_re cod_cliente monto_trans cod_reser cod_cart2 ci_empleado ci_client CARTELERA EMISOR_RE COD_CLIENTE MONTO_TRANS COD_RESER COD_CART CI_EMPLEADO CI_CLIENT Code

IV.2.1.10.10Column cod_cart of table reservaciones


IV.2.1.10.10.1Card of the column cod_cart of the table reservaciones

Name Code Data Type Mandatory

cod_cart CARTELERA text FALSE

IV.2.1.10.10.2Constraint name of column cod_cart of table reservaciones


CK_CARTELERA

IV.2.1.10.10.3Standard check of column cod_cart of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.10.4Server check expression of column cod_cart of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.10.5Extended Attribute List of column cod_cart

Name CharSet
PowerDesigner

Data Type CharSets

Value

Target Name MySQL 5.0


Page 57

10/11/2011

Physical Data Model

cine_max

Collate National Unsigned ZeroFill

(String) (Boolean) (Boolean) (Boolean)

false false false

MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.11Column emisor_re of table reservaciones


IV.2.1.10.11.1Card of the column emisor_re of the table reservaciones

Name Code Data Type Mandatory

emisor_re EMISOR_RE text FALSE

IV.2.1.10.11.2Constraint name of column emisor_re of table reservaciones


CK_EMISOR_RE

IV.2.1.10.11.3Standard check of column emisor_re of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.11.4Server check expression of column emisor_re of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.11.5Extended Attribute List of column emisor_re

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.12Column cod_cliente of table reservaciones


IV.2.1.10.12.1Card of the column cod_cliente of the table reservaciones

Name Code
PowerDesigner

cod_cliente COD_CLIENTE
10/11/2011 Page 58

Physical Data Model

cine_max

Data Type Mandatory

text FALSE

IV.2.1.10.12.2Constraint name of column cod_cliente of table reservaciones


CK_COD_CLIENTE

IV.2.1.10.12.3Standard check of column cod_cliente of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.12.4Server check expression of column cod_cliente of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.12.5Extended Attribute List of column cod_cliente

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.13Column monto_trans of table reservaciones


IV.2.1.10.13.1Card of the column monto_trans of the table reservaciones

Name Code Data Type Mandatory

monto_trans MONTO_TRANS float(8,2) FALSE

IV.2.1.10.13.2Constraint name of column monto_trans of table reservaciones


CK_MONTO_TRANS

IV.2.1.10.13.3Standard check of column monto_trans of table reservaciones

Minimum Value Maximum Value Default Value

PowerDesigner

10/11/2011

Page 59

Physical Data Model

cine_max

Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.13.4Server check expression of column monto_trans of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.13.5Extended Attribute List of column monto_trans

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.14Column cod_reser of table reservaciones


IV.2.1.10.14.1Card of the column cod_reser of the table reservaciones

Name Code Data Type Mandatory

cod_reser COD_RESER text TRUE

IV.2.1.10.14.2Constraint name of column cod_reser of table reservaciones


CK_COD_RESER

IV.2.1.10.14.3Standard check of column cod_reser of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.14.4Server check expression of column cod_reser of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

PowerDesigner

10/11/2011

Page 60

Physical Data Model

cine_max

IV.2.1.10.14.5Dependent Object list of column cod_reser

Name cod_reser Identifier_1 COD_RESER IDENTIFIER_1

Code

Class Name Index Column Key

IV.2.1.10.14.6Extended Attribute List of column cod_reser

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.15Column cod_cart2 of table reservaciones


IV.2.1.10.15.1Card of the column cod_cart2 of the table reservaciones

Name Code Data Type Mandatory

cod_cart2 COD_CART text TRUE

IV.2.1.10.15.2Constraint name of column cod_cart2 of table reservaciones


CK_COD_CART

IV.2.1.10.15.3Standard check of column cod_cart2 of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.15.4Server check expression of column cod_cart2 of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.15.5Dependent Object list of column cod_cart2

Name <Unknown> cod_cart2 <Unknown> COD_CART

Code

Class Name Reference Join Index Column

PowerDesigner

10/11/2011

Page 61

Physical Data Model

cine_max

IV.2.1.10.15.6Extended Attribute List of column cod_cart2

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.16Column ci_empleado of table reservaciones


IV.2.1.10.16.1Card of the column ci_empleado of the table reservaciones

Name Code Data Type Mandatory

ci_empleado CI_EMPLEADO text TRUE

IV.2.1.10.16.2Constraint name of column ci_empleado of table reservaciones


CK_CI_EMPLEADO

IV.2.1.10.16.3Standard check of column ci_empleado of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.16.4Server check expression of column ci_empleado of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.16.5Dependent Object list of column ci_empleado

Name <Unknown> ci_empleado

Code <Unknown> CI_EMPLEADO

Class Name Reference Join Index Column

IV.2.1.10.16.6Extended Attribute List of column ci_empleado

Name CharSet Collate National

Data Type CharSets (String) (Boolean)

Value false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0

PowerDesigner

10/11/2011

Page 62

Physical Data Model

cine_max

Unsigned ZeroFill

(Boolean) (Boolean)

false false

MySQL 5.0 MySQL 5.0

IV.2.1.10.17Column ci_client of table reservaciones


IV.2.1.10.17.1Card of the column ci_client of the table reservaciones

Name Code Data Type Mandatory

ci_client CI_CLIENT text TRUE

IV.2.1.10.17.2Constraint name of column ci_client of table reservaciones


CK_CI_CLIENT

IV.2.1.10.17.3Standard check of column ci_client of table reservaciones

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.10.17.4Server check expression of column ci_client of table reservaciones


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.10.17.5Dependent Object list of column ci_client

Name <Unknown> ci_client <Unknown> CI_CLIENT

Code

Class Name Reference Join Index Column

IV.2.1.10.17.6Extended Attribute List of column ci_client

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.10.18Key list of the table reservaciones

PowerDesigner

10/11/2011

Page 63

Physical Data Model

cine_max

Name Identifier_1 IDENTIFIER_1

Code

Primary TRUE

IV.2.1.10.19Key Identifier_1 of table reservaciones


IV.2.1.10.19.1Card of the key Identifier_1 of the table reservaciones

Name Code Table

Identifier_1 IDENTIFIER_1 reservaciones

IV.2.1.10.19.2Code preview of Identifier_1


alter table RESERVACIONES drop primary key;

IV.2.1.10.19.3Column list of the key Identifier_1

Name cod_reser COD_RESER

Code

IV.2.1.10.19.4Dependent Object list of key Identifier_1

Name RESERVACIONES_PK

Code RESERVACIONES_PK

Class Name Index

IV.2.1.10.19.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.10.20Index list of the table reservaciones


Name RESERVACIO NES_PK HACE_FK GENERA_FK INCLUYE_FK Code RESERVACION ES_PK HACE_FK GENERA_FK INCLUYE_FK Unique TRUE FALSE FALSE FALSE Cluster FALSE FALSE FALSE FALSE Primary TRUE FALSE FALSE FALSE Foreign Key FALSE TRUE TRUE TRUE Alternate Key FALSE FALSE FALSE FALSE

IV.2.1.10.21Index RESERVACIONES_PK of table reservaciones


IV.2.1.10.21.1Card of the index RESERVACIONES_PK of the table reservaciones

Name Code

RESERVACIONES_PK RESERVACIONES_PK

PowerDesigner

10/11/2011

Page 64

Physical Data Model

cine_max

Unique Cluster Primary Foreign Key Alternate Key Table

TRUE FALSE TRUE FALSE FALSE reservaciones

IV.2.1.10.21.2Code preview of RESERVACIONES_PK


drop index RESERVACIONES_PK on RESERVACIONES; /*==============================================================*/ /* Index: RESERVACIONES_PK */ /*==============================================================*/ create unique index RESERVACIONES_PK on RESERVACIONES ( COD_RESER );

IV.2.1.10.21.3Column list of the index RESERVACIONES_PK

Name cod_reser COD_RESER

Code

Sort Ascending

IV.2.1.10.21.4Extended Attribute List of index RESERVACIONES_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.10.22Index HACE_FK of table reservaciones


IV.2.1.10.22.1Card of the index HACE_FK of the table reservaciones

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

HACE_FK HACE_FK FALSE FALSE FALSE TRUE FALSE reservaciones

IV.2.1.10.22.2Code preview of HACE_FK


drop index HACE_FK on RESERVACIONES; /*==============================================================*/ /* Index: HACE_FK */ /*==============================================================*/

PowerDesigner

10/11/2011

Page 65

Physical Data Model create index HACE_FK on RESERVACIONES ( CI_CLIENT );

cine_max

IV.2.1.10.22.3Column list of the index HACE_FK

Name ci_client CI_CLIENT

Code

Sort Ascending

IV.2.1.10.22.4Extended Attribute List of index HACE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.10.23Index GENERA_FK of table reservaciones


IV.2.1.10.23.1Card of the index GENERA_FK of the table reservaciones

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

GENERA_FK GENERA_FK FALSE FALSE FALSE TRUE FALSE reservaciones

IV.2.1.10.23.2Code preview of GENERA_FK


drop index GENERA_FK on RESERVACIONES; /*==============================================================*/ /* Index: GENERA_FK */ /*==============================================================*/ create index GENERA_FK on RESERVACIONES ( CI_EMPLEADO );

IV.2.1.10.23.3Column list of the index GENERA_FK

Name ci_empleado

Code CI_EMPLEADO

Sort Ascending

IV.2.1.10.23.4Extended Attribute List of index GENERA_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 66

Physical Data Model

cine_max

IV.2.1.10.24Index INCLUYE_FK of table reservaciones


IV.2.1.10.24.1Card of the index INCLUYE_FK of the table reservaciones

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

INCLUYE_FK INCLUYE_FK FALSE FALSE FALSE TRUE FALSE reservaciones

IV.2.1.10.24.2Code preview of INCLUYE_FK


drop index INCLUYE_FK on RESERVACIONES; /*==============================================================*/ /* Index: INCLUYE_FK */ /*==============================================================*/ create index INCLUYE_FK on RESERVACIONES ( COD_CART );

IV.2.1.10.24.3Column list of the index INCLUYE_FK

Name cod_cart2 COD_CART

Code

Sort Ascending

IV.2.1.10.24.4Extended Attribute List of index INCLUYE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.11Table salas
IV.2.1.11.1Card of the table salas
Name Code DBMS salas SALAS MySQL 5.0

IV.2.1.11.2Constraint name of table salas


TK_SALAS

PowerDesigner

10/11/2011

Page 67

Physical Data Model

cine_max

IV.2.1.11.3Server check expression of table salas


%RULES%

IV.2.1.11.4Code preview of salas


drop index PERMANECE_FK on SALAS; drop index SALAS_PK on SALAS; drop table if exists SALAS; /*==============================================================*/ /* Table: SALAS */ /*==============================================================*/ create table SALAS ( COD_S text not null, CI_EMPLEADO text not null, NOMBRE_S text, CAPA_S int, ENCARGADO_S text, primary key (COD_S) ); /*==============================================================*/ /* Index: SALAS_PK */ /*==============================================================*/ create unique index SALAS_PK on SALAS ( COD_S ); /*==============================================================*/ /* Index: PERMANECE_FK */ /*==============================================================*/ create index PERMANECE_FK on SALAS ( CI_EMPLEADO ); alter table SALAS add constraint FK_PERMANECE foreign key (CI_EMPLEADO) references EMPLEADO (CI_EMPLEADO) on delete restrict on update restrict;

IV.2.1.11.5List of diagrams containing table salas


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.11.6Reference to list of the table salas


Name admite ADMITE Code

PowerDesigner

10/11/2011

Page 68

Physical Data Model

cine_max

IV.2.1.11.7Reference from list of the table salas


Name permanece Code PERMANECE Foreign Key Columns ci_empleado

IV.2.1.11.8Dependent Object list of table salas


Name admite permanece ADMITE PERMANECE Code Class Name Reference Reference

IV.2.1.11.9Extended Attribute list of table salas


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.11.10Column list of the table salas


Name cod_s ci_empleado nombre_s capa_s encargado_s COD_S CI_EMPLEADO NOMBRE_S CAPA_S ENCARGADO_S Code

IV.2.1.11.11Column cod_s of table salas


IV.2.1.11.11.1Card of the column cod_s of the table salas

Name Code Data Type Mandatory

cod_s COD_S text TRUE

IV.2.1.11.11.2Constraint name of column cod_s of table salas


CK_COD_S

IV.2.1.11.11.3Standard check of column cod_s of table salas

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify

FALSE FALSE FALSE

PowerDesigner

10/11/2011

Page 69

Physical Data Model

cine_max

List of Values
IV.2.1.11.11.4Server check expression of column cod_s of table salas
%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.11.11.5Dependent Object list of column cod_s

Name <Unknown> cod_s Identifier_1 <Unknown> COD_S IDENTIFIER_1

Code

Class Name Reference Join Index Column Key

IV.2.1.11.11.6Extended Attribute List of column cod_s

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.11.12Column ci_empleado of table salas


IV.2.1.11.12.1Card of the column ci_empleado of the table salas

Name Code Data Type Mandatory

ci_empleado CI_EMPLEADO text TRUE

IV.2.1.11.12.2Constraint name of column ci_empleado of table salas


CK_CI_EMPLEADO

IV.2.1.11.12.3Standard check of column ci_empleado of table salas

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.11.12.4Server check expression of column ci_empleado of table salas

PowerDesigner

10/11/2011

Page 70

Physical Data Model %MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

cine_max

IV.2.1.11.12.5Dependent Object list of column ci_empleado

Name <Unknown> ci_empleado

Code <Unknown> CI_EMPLEADO

Class Name Reference Join Index Column

IV.2.1.11.12.6Extended Attribute List of column ci_empleado

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.11.13Column nombre_s of table salas


IV.2.1.11.13.1Card of the column nombre_s of the table salas

Name Code Data Type Mandatory

nombre_s NOMBRE_S text FALSE

IV.2.1.11.13.2Constraint name of column nombre_s of table salas


CK_NOMBRE_S

IV.2.1.11.13.3Standard check of column nombre_s of table salas

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.11.13.4Server check expression of column nombre_s of table salas


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.11.13.5Extended Attribute List of column nombre_s

Name CharSet

Data Type CharSets

Value

Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 71

Physical Data Model

cine_max

Collate National Unsigned ZeroFill

(String) (Boolean) (Boolean) (Boolean)

false false false

MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.11.14Column capa_s of table salas


IV.2.1.11.14.1Card of the column capa_s of the table salas

Name Code Data Type Mandatory

capa_s CAPA_S int FALSE

IV.2.1.11.14.2Constraint name of column capa_s of table salas


CK_CAPA_S

IV.2.1.11.14.3Standard check of column capa_s of table salas

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.11.14.4Server check expression of column capa_s of table salas


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.11.14.5Extended Attribute List of column capa_s

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.11.15Column encargado_s of table salas


IV.2.1.11.15.1Card of the column encargado_s of the table salas

Name Code
PowerDesigner

encargado_s ENCARGADO_S
10/11/2011 Page 72

Physical Data Model

cine_max

Data Type Mandatory

text FALSE

IV.2.1.11.15.2Constraint name of column encargado_s of table salas


CK_ENCARGADO_S

IV.2.1.11.15.3Standard check of column encargado_s of table salas

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.11.15.4Server check expression of column encargado_s of table salas


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.11.15.5Extended Attribute List of column encargado_s

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.11.16Key list of the table salas


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.11.17Key Identifier_1 of table salas


IV.2.1.11.17.1Card of the key Identifier_1 of the table salas

Name Code Table

Identifier_1 IDENTIFIER_1 salas

IV.2.1.11.17.2Code preview of Identifier_1


alter table SALAS drop primary key;

PowerDesigner

10/11/2011

Page 73

Physical Data Model

cine_max

IV.2.1.11.17.3Column list of the key Identifier_1

Name cod_s COD_S

Code

IV.2.1.11.17.4Dependent Object list of key Identifier_1

Name SALAS_PK admite SALAS_PK ADMITE

Code

Class Name Index Reference

IV.2.1.11.17.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.11.18Index list of the table salas


Name SALAS_PK PERMANECE_ FK Code SALAS_PK PERMANECE_F K Unique TRUE FALSE Cluster FALSE FALSE Primary TRUE FALSE Foreign Key FALSE TRUE Alternate Key FALSE FALSE

IV.2.1.11.19Index SALAS_PK of table salas


IV.2.1.11.19.1Card of the index SALAS_PK of the table salas

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

SALAS_PK SALAS_PK TRUE FALSE TRUE FALSE FALSE salas

IV.2.1.11.19.2Code preview of SALAS_PK


drop index SALAS_PK on SALAS; /*==============================================================*/ /* Index: SALAS_PK */ /*==============================================================*/ create unique index SALAS_PK on SALAS ( COD_S

PowerDesigner

10/11/2011

Page 74

Physical Data Model );

cine_max

IV.2.1.11.19.3Column list of the index SALAS_PK

Name cod_s COD_S

Code

Sort Ascending

IV.2.1.11.19.4Extended Attribute List of index SALAS_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.11.20Index PERMANECE_FK of table salas


IV.2.1.11.20.1Card of the index PERMANECE_FK of the table salas

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

PERMANECE_FK PERMANECE_FK FALSE FALSE FALSE TRUE FALSE salas

IV.2.1.11.20.2Code preview of PERMANECE_FK


drop index PERMANECE_FK on SALAS; /*==============================================================*/ /* Index: PERMANECE_FK */ /*==============================================================*/ create index PERMANECE_FK on SALAS ( CI_EMPLEADO );

IV.2.1.11.20.3Column list of the index PERMANECE_FK

Name ci_empleado

Code CI_EMPLEADO

Sort Ascending

IV.2.1.11.20.4Extended Attribute List of index PERMANECE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 75

Physical Data Model

cine_max

IV.2.1.12Table turnos
IV.2.1.12.1Card of the table turnos
Name Code DBMS turnos TURNOS MySQL 5.0

IV.2.1.12.2Constraint name of table turnos


TK_TURNOS

IV.2.1.12.3Server check expression of table turnos


%RULES%

IV.2.1.12.4Code preview of turnos


drop index TURNOS_PK on TURNOS; drop table if exists TURNOS; /*==============================================================*/ /* Table: TURNOS */ /*==============================================================*/ create table TURNOS ( COD_TURNO text not null, NOMBRE_EMPL text, HORA_LIMIT time, primary key (COD_TURNO) ); /*==============================================================*/ /* Index: TURNOS_PK */ /*==============================================================*/ create unique index TURNOS_PK on TURNOS ( COD_TURNO );

IV.2.1.12.5List of diagrams containing table turnos


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.12.6Reference to list of the table turnos


Name posee ofrece POSEE OFRECE Code

PowerDesigner

10/11/2011

Page 76

Physical Data Model

cine_max

IV.2.1.12.7Dependent Object list of table turnos


Name posee ofrece POSEE OFRECE Code Class Name Reference Reference

IV.2.1.12.8Extended Attribute list of table turnos


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.12.9Column list of the table turnos


Name cod_turno nombre_empl hora_limit COD_TURNO NOMBRE_EMPL HORA_LIMIT Code

IV.2.1.12.10Column cod_turno of table turnos


IV.2.1.12.10.1Card of the column cod_turno of the table turnos

Name Code Data Type Mandatory

cod_turno COD_TURNO text TRUE

IV.2.1.12.10.2Constraint name of column cod_turno of table turnos


CK_COD_TURNO

IV.2.1.12.10.3Standard check of column cod_turno of table turnos

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.12.10.4Server check expression of column cod_turno of table turnos


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.12.10.5Dependent Object list of column cod_turno

Name
PowerDesigner

Code
10/11/2011

Class Name
Page 77

Physical Data Model

cine_max

<Unknown> <Unknown> cod_turno Identifier_1

<Unknown> <Unknown> COD_TURNO IDENTIFIER_1

Reference Join Reference Join Index Column Key

IV.2.1.12.10.6Extended Attribute List of column cod_turno

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.12.11Column nombre_empl of table turnos


IV.2.1.12.11.1Card of the column nombre_empl of the table turnos

Name Code Data Type Mandatory

nombre_empl NOMBRE_EMPL text FALSE

IV.2.1.12.11.2Constraint name of column nombre_empl of table turnos


CK_NOMBRE_EMPL

IV.2.1.12.11.3Standard check of column nombre_empl of table turnos

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.12.11.4Server check expression of column nombre_empl of table turnos


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.12.11.5Extended Attribute List of column nombre_empl

Name CharSet Collate National

Data Type CharSets (String) (Boolean)

Value false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0

PowerDesigner

10/11/2011

Page 78

Physical Data Model

cine_max

Unsigned ZeroFill

(Boolean) (Boolean)

false false

MySQL 5.0 MySQL 5.0

IV.2.1.12.12Column hora_limit of table turnos


IV.2.1.12.12.1Card of the column hora_limit of the table turnos

Name Code Data Type Mandatory

hora_limit HORA_LIMIT time FALSE

IV.2.1.12.12.2Constraint name of column hora_limit of table turnos


CK_HORA_LIMIT

IV.2.1.12.12.3Standard check of column hora_limit of table turnos

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.12.12.4Server check expression of column hora_limit of table turnos


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.12.12.5Extended Attribute List of column hora_limit

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.12.13Key list of the table turnos


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.12.14Key Identifier_1 of table turnos

PowerDesigner

10/11/2011

Page 79

Physical Data Model

cine_max

IV.2.1.12.14.1Card of the key Identifier_1 of the table turnos

Name Code Table

Identifier_1 IDENTIFIER_1 turnos

IV.2.1.12.14.2Code preview of Identifier_1


alter table TURNOS drop primary key;

IV.2.1.12.14.3Column list of the key Identifier_1

Name cod_turno COD_TURNO

Code

IV.2.1.12.14.4Dependent Object list of key Identifier_1

Name TURNOS_PK posee ofrece TURNOS_PK POSEE OFRECE

Code

Class Name Index Reference Reference

IV.2.1.12.14.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.12.15Index list of the table turnos


Name TURNOS_PK Code TURNOS_PK Unique TRUE Cluster FALSE Primary TRUE Foreign Key FALSE Alternate Key FALSE

IV.2.1.12.16Index TURNOS_PK of table turnos


IV.2.1.12.16.1Card of the index TURNOS_PK of the table turnos

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

TURNOS_PK TURNOS_PK TRUE FALSE TRUE FALSE FALSE turnos

PowerDesigner

10/11/2011

Page 80

Physical Data Model

cine_max

IV.2.1.12.16.2Code preview of TURNOS_PK


drop index TURNOS_PK on TURNOS; /*==============================================================*/ /* Index: TURNOS_PK */ /*==============================================================*/ create unique index TURNOS_PK on TURNOS ( COD_TURNO );

IV.2.1.12.16.3Column list of the index TURNOS_PK

Name cod_turno COD_TURNO

Code

Sort Ascending

IV.2.1.12.16.4Extended Attribute List of index TURNOS_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.13Table vent_boleto
IV.2.1.13.1Card of the table vent_boleto
Name Code DBMS vent_boleto VENT_BOLETO MySQL 5.0

IV.2.1.13.2Constraint name of table vent_boleto


TK_VENT_BOLETO

IV.2.1.13.3Server check expression of table vent_boleto


%RULES%

IV.2.1.13.4Code preview of vent_boleto


drop index EMITE_FK on VENT_BOLETO; drop index CONTIENE_FK on VENT_BOLETO; drop index CONDUCE_FK on VENT_BOLETO; drop index VENT_BOLETO_PK on VENT_BOLETO; drop table if exists VENT_BOLETO; /*==============================================================*/ /* Table: VENT_BOLETO */ /*==============================================================*/

PowerDesigner

10/11/2011

Page 81

Physical Data Model create table VENT_BOLETO ( COD_VENT text not null, COD__BO text not null, COD_CART text not null, CI_EMPLEADO text not null, COD__CART text, COD_BOLETO text, EMISOR text, HORA_IMPRESION time, CD_RESER text, primary key (COD_VENT) ); /*==============================================================*/ /* Index: VENT_BOLETO_PK */ /*==============================================================*/ create unique index VENT_BOLETO_PK on VENT_BOLETO ( COD_VENT ); /*==============================================================*/ /* Index: CONDUCE_FK */ /*==============================================================*/ create index CONDUCE_FK on VENT_BOLETO ( COD__BO ); /*==============================================================*/ /* Index: CONTIENE_FK */ /*==============================================================*/ create index CONTIENE_FK on VENT_BOLETO ( COD_CART ); /*==============================================================*/ /* Index: EMITE_FK */ /*==============================================================*/ create index EMITE_FK on VENT_BOLETO ( CI_EMPLEADO ); alter table VENT_BOLETO add constraint FK_CONDUCE foreign key (COD__BO) references BOLETOS (COD__BO) on delete restrict on update restrict; alter table VENT_BOLETO add constraint FK_CONTIENE foreign key (COD_CART) references CARTELERA (COD_CART) on delete restrict on update restrict; alter table VENT_BOLETO add constraint FK_EMITE foreign key (CI_EMPLEADO) references EMPLEADO (CI_EMPLEADO) on delete restrict on update restrict;

cine_max

PowerDesigner

10/11/2011

Page 82

Physical Data Model

cine_max

IV.2.1.13.5List of diagrams containing table vent_boleto


Name Diagram_1 DIAGRAM_1 Code

IV.2.1.13.6Reference from list of the table vent_boleto


Name conduce contiene emite Code CONDUCE CONTIENE EMITE Foreign Key Columns cod _bo cod_cart ci_empleado

IV.2.1.13.7Dependent Object list of table vent_boleto


Name conduce contiene emite CONDUCE CONTIENE EMITE Code Class Name Reference Reference Reference

IV.2.1.13.8Extended Attribute list of table vent_boleto


Name Temporary Data Type (Boolean) Value false Target Name MySQL 5.0

IV.2.1.13.9Column list of the table vent_boleto


Name cod_vent cod _bo cod_cart ci_empleado cod__cart cod_bole emisor hora_impresion cd_reser COD_VENT COD__BO COD_CART CI_EMPLEADO COD__CART COD_BOLETO EMISOR HORA_IMPRESION CD_RESER Code

IV.2.1.13.10Column cod_vent of table vent_boleto


IV.2.1.13.10.1Card of the column cod_vent of the table vent_boleto

Name Code Data Type Mandatory

cod_vent COD_VENT text TRUE

PowerDesigner

10/11/2011

Page 83

Physical Data Model

cine_max

IV.2.1.13.10.2Constraint name of column cod_vent of table vent_boleto


CK_COD_VENT

IV.2.1.13.10.3Standard check of column cod_vent of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.10.4Server check expression of column cod_vent of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.10.5Dependent Object list of column cod_vent

Name cod_vent Identifier_1 COD_VENT IDENTIFIER_1

Code

Class Name Index Column Key

IV.2.1.13.10.6Extended Attribute List of column cod_vent

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.11Column cod _bo of table vent_boleto


IV.2.1.13.11.1Card of the column cod _bo of the table vent_boleto

Name Code Data Type Mandatory

cod _bo COD__BO text TRUE

IV.2.1.13.11.2Constraint name of column cod _bo of table vent_boleto


CK_COD__BO

IV.2.1.13.11.3Standard check of column cod _bo of table vent_boleto

Minimum Value

PowerDesigner

10/11/2011

Page 84

Physical Data Model

cine_max

Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.11.4Server check expression of column cod _bo of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.11.5Dependent Object list of column cod _bo

Name <Unknown> cod _bo <Unknown> COD__BO

Code

Class Name Reference Join Index Column

IV.2.1.13.11.6Extended Attribute List of column cod _bo

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.12Column cod_cart of table vent_boleto


IV.2.1.13.12.1Card of the column cod_cart of the table vent_boleto

Name Code Data Type Mandatory

cod_cart COD_CART text TRUE

IV.2.1.13.12.2Constraint name of column cod_cart of table vent_boleto


CK_COD_CART

IV.2.1.13.12.3Standard check of column cod_cart of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase

FALSE

PowerDesigner

10/11/2011

Page 85

Physical Data Model

cine_max

Lowercase Cannot Modify List of Values

FALSE FALSE

IV.2.1.13.12.4Server check expression of column cod_cart of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.12.5Dependent Object list of column cod_cart

Name <Unknown> cod_cart <Unknown> COD_CART

Code

Class Name Reference Join Index Column

IV.2.1.13.12.6Extended Attribute List of column cod_cart

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.13Column ci_empleado of table vent_boleto


IV.2.1.13.13.1Card of the column ci_empleado of the table vent_boleto

Name Code Data Type Mandatory

ci_empleado CI_EMPLEADO text TRUE

IV.2.1.13.13.2Constraint name of column ci_empleado of table vent_boleto


CK_CI_EMPLEADO

IV.2.1.13.13.3Standard check of column ci_empleado of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

PowerDesigner

10/11/2011

Page 86

Physical Data Model

cine_max

IV.2.1.13.13.4Server check expression of column ci_empleado of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.13.5Dependent Object list of column ci_empleado

Name <Unknown> ci_empleado

Code <Unknown> CI_EMPLEADO

Class Name Reference Join Index Column

IV.2.1.13.13.6Extended Attribute List of column ci_empleado

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.14Column cod__cart of table vent_boleto


IV.2.1.13.14.1Card of the column cod__cart of the table vent_boleto

Name Code Data Type Mandatory

cod__cart COD__CART text FALSE

IV.2.1.13.14.2Constraint name of column cod__cart of table vent_boleto


CK_COD__CART

IV.2.1.13.14.3Standard check of column cod__cart of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.14.4Server check expression of column cod__cart of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.14.5Extended Attribute List of column cod__cart

Name

Data Type

Value

Target Name

PowerDesigner

10/11/2011

Page 87

Physical Data Model

cine_max

CharSet Collate National Unsigned ZeroFill

CharSets (String) (Boolean) (Boolean) (Boolean)

false false false

MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.15Column cod_bole of table vent_boleto


IV.2.1.13.15.1Card of the column cod_bole of the table vent_boleto

Name Code Data Type Mandatory

cod_bole COD_BOLETO text FALSE

IV.2.1.13.15.2Constraint name of column cod_bole of table vent_boleto


CK_COD_BOLETO

IV.2.1.13.15.3Standard check of column cod_bole of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.15.4Server check expression of column cod_bole of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.15.5Extended Attribute List of column cod_bole

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.16Column emisor of table vent_boleto


IV.2.1.13.16.1Card of the column emisor of the table vent_boleto

Name
PowerDesigner

emisor
10/11/2011 Page 88

Physical Data Model

cine_max

Code Data Type Mandatory

EMISOR text FALSE

IV.2.1.13.16.2Constraint name of column emisor of table vent_boleto


CK_EMISOR

IV.2.1.13.16.3Standard check of column emisor of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.16.4Server check expression of column emisor of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.16.5Extended Attribute List of column emisor

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.17Column hora_impresion of table vent_boleto


IV.2.1.13.17.1Card of the column hora_impresion of the table vent_boleto

Name Code Data Type Mandatory

hora_impresion HORA_IMPRESION time FALSE

IV.2.1.13.17.2Constraint name of column hora_impresion of table vent_boleto


CK_HORA_IMPRESION

IV.2.1.13.17.3Standard check of column hora_impresion of table vent_boleto

Minimum Value Maximum Value

PowerDesigner

10/11/2011

Page 89

Physical Data Model

cine_max

Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.17.4Server check expression of column hora_impresion of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

IV.2.1.13.17.5Extended Attribute List of column hora_impresion

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.18Column cd_reser of table vent_boleto


IV.2.1.13.18.1Card of the column cd_reser of the table vent_boleto

Name Code Data Type Mandatory

cd_reser CD_RESER text FALSE

IV.2.1.13.18.2Constraint name of column cd_reser of table vent_boleto


CK_CD_RESER

IV.2.1.13.18.3Standard check of column cd_reser of table vent_boleto

Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values

FALSE FALSE FALSE

IV.2.1.13.18.4Server check expression of column cd_reser of table vent_boleto


%MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%

PowerDesigner

10/11/2011

Page 90

Physical Data Model

cine_max

IV.2.1.13.18.5Extended Attribute List of column cd_reser

Name CharSet Collate National Unsigned ZeroFill

Data Type CharSets (String) (Boolean) (Boolean) (Boolean)

Value false false false

Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0

IV.2.1.13.19Key list of the table vent_boleto


Name Identifier_1 IDENTIFIER_1 Code Primary TRUE

IV.2.1.13.20Key Identifier_1 of table vent_boleto


IV.2.1.13.20.1Card of the key Identifier_1 of the table vent_boleto

Name Code Table

Identifier_1 IDENTIFIER_1 vent_boleto

IV.2.1.13.20.2Code preview of Identifier_1


alter table VENT_BOLETO drop primary key;

IV.2.1.13.20.3Column list of the key Identifier_1

Name cod_vent COD_VENT

Code

IV.2.1.13.20.4Dependent Object list of key Identifier_1

Name VENT_BOLETO_PK

Code VENT_BOLETO_PK

Class Name Index

IV.2.1.13.20.5Extended Attribute List of key Identifier_1

Name ExtUnique

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.13.21Index list of the table vent_boleto


Name VENT_BOLET O_PK Code VENT_BOLETO _PK Unique TRUE Cluster FALSE Primary TRUE Foreign Key FALSE Alternate Key FALSE

PowerDesigner

10/11/2011

Page 91

Physical Data Model

cine_max

CONDUCE_FK CONTIENE_FK EMITE_FK

CONDUCE_FK CONTIENE_FK EMITE_FK

FALSE FALSE FALSE

FALSE FALSE FALSE

FALSE FALSE FALSE

TRUE TRUE TRUE

FALSE FALSE FALSE

IV.2.1.13.22Index VENT_BOLETO_PK of table vent_boleto


IV.2.1.13.22.1Card of the index VENT_BOLETO_PK of the table vent_boleto

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

VENT_BOLETO_PK VENT_BOLETO_PK TRUE FALSE TRUE FALSE FALSE vent_boleto

IV.2.1.13.22.2Code preview of VENT_BOLETO_PK


drop index VENT_BOLETO_PK on VENT_BOLETO; /*==============================================================*/ /* Index: VENT_BOLETO_PK */ /*==============================================================*/ create unique index VENT_BOLETO_PK on VENT_BOLETO ( COD_VENT );

IV.2.1.13.22.3Column list of the index VENT_BOLETO_PK

Name cod_vent COD_VENT

Code

Sort Ascending

IV.2.1.13.22.4Extended Attribute List of index VENT_BOLETO_PK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.13.23Index CONDUCE_FK of table vent_boleto


IV.2.1.13.23.1Card of the index CONDUCE_FK of the table vent_boleto

Name Code Unique Cluster Primary

CONDUCE_FK CONDUCE_FK FALSE FALSE FALSE

PowerDesigner

10/11/2011

Page 92

Physical Data Model

cine_max

Foreign Key Alternate Key Table

TRUE FALSE vent_boleto

IV.2.1.13.23.2Code preview of CONDUCE_FK


drop index CONDUCE_FK on VENT_BOLETO; /*==============================================================*/ /* Index: CONDUCE_FK */ /*==============================================================*/ create index CONDUCE_FK on VENT_BOLETO ( COD__BO );

IV.2.1.13.23.3Column list of the index CONDUCE_FK

Name cod _bo COD__BO

Code

Sort Ascending

IV.2.1.13.23.4Extended Attribute List of index CONDUCE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.13.24Index CONTIENE_FK of table vent_boleto


IV.2.1.13.24.1Card of the index CONTIENE_FK of the table vent_boleto

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

CONTIENE_FK CONTIENE_FK FALSE FALSE FALSE TRUE FALSE vent_boleto

IV.2.1.13.24.2Code preview of CONTIENE_FK


drop index CONTIENE_FK on VENT_BOLETO; /*==============================================================*/ /* Index: CONTIENE_FK */ /*==============================================================*/ create index CONTIENE_FK on VENT_BOLETO ( COD_CART );

PowerDesigner

10/11/2011

Page 93

Physical Data Model

cine_max

IV.2.1.13.24.3Column list of the index CONTIENE_FK

Name cod_cart COD_CART

Code

Sort Ascending

IV.2.1.13.24.4Extended Attribute List of index CONTIENE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

IV.2.1.13.25Index EMITE_FK of table vent_boleto


IV.2.1.13.25.1Card of the index EMITE_FK of the table vent_boleto

Name Code Unique Cluster Primary Foreign Key Alternate Key Table

EMITE_FK EMITE_FK FALSE FALSE FALSE TRUE FALSE vent_boleto

IV.2.1.13.25.2Code preview of EMITE_FK


drop index EMITE_FK on VENT_BOLETO; /*==============================================================*/ /* Index: EMITE_FK */ /*==============================================================*/ create index EMITE_FK on VENT_BOLETO ( CI_EMPLEADO );

IV.2.1.13.25.3Column list of the index EMITE_FK

Name ci_empleado

Code CI_EMPLEADO

Sort Ascending

IV.2.1.13.25.4Extended Attribute List of index EMITE_FK

Name FullText

Data Type (Boolean)

Value false

Target Name MySQL 5.0

PowerDesigner

10/11/2011

Page 94

Physical Data Model

cine_max

PowerDesigner

10/11/2011

Page 95

S-ar putea să vă placă și