Files
sistema-caja/database/create.sql

29 lines
684 B
SQL

drop table if exists egresos;
drop table if exists tipos_egreso;
create table egresos(
id int(10) unsigned primary key auto_increment,
nro varchar(191) not null,
descripcion varchar(191) not null,
valor int(10) not null,
tipo_id int(10) not null
);
create table tipos_egreso(
id int(10) unsigned primary key auto_increment,
nombre varchar(191) not null
);
insert into tipos_egreso (nombre) values
('Guia Materia Prima'),
('Factura Materia Prima'),
('Factura Gastos Generales'),
('Pago Partime'),
('Gasto Menor Materia Prima'),
('Gasto General Sin Respaldo'),
('Gasto General Con Boleta'),
('Anticipo Arriendo'),
('Anticipo Personal'),
('Retiros Gerencia'),
('Otro');