Вы находитесь на странице: 1из 1

create table if not exists libro(

id_libro int not null,

Nombre varchar (100),

Autor varchar(100) not null,

Editorial varchar(100) not null,

Categoria varchar(100),

precio_unitario decimal NOT NULL,

cantexistencias numeric(10)NOT NULL,

Minstok numeric(10)NOT NULL,

Maxstok numeric(10) NOT NULL,

Primary key (id_libro)

);

create table if not exists ventas(

cod_ventas int not null,

fecha date,

hora time,

libros_totales int not null,

subtotal int not null,

iva int not null,

total_con_iva int not null,

primary key(cod_ventas),

empleado_id_emplado int not null,

constraint fkventas_empleado

foreign key(empleado_id_empleado)

references empleado(id_empleado)

);

Вам также может понравиться