Documente Academic
Documente Profesional
Documente Cultură
Report
Table of Contents
The 'Table of Contents' field needs to be updated!
Sybase PowerDesigner
10/11/2011
Page 2 of 95
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
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>
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
cine_max
IV.1.1.2Reference admite
IV.1.1.2.1Card of the reference admite
Name Code Parent Table Child Table admite ADMITE salas cartelera
cine_max
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.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
cine_max
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
PowerDesigner
10/11/2011
Page 6
cine_max
Name ReferenceMatch
Value
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.7Reference hace
IV.1.1.7.1Card of the reference hace
Name Code Parent Table Child Table hace HACE cliente reservaciones
PowerDesigner
10/11/2011
Page 7
Physical Data Model references CLIENTE (CI_CLIENT) on delete restrict on update restrict;
cine_max
IV.1.1.8Reference incluye
IV.1.1.8.1Card of the reference incluye
Name Code Parent Table Child Table incluye INCLUYE cartelera reservaciones
PowerDesigner
10/11/2011
Page 8
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.10Reference permanece
IV.1.1.10.1Card of the reference permanece
Name Code Parent Table Child Table permanece PERMANECE empleado salas
cine_max
Code
IV.1.1.11Reference posee
IV.1.1.11.1Card of the reference posee
Name Code Parent Table Child Table posee POSEE turnos empleado
PowerDesigner
10/11/2011
Page 10
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.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
cine_max
PowerDesigner
10/11/2011
Page 12
cine_max
PowerDesigner
10/11/2011
Page 13
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
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
PowerDesigner
10/11/2011
Page 15
cine_max
Mandatory
TRUE
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 16
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify
PowerDesigner
10/11/2011
Page 17
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%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Code
Code
Name ExtUnique
Value false
PowerDesigner
10/11/2011
Page 18
cine_max
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
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
cine_max
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
Data Type
Value
10/11/2011
Target Name
Page 21
cine_max
Temporary
(Boolean)
false
MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
cine_max
Identifier_1
IDENTIFIER_1
Key
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Name
Data Type
Value
Target Name
PowerDesigner
10/11/2011
Page 23
cine_max
MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 24
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 25
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value
PowerDesigner
10/11/2011
Page 26
cine_max
Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 27
Physical Data Model %MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 28
cine_max
Code
Name ExtUnique
Value false
PowerDesigner
10/11/2011
Page 29
cine_max
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
PowerDesigner
10/11/2011
Page 30
cine_max
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
PowerDesigner
10/11/2011
Page 31
cine_max
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
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
cine_max
PowerDesigner
10/11/2011
Page 33
cine_max
Temporary
(Boolean)
false
MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 34
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 35
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 37
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Code
Code
Name ExtUnique
Value false
PowerDesigner
10/11/2011
Page 38
cine_max
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
IV.2.1.8Table empleado
IV.2.1.8.1Card of the table empleado
Name Code DBMS empleado EMPLEADO MySQL 5.0
PowerDesigner
10/11/2011
Page 39
cine_max
PowerDesigner
10/11/2011
Page 40
cine_max
permanece
PERMANECE
cine_max
Class Name Reference Join Reference Join Reference Join Index Column Key
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
FALSE
PowerDesigner
10/11/2011
Page 42
cine_max
FALSE FALSE
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 43
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 44
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Name Code
Identifier_1 IDENTIFIER_1
PowerDesigner
10/11/2011
Page 45
cine_max
Table
empleado
Name ci_empleado
Code CI_EMPLEADO
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Physical Data Model drop index EMPLEADO_PK on EMPLEADO; /*==============================================================*/ /* Index: EMPLEADO_PK */ /*==============================================================*/ create unique index EMPLEADO_PK on EMPLEADO ( CI_EMPLEADO );
cine_max
Name ci_empleado
Code CI_EMPLEADO
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
PowerDesigner
10/11/2011
Page 47
cine_max
Name FullText
Value false
IV.2.1.9Table pelicula
IV.2.1.9.1Card of the table pelicula
Name Code DBMS pelicula PELICULA MySQL 5.0
PowerDesigner
10/11/2011
Page 48
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 49
cine_max
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 50
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 51
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 52
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Code
PowerDesigner
10/11/2011
Page 53
cine_max
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name
Data Type
Value
Target Name
PowerDesigner
10/11/2011
Page 54
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
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
PowerDesigner
10/11/2011
Page 56
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Name CharSet
PowerDesigner
Value
10/11/2011
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Name Code
PowerDesigner
cod_cliente COD_CLIENTE
10/11/2011 Page 58
cine_max
text FALSE
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 59
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 60
cine_max
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
PowerDesigner
10/11/2011
Page 61
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Value false
PowerDesigner
10/11/2011
Page 62
cine_max
Unsigned ZeroFill
(Boolean) (Boolean)
false false
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 63
cine_max
Code
Primary TRUE
Code
Name RESERVACIONES_PK
Code RESERVACIONES_PK
Name ExtUnique
Value false
Name Code
RESERVACIONES_PK RESERVACIONES_PK
PowerDesigner
10/11/2011
Page 64
cine_max
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
PowerDesigner
10/11/2011
Page 65
cine_max
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Name ci_empleado
Code CI_EMPLEADO
Sort Ascending
Name FullText
Value false
PowerDesigner
10/11/2011
Page 66
cine_max
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
IV.2.1.11Table salas
IV.2.1.11.1Card of the table salas
Name Code DBMS salas SALAS MySQL 5.0
PowerDesigner
10/11/2011
Page 67
cine_max
PowerDesigner
10/11/2011
Page 68
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify
PowerDesigner
10/11/2011
Page 69
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%
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 70
Physical Data Model %MINMAX% and %LISTVAL% and %UPPER% and %LOWER% and %RULES%
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Name CharSet
Value
PowerDesigner
10/11/2011
Page 71
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Name Code
PowerDesigner
encargado_s ENCARGADO_S
10/11/2011 Page 72
cine_max
text FALSE
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 73
cine_max
Code
Code
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
PowerDesigner
10/11/2011
Page 74
cine_max
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Name ci_empleado
Code CI_EMPLEADO
Sort Ascending
Name FullText
Value false
PowerDesigner
10/11/2011
Page 75
cine_max
IV.2.1.12Table turnos
IV.2.1.12.1Card of the table turnos
Name Code DBMS turnos TURNOS MySQL 5.0
PowerDesigner
10/11/2011
Page 76
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Name
PowerDesigner
Code
10/11/2011
Class Name
Page 77
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Value false
PowerDesigner
10/11/2011
Page 78
cine_max
Unsigned ZeroFill
(Boolean) (Boolean)
false false
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 79
cine_max
Code
Code
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
PowerDesigner
10/11/2011
Page 80
cine_max
Code
Sort Ascending
Name FullText
Value false
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
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
cine_max
PowerDesigner
10/11/2011
Page 83
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value
PowerDesigner
10/11/2011
Page 84
cine_max
Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
FALSE
PowerDesigner
10/11/2011
Page 85
cine_max
FALSE FALSE
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 86
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Name
Data Type
Value
Target Name
PowerDesigner
10/11/2011
Page 87
cine_max
MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Name
PowerDesigner
emisor
10/11/2011 Page 88
cine_max
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
10/11/2011
Page 89
cine_max
Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Minimum Value Maximum Value Default Value Unit Format Uppercase Lowercase Cannot Modify List of Values
PowerDesigner
10/11/2011
Page 90
cine_max
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Code
Name VENT_BOLETO_PK
Code VENT_BOLETO_PK
Name ExtUnique
Value false
PowerDesigner
10/11/2011
Page 91
cine_max
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
PowerDesigner
10/11/2011
Page 92
cine_max
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
PowerDesigner
10/11/2011
Page 93
cine_max
Code
Sort Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Name ci_empleado
Code CI_EMPLEADO
Sort Ascending
Name FullText
Value false
PowerDesigner
10/11/2011
Page 94
cine_max
PowerDesigner
10/11/2011
Page 95