Está en la página 1de 2

create table cliente(

cod_cli char(6) not null,


direccion_cli varchar(50)not null,
telefono_cli char(10),
coddist_cli varchar(25)not null,
correo_e varchar (50) not null,
web varchar(50) not null)

create table empleado(
cod_emp char(6) not null,
nombres_emp varchar(50)not null,
ape_pater_emp char(10),
ape_mater_emp varchar(25)not null,
fecha_nac_emp varchar (50) not null,
direccion_emp varchar(50) not null,
telefono_emp char(10),
coddist_emp varchar(25) not null,
correo_e_emp varchar(50) not null,
fecha_ingreso_emp varchar(50)not null,
cod_supervisor char(10))

create table detalleboleta(
cod_bol char(10) not null,
cod_pro char(25)not null,
cantidad char(10),
presioventa char(25)not null)

create table boleta(
cod_bol char(6) not null,
cod_emp varchar(50)not null,
fecha_bol char(10),
cod_cli char(25)not null,
estado_bol varchar (50) not null)

create table distrito(
cod_dist char(6) not null,
descrip_dist varchar(50)not null)

create table producto(
cod_pro char(6) not null,
descrip_pro varchar(50)not null,
presio_pro char(10),
stock_act_pro varchar(25)not null,
stock_min_pro varchar (25) not null,
cod_tipo_pro char(50) not null)

create table cliente_per_juridica(
cod_cli char(6) not null,
razonsocial_cli varchar(50)not null,
ruc_cli varchar(50),
contacto_cli varchar(25)not null,
cdo_cargo_cli char (50) not null)

create table cliente_per_natural(
cod_cli char(6) not null,
nombres_cli varchar(50)not null,
ape_pater_cli char(10),
ape_mater_cli varchar(25)not null)

create table tipo_producto(
cod_tipo_pro char(10) not null,
descrip_tipo_pro varchar(50)not null)

También podría gustarte