Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Model: PhysicalDataModel_1
Report: Diccionario de Datos
Author: USUARIO
Version:
Date: 25-Feb-20
Summary:
Physical Data Model PhysicalDataModel_1 Report Diccionario de Datos
Table of Contents
I Specifications
Include specifications here...
II
IV
V PDM Diagrams
V.1Model level diagrams
V.1.1 Diagram PhysicalDiagram_1
PROVEEDOR
multimedia id_proveedor integer <pk>
id_multimedia integer <pk> nombre_proveedor varchar(200)
nombre_multimedia varchar(150) ruc varchar(11)
tipo_mutimedia varchar(100) direccion varchar(250)
tipo varchar(50)
PRODUCTO
id_producto integer <pk>
nombre_producto varchar(150)
id_categoria integer <fk1>
id_multimedia integer <fk2> USUARIO
precio_compra numeric(20,2) id_usuario integer <pk>
precio_venta numeric(20,2) nombre_usuario varchar(60)
id_proveedor integer <fk3> user_name varchar(80)
id_usuario integer <fk4> password varchar(80)
nivel_usuario integer <fk>
estado_usuario smallint
CATEGORIA GRUPO_USUARIO
id_categoria integer <pk> nivel_usuario integer <pk>
nombre_categoria varchar(50) nombre_grupo varchar(100)
estado_grupo smallint
VI
VII.2
VII.3 Tables
VII.3.1 Model level tables
/*==============================================================*/
/* Table: CATEGORIA */
/*==============================================================*/
create table CATEGORIA
(
ID_CATEGORIA integer not null,
NOMBRE_CATEGORIA varchar(50) null,
constraint PK_CATEGORIA primary key clustered (ID_CATEGORIA)
);
VII.3.1.4.10.2 Check constraint name of the column id_categoria of the table CATEGORIA
CKC_ID_CATEGORIA_CATEGORI
VII.3.1.4.10.4 Server validation rule of the column id_categoria of the table CATEGORIA
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.4.11.2 Check constraint name of the column nombre_categoria of the table CATEGORIA
CKC_NOMBRE_CATEGORIA_CATEGORI
VII.3.1.4.11.4 Server validation rule of the column nombre_categoria of the table CATEGORIA
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
/*==============================================================*/
/* Table: GRUPO_USUARIO */
/*==============================================================*/
create table GRUPO_USUARIO
(
NIVEL_USUARIO integer not null,
NOMBRE_GRUPO varchar(100) null,
ESTADO_GRUPO smallint null,
constraint PK_GRUPO_USUARIO primary key clustered (NIVEL_USUARIO)
);
VII.3.1.5.10.2 Check constraint name of the column nivel_usuario of the table GRUPO_USUARIO
CKC_NIVEL_USUARIO_GRUPO_US
VII.3.1.5.10.4 Server validation rule of the column nivel_usuario of the table GRUPO_USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.5.11.2 Check constraint name of the column nombre_grupo of the table GRUPO_USUARIO
CKC_NOMBRE_GRUPO_GRUPO_US
Default Value
Unit
Format
Cannot Modify No
List Of Values
VII.3.1.5.11.4 Server validation rule of the column nombre_grupo of the table GRUPO_USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.5.12.2 Check constraint name of the column estado_grupo of the table GRUPO_USUARIO
CKC_ESTADO_GRUPO_GRUPO_US
VII.3.1.5.12.4 Server validation rule of the column estado_grupo of the table GRUPO_USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
/*==============================================================*/
/* Table: MULTIMEDIA */
/*==============================================================*/
create table MULTIMEDIA
(
ID_MULTIMEDIA integer not null,
NOMBRE_MULTIMEDIA varchar(150) null,
TIPO_MUTIMEDIA varchar(100) null,
constraint PK_MULTIMEDIA primary key clustered (ID_MULTIMEDIA)
);
VII.3.1.6.10.2 Check constraint name of the column id_multimedia of the table multimedia
CKC_ID_MULTIMEDIA_MULTIMED
VII.3.1.6.10.4 Server validation rule of the column id_multimedia of the table multimedia
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.6.11.2 Check constraint name of the column nombre_multimedia of the table multimedia
CKC_NOMBRE_MULTIMEDIA_MULTIMED
VII.3.1.6.11.4 Server validation rule of the column nombre_multimedia of the table multimedia
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.6.12.2 Check constraint name of the column tipo_mutimedia of the table multimedia
CKC_TIPO_MUTIMEDIA_MULTIMED
VII.3.1.6.12.4 Server validation rule of the column tipo_mutimedia of the table multimedia
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
CKT_PRODUCTO
/*==============================================================*/
/* Table: PRODUCTO */
/*==============================================================*/
create table PRODUCTO
(
ID_PRODUCTO integer not null,
NOMBRE_PRODUCTO varchar(150) null,
ID_CATEGORIA integer null,
ID_MULTIMEDIA integer null,
PRECIO_COMPRA numeric(20,2) null,
PRECIO_VENTA numeric(20,2) null,
ID_PROVEEDOR integer null,
ID_USUARIO integer null,
constraint PK_PRODUCTO primary key clustered (ID_PRODUCTO)
);
id_categoria ID_CATEGORIA
id_multimedia ID_MULTIMEDIA
precio_compra PRECIO_COMPRA
precio_venta PRECIO_VENTA
id_proveedor ID_PROVEEDOR
id_usuario ID_USUARIO
VII.3.1.7.10.2 Check constraint name of the column id_producto of the table PRODUCTO
CKC_ID_PRODUCTO_PRODUCTO
VII.3.1.7.10.4 Server validation rule of the column id_producto of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Name nombre_producto
Code NOMBRE_PRODUCTO
Data Type varchar(150)
Mandatory No
VII.3.1.7.11.2 Check constraint name of the column nombre_producto of the table PRODUCTO
CKC_NOMBRE_PRODUCTO_PRODUCTO
VII.3.1.7.11.4 Server validation rule of the column nombre_producto of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.7.12.2 Check constraint name of the column id_categoria of the table PRODUCTO
CKC_ID_CATEGORIA_PRODUCTO
Cannot Modify No
List Of Values
VII.3.1.7.12.4 Server validation rule of the column id_categoria of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.7.13.2 Check constraint name of the column id_multimedia of the table PRODUCTO
CKC_ID_MULTIMEDIA_PRODUCTO
VII.3.1.7.13.4 Server validation rule of the column id_multimedia of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.7.14.2 Check constraint name of the column precio_compra of the table PRODUCTO
CKC_PRECIO_COMPRA_PRODUCTO
VII.3.1.7.14.4 Server validation rule of the column precio_compra of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.7.15.2 Check constraint name of the column precio_venta of the table PRODUCTO
CKC_PRECIO_VENTA_PRODUCTO
VII.3.1.7.15.4 Server validation rule of the column precio_venta of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.7.16.2 Check constraint name of the column id_proveedor of the table PRODUCTO
CKC_ID_PROVEEDOR_PRODUCTO
VII.3.1.7.16.4 Server validation rule of the column id_proveedor of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.7.17.2 Check constraint name of the column id_usuario of the table PRODUCTO
CKC_ID_USUARIO_PRODUCTO
VII.3.1.7.17.4 Server validation rule of the column id_usuario of the table PRODUCTO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
/*==============================================================*/
/* Table: PROVEEDOR */
/*==============================================================*/
Name id_proveedor
Code ID_PROVEEDOR
Data Type integer
Mandatory Yes
VII.3.1.8.10.2 Check constraint name of the column id_proveedor of the table PROVEEDOR
CKC_ID_PROVEEDOR_PROVEEDO
VII.3.1.8.10.4 Server validation rule of the column id_proveedor of the table PROVEEDOR
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.8.11.2 Check constraint name of the column nombre_proveedor of the table PROVEEDOR
CKC_NOMBRE_PROVEEDOR_PROVEEDO
Minimum Value
Maximum Value
Default Value
Unit
Format
Cannot Modify No
List Of Values
VII.3.1.8.11.4 Server validation rule of the column nombre_proveedor of the table PROVEEDOR
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.8.12.2 Check constraint name of the column ruc of the table PROVEEDOR
CKC_RUC_PROVEEDO
VII.3.1.8.12.4 Server validation rule of the column ruc of the table PROVEEDOR
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.8.13.2 Check constraint name of the column direccion of the table PROVEEDOR
CKC_DIRECCION_PROVEEDO
VII.3.1.8.13.4 Server validation rule of the column direccion of the table PROVEEDOR
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.8.14.2 Check constraint name of the column tipo of the table PROVEEDOR
CKC_TIPO_PROVEEDO
Minimum Value
Maximum Value
Default Value
Unit
Format
Cannot Modify No
List Of Values
VII.3.1.8.14.4 Server validation rule of the column tipo of the table PROVEEDOR
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
/*==============================================================*/
/* Table: USUARIO */
/*==============================================================*/
create table USUARIO
(
ID_USUARIO integer not null,
NOMBRE_USUARIO varchar(60) null,
USER_NAME varchar(80) null,
PASSWORD varchar(80) null,
NIVEL_USUARIO integer null,
ESTADO_USUARIO smallint null,
constraint PK_USUARIO primary key clustered (ID_USUARIO)
);
PhysicalDiagram_1 PHYSICALDIAGRAM_1
VII.3.1.9.11.2 Check constraint name of the column id_usuario of the table USUARIO
CKC_ID_USUARIO_USUARIO
VII.3.1.9.11.4 Server validation rule of the column id_usuario of the table USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.9.12.2 Check constraint name of the column nombre_usuario of the table USUARIO
CKC_NOMBRE_USUARIO_USUARIO
Cannot Modify No
List Of Values
VII.3.1.9.12.4 Server validation rule of the column nombre_usuario of the table USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.9.13.2 Check constraint name of the column user_name of the table USUARIO
CKC_USER_NAME_USUARIO
VII.3.1.9.13.4 Server validation rule of the column user_name of the table USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Name password
Code PASSWORD
Data Type varchar(80)
Mandatory No
VII.3.1.9.14.2 Check constraint name of the column password of the table USUARIO
CKC_PASSWORD_USUARIO
VII.3.1.9.14.4 Server validation rule of the column password of the table USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.9.15.2 Check constraint name of the column nivel_usuario of the table USUARIO
CKC_NIVEL_USUARIO_USUARIO
Cannot Modify No
List Of Values
VII.3.1.9.15.4 Server validation rule of the column nivel_usuario of the table USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
VII.3.1.9.16.2 Check constraint name of the column estado_usuario of the table USUARIO
CKC_ESTADO_USUARIO_USUARIO
VII.3.1.9.16.4 Server validation rule of the column estado_usuario of the table USUARIO
%MINMAX% and %LISTVAL% and %CASE% and %RULES%