Sei sulla pagina 1di 2

USE MANTENIMIENTO

go
create table Cliente(
IDCLIENTE int primary key not null,
NOMBRE varchar(40) not null,
SEXO char(1),
EDAD integer,
NACIONALIDAD varchar(40) not null,
DNI nchar(9) not null,
DIRECCION varchar(30) not null,
EMAIL varchar(30) not null,
CELULAR nchar(9) not null,
)
insert into Cliente (IDCLIENTE,NOMBRE,APELLIDO,EDAD,NACIONALIDAD,DNI,DIRECCION,E
MAIL,CELULAR)
values (0001,"JAUREGUI SANAVIA, PATRICIA" )
create table Vehiculo(
PLACA int identity primary key not null,
TIPO varchar(20) not null,
MARCA varchar(20) not null,
MODELO varchar(20) not null,
AO nchar(10) not null,
MOTOR varchar(30) not null,
CHASIS varchar(30) not null,
COLOR text not null,
KM nchar(10) not null,
)
create table TRABAJO(
IDTRABAJO int identity primary key not null,
TIPO varchar(30) not null,
SISTEMA varchar(30) not null,
TALLER varchar(30) not null,
HORAS numeric not null,
COSTO money not null,
)
create table REPUESTOS(
CODREPUESTO int identity primary key not null,
TIPO nvarchar(20) not null,
DESCRIPCCION varchar(40) not null,
FABRICACION nchar(20) not null,
STOCK nchar(10) not null,
COSTO money not null,
)
create table PAGO(
IDPADO int identity primary key not null,
TIPO nchar(10) not null,
CUOTAS numeric(2)not null,
INTERES nchar(10) not null,
BANCO text not null,
)
create table VENTASERVICIO(
PLACA int identity primary key not null,

NROSERVICIO numeric(2) not null,


)
go
execute sp_helpdb "MANTENIMIENTO"

Potrebbero piacerti anche