diff --git a/DBPass b/DBPass new file mode 100644 index 0000000..568e37d --- /dev/null +++ b/DBPass @@ -0,0 +1 @@ +goldenowl \ No newline at end of file diff --git a/DBUser b/DBUser new file mode 100644 index 0000000..93ca142 --- /dev/null +++ b/DBUser @@ -0,0 +1 @@ +root \ No newline at end of file diff --git a/DefaultPrinter b/DefaultPrinter new file mode 100644 index 0000000..3d127c1 --- /dev/null +++ b/DefaultPrinter @@ -0,0 +1 @@ +Dialogo diff --git a/LoggedIn b/LoggedIn new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/LoggedIn @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/goldOwlDB.mwb b/goldOwlDB.mwb new file mode 100644 index 0000000..0354ebb Binary files /dev/null and b/goldOwlDB.mwb differ diff --git a/goldOwlDB.mwb.bak b/goldOwlDB.mwb.bak new file mode 100644 index 0000000..e031c20 Binary files /dev/null and b/goldOwlDB.mwb.bak differ diff --git a/gowl.sql b/gowl.sql new file mode 100644 index 0000000..481da08 --- /dev/null +++ b/gowl.sql @@ -0,0 +1,420 @@ +-- phpMyAdmin SQL Dump +-- version 4.5.1 +-- http://www.phpmyadmin.net +-- +-- Host: 127.0.0.1 +-- Generation Time: 16-Jun-2021 às 22:52 +-- Versão do servidor: 10.1.13-MariaDB +-- PHP Version: 5.6.20 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `gowl` +-- + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_emprestimos` +-- + +CREATE TABLE `tb_emprestimos` ( + `id` int(11) NOT NULL, + `data_emprestimo` datetime DEFAULT NULL, + `data_devolucao` datetime DEFAULT NULL, + `observacoes` text, + `tb_funcionarios_id` int(11) DEFAULT NULL, + `tb_livros_id` int(11) DEFAULT NULL, + `tb_livros_tb_fornecedores_id` int(11) DEFAULT NULL, + `tb_leitores_id` int(11) DEFAULT NULL, + `data_entrega_agendada` datetime DEFAULT NULL, + `tb_funcionarios_iddevol` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Extraindo dados da tabela `tb_emprestimos` +-- + +INSERT INTO `tb_emprestimos` (`id`, `data_emprestimo`, `data_devolucao`, `observacoes`, `tb_funcionarios_id`, `tb_livros_id`, `tb_livros_tb_fornecedores_id`, `tb_leitores_id`, `data_entrega_agendada`, `tb_funcionarios_iddevol`) VALUES +(1, '2021-06-13 22:56:51', '2021-06-13 22:57:04', 'ok', 1, 2, NULL, 1, '2021-06-16 22:56:51', 1), +(2, '2021-06-13 23:38:09', '2021-06-13 23:38:23', 'ok', 1, 2, NULL, 1, '2021-06-16 23:38:09', 1), +(3, '2021-06-13 23:38:16', '2021-06-13 23:38:20', 'ok', 1, 1, NULL, 1, '2021-06-14 23:38:16', 1), +(4, '2021-06-14 00:19:44', '2021-06-14 00:45:42', 'ok', 1, 2, NULL, 1, '2021-06-17 00:19:44', 1), +(5, '2021-06-14 00:19:55', '2021-06-14 00:45:52', 'ok', 1, 1, NULL, 1, '2021-06-15 00:19:55', 1), +(6, '2021-06-14 00:46:09', '2021-06-14 00:58:42', 'ok', 1, 2, NULL, 1, '2021-06-17 00:46:09', 1), +(7, '2021-06-14 00:47:46', '2021-06-14 00:58:48', 'ok', 1, 1, NULL, 1, '2021-06-15 00:47:46', 1), +(8, '2021-06-14 00:59:00', '2021-06-14 00:59:10', 'ok', 1, 2, NULL, 1, '2021-06-17 00:59:00', 1), +(9, '2021-06-14 00:59:02', '2021-06-14 00:59:12', 'ok', 1, 1, NULL, 1, '2021-06-15 00:59:02', 1), +(10, '2021-06-14 00:59:20', '2021-06-14 01:02:50', 'ok', 1, 1, NULL, 1, '2021-06-15 00:59:20', 1), +(11, '2021-06-14 01:02:35', '2021-06-14 01:02:52', 'ok', 1, 2, NULL, 1, '2021-06-17 01:02:35', 1), +(12, '2021-06-14 01:02:58', '2021-06-14 01:03:03', 'ok', 1, 2, NULL, 1, '2021-06-17 01:02:58', 1), +(13, '2021-06-14 01:03:10', '2021-06-14 01:03:17', 'ok', 1, 1, NULL, 1, '2021-06-15 01:03:10', 1), +(14, '2021-06-14 01:03:12', '2021-06-14 01:03:23', 'ok', 1, 2, NULL, 1, '2021-06-17 01:03:12', 1), +(15, '2021-06-14 01:03:33', '2021-06-14 01:20:34', 'ok', 1, 2, NULL, 1, '2021-06-17 01:03:33', 1), +(16, '2021-06-14 01:03:34', '2021-06-14 01:20:32', 'ok', 1, 1, NULL, 1, '2021-06-15 01:03:34', 1), +(17, '2021-06-14 01:20:42', '2021-06-14 01:21:21', 'ok', 1, 2, NULL, 1, '2021-06-17 01:20:42', 1), +(18, '2021-06-14 01:21:06', '2021-06-14 01:21:23', 'ok', 1, 1, NULL, 1, '2021-06-15 01:21:06', 1), +(19, '2021-06-14 01:28:47', '2021-06-14 02:41:01', 'ok', 1, 2, NULL, 1, '2021-06-17 01:28:47', 1), +(20, '2021-06-14 02:40:58', '2021-06-14 02:41:04', 'ok', 1, 1, NULL, 1, '2021-06-15 02:40:58', 1), +(21, '2021-06-14 02:53:29', '2021-06-14 02:54:20', 'ok', 1, 2, NULL, 1, '2021-06-17 02:53:29', 1), +(22, '2021-06-14 02:53:55', '2021-06-14 02:54:15', 'ok', 1, 1, NULL, 1, '2021-06-15 02:53:55', 1), +(23, '2021-06-04 04:02:06', '2021-06-14 14:42:22', 'ok', 1, 1, NULL, 1, '2021-06-05 04:02:06', 1), +(24, '2021-06-14 13:56:24', '2021-06-14 14:37:27', 'ok', 1, 2, NULL, 1, '2021-06-17 13:56:24', 1), +(25, '2021-06-14 14:42:44', '2021-06-14 23:00:17', 'ok', 1, 1, NULL, 1, '2021-06-15 14:42:44', 1), +(26, '2021-06-14 19:23:36', '2021-06-14 19:23:49', 'ok', 1, 2, NULL, 1, '2021-06-17 19:23:36', 1), +(27, '2021-06-14 23:00:17', '2021-06-14 23:46:19', 'ok', 1, 1, NULL, 1, '2021-06-15 23:00:17', 1), +(28, '2021-06-14 23:02:11', '2021-06-14 23:02:22', 'ok', 1, 1, NULL, 1, '2021-06-15 23:02:11', 1), +(29, '2021-06-14 23:46:09', '2021-06-14 23:46:15', 'ok', 1, 1, NULL, 1, '2021-06-15 23:46:09', 1), +(30, '2021-06-14 23:46:30', '2021-06-14 23:46:56', 'ok', 1, 1, NULL, 1, '2021-06-15 23:46:30', 1), +(31, '2021-06-14 23:47:04', '2021-06-14 23:47:18', 'ok', 1, 1, NULL, 1, '2021-06-15 23:47:04', 1), +(32, '2021-06-14 23:47:26', '2021-06-14 23:47:36', 'ok', 1, 1, NULL, 1, '2021-06-15 23:47:26', 1), +(33, '2021-06-14 23:47:50', '2021-06-14 23:47:55', 'ok', 1, 1, NULL, 1, '2021-06-15 23:47:50', 1), +(34, '2021-06-14 23:47:55', '2021-06-14 23:48:59', 'ok', 1, 1, NULL, 1, '2021-06-15 23:47:55', 1), +(35, '2021-06-14 23:48:27', '2021-06-14 23:48:34', 'ok', 1, 2, NULL, 1, '2021-06-17 23:48:27', 1), +(36, '2021-06-14 23:48:34', '2021-06-14 23:49:02', 'ok', 1, 2, NULL, 1, '2021-06-17 23:48:34', 1), +(37, '2021-06-14 23:49:25', '2021-06-14 23:49:43', 'ok', 1, 1, NULL, 1, '2021-06-15 23:49:25', 1), +(38, '2021-06-14 23:49:43', '2021-06-15 00:33:07', 'ok reeemprestado', 1, 1, NULL, 1, '2021-06-15 23:49:43', 1), +(39, '2021-06-15 00:44:25', '2021-06-15 00:44:39', 'ok', 1, 1, NULL, 1, '2021-06-16 00:44:25', 1), +(40, '2021-06-16 16:42:23', NULL, 'ok teste add to obs', 1, 1, NULL, 1, '2021-06-16 16:42:23', NULL); + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_fornecedores` +-- + +CREATE TABLE `tb_fornecedores` ( + `id` int(11) NOT NULL, + `nome` varchar(100) DEFAULT NULL, + `cnpj` varchar(100) DEFAULT NULL, + `email` varchar(200) DEFAULT NULL, + `telefone` varchar(30) DEFAULT NULL, + `celular` varchar(30) DEFAULT NULL, + `cep` varchar(100) DEFAULT NULL, + `endereco` varchar(255) DEFAULT NULL, + `numero` varchar(50) DEFAULT NULL, + `complemento` varchar(200) DEFAULT NULL, + `bairro` varchar(100) DEFAULT NULL, + `cidade` varchar(100) DEFAULT NULL, + `estado` varchar(2) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Extraindo dados da tabela `tb_fornecedores` +-- + +INSERT INTO `tb_fornecedores` (`id`, `nome`, `cnpj`, `email`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`) VALUES +(1, 'Fornecedor Teste', '231.231.231-23', 'teste@test', '(42)3232-1231', '(23)42342-3423', '21342-342', 'dfsdfsdfsdfsdf', '', 'asdasd', 'asdasdasd', 'asdasdasd', 'RR'), +(2, 'sdfsdfsdf', '234.234.234-23', 'sdfsdfsdfsdf', '(23)4234-2342', '(23)42342-3423', '21342-342', 'sdfsdf', '123', 'sdfsdf', 'sdfsdf', 'sdfsdfs', 'AP'); + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_funcionarios` +-- + +CREATE TABLE `tb_funcionarios` ( + `id` int(11) NOT NULL, + `nome` varchar(100) NOT NULL, + `rg` varchar(30) DEFAULT NULL, + `cpf` varchar(20) DEFAULT NULL, + `email` varchar(200) DEFAULT NULL, + `senha` varchar(10) NOT NULL, + `cargo` varchar(100) NOT NULL, + `nivel_acesso` varchar(50) NOT NULL, + `telefone` varchar(30) DEFAULT NULL, + `celular` varchar(30) DEFAULT NULL, + `cep` varchar(100) NOT NULL, + `endereco` varchar(255) DEFAULT NULL, + `numero` varchar(50) DEFAULT NULL, + `complemento` varchar(200) DEFAULT NULL, + `bairro` varchar(100) DEFAULT NULL, + `cidade` varchar(100) NOT NULL, + `estado` varchar(2) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Extraindo dados da tabela `tb_funcionarios` +-- + +INSERT INTO `tb_funcionarios` (`id`, `nome`, `rg`, `cpf`, `email`, `senha`, `cargo`, `nivel_acesso`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`) VALUES +(1, 'Administrador', '7.275.275-1', '033.330.003-13', 'admin@admin', 'admin', 'Administrador', 'Usuario', '( ) - ', '(12)31231-2312', '84570-000', 'rua Miguel Grenteski', '13', 'Casa', 'Eldorado', 'Mallet', 'PR'); + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_leitores` +-- + +CREATE TABLE `tb_leitores` ( + `id` int(11) NOT NULL, + `nome` varchar(100) NOT NULL, + `rg` varchar(30) DEFAULT NULL, + `cpf` varchar(20) DEFAULT NULL, + `email` varchar(200) DEFAULT NULL, + `telefone` varchar(30) DEFAULT NULL, + `celular` varchar(30) DEFAULT NULL, + `cep` varchar(100) DEFAULT NULL, + `endereco` varchar(255) DEFAULT NULL, + `numero` varchar(50) DEFAULT NULL, + `complemento` varchar(200) DEFAULT NULL, + `bairro` varchar(100) DEFAULT NULL, + `cidade` varchar(100) DEFAULT NULL, + `estado` varchar(2) DEFAULT NULL, + `tipo` varchar(15) DEFAULT NULL, + `is_locked` tinyint(4) DEFAULT NULL, + `curso` varchar(45) DEFAULT NULL, + `curso_ano` varchar(45) DEFAULT NULL, + `qtd_emprestimos` int(3) DEFAULT NULL, + `emprestmax` int(11) DEFAULT NULL, + `observacoes` varchar(225) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Extraindo dados da tabela `tb_leitores` +-- + +INSERT INTO `tb_leitores` (`id`, `nome`, `rg`, `cpf`, `email`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`, `tipo`, `is_locked`, `curso`, `curso_ano`, `qtd_emprestimos`, `emprestmax`, `observacoes`) VALUES +(1, 'Leitor 1', '111.111.111-1', '111.111.111-11', 'leitor@test.com', '(42)99999-9999', '(42)99999-9999', '84570-000', 'Rua Tal', '100', 'casa', 'Centro', 'Mallet', 'PR', 'Estudante', 0, 'Letras Ingles / Noturno', '4', 0, 3, 'leitor ok - primeiro cadastro - cadastro completo'), +(2, 'Leitor numero 2', ' . . - ', '123.123.123-23', 'leitor2@leitor2.com', '( ) - ', '(42)45355-6666', '84570-000', 'Rua 2', '1212', 'Casa', 'Centro', 'Mallet', 'PR', 'Professor', 0, 'Letras', '0', 0, 0, 'Professor - emprestimos ilimitados'); + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_livros` +-- + +CREATE TABLE `tb_livros` ( + `id` int(11) NOT NULL, + `titulo` varchar(100) NOT NULL, + `autor` varchar(45) NOT NULL, + `editora` varchar(45) NOT NULL, + `isbn` varchar(13) NOT NULL, + `ano` varchar(4) NOT NULL, + `serie` varchar(45) DEFAULT NULL, + `edicao` varchar(45) DEFAULT NULL, + `idioma` varchar(25) NOT NULL, + `tb_fornecedores_id` int(11) DEFAULT NULL, + `piso` varchar(45) DEFAULT NULL, + `corredor` varchar(45) DEFAULT NULL, + `posicao` varchar(45) DEFAULT NULL, + `secao` varchar(45) DEFAULT NULL, + `disponibilidade` varchar(15) NOT NULL, + `observacoes` varchar(225) DEFAULT NULL, + `is_emprestado` tinyint(4) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Extraindo dados da tabela `tb_livros` +-- + +INSERT INTO `tb_livros` (`id`, `titulo`, `autor`, `editora`, `isbn`, `ano`, `serie`, `edicao`, `idioma`, `tb_fornecedores_id`, `piso`, `corredor`, `posicao`, `secao`, `disponibilidade`, `observacoes`, `is_emprestado`) VALUES +(1, 'Alice no Pais das Maravilhas', 'Lewis Carrol', 'Dumi Edit', '1234567890123', '1894', 'Especial', '25', 'Portugues', 1, 'Piso 2', 'corredor 1', '1A', 'Literatura Universal', '0', 'ok teste add to obs', 1), +(2, 'A Revolução dos Bichos', 'George Orwell', 'Dumi Edit', '0987654321234', '1934', 'Must be Read Books', '2', 'Portugues', 1, 'Piso 2', 'corredor 1', '1A', 'Literatura Universal', '3', 'ok', 0); + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_multa` +-- + +CREATE TABLE `tb_multa` ( + `idmulta` int(11) NOT NULL, + `dias_atraso` int(6) NOT NULL, + `valor_multa` decimal(10,2) DEFAULT NULL, + `esta_pago` tinyint(4) DEFAULT NULL, + `tb_leitores_id` int(11) NOT NULL, + `tb_emprestimos_id` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Extraindo dados da tabela `tb_multa` +-- + +INSERT INTO `tb_multa` (`idmulta`, `dias_atraso`, `valor_multa`, `esta_pago`, `tb_leitores_id`, `tb_emprestimos_id`) VALUES +(1, -2, '-6.00', 0, 1, 6), +(2, 0, '0.00', 0, 1, 25); + +-- -------------------------------------------------------- + +-- +-- Estrutura da tabela `tb_opcoes` +-- + +CREATE TABLE `tb_opcoes` ( + `id` int(11) NOT NULL, + `data` varchar(45) NOT NULL, + `parentid` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Extraindo dados da tabela `tb_opcoes` +-- + +INSERT INTO `tb_opcoes` (`id`, `data`, `parentid`) VALUES +(1, 'piso', NULL), +(2, 'corredor', NULL), +(3, 'secao', NULL), +(4, 'posicao', NULL), +(5, 'disponibilidade', NULL), +(6, 'printerurl', NULL), +(7, 'instituicaonome', NULL), +(8, 'instiuicaoendereco', NULL), +(9, 'tiposdeusuarios', NULL), +(10, 'server url', NULL), +(11, 'libraryname', NULL), +(12, 'libraryAddress', NULL), +(13, '0', 5), +(14, '3', 5), +(15, 'Biblioteca de Hogwarts', 7), +(16, 'Rua Epsilon, 888, Cidade Imaginaria, LA ', 8), +(17, 'piso 1', 1), +(18, 'Estudante', 9), +(19, 'Professor', 9), +(20, 'corredor 1', 2), +(21, '1A', 3), +(22, 'Literatura Universal', 4), +(23, '127.0.0.1', 12), +(24, 'Nome da Biblioteca', NULL), +(25, 'valor_multa', NULL), +(26, '300', 25), +(27, 'Piso 2', 1), +(28, 'piso 3', 1), +(29, 'Piso 5', 1); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `tb_emprestimos` +-- +ALTER TABLE `tb_emprestimos` + ADD PRIMARY KEY (`id`), + ADD KEY `fk_tb_emprestimos_tb_funcionarios1_idx` (`tb_funcionarios_id`), + ADD KEY `fk_tb_emprestimos_tb_livros1_idx` (`tb_livros_id`,`tb_livros_tb_fornecedores_id`), + ADD KEY `fk_tb_emprestimos_tb_leitores1_idx` (`tb_leitores_id`), + ADD KEY `fk_tb_emprestimos_tb_funcionarios2_idx` (`tb_funcionarios_iddevol`); + +-- +-- Indexes for table `tb_fornecedores` +-- +ALTER TABLE `tb_fornecedores` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `tb_funcionarios` +-- +ALTER TABLE `tb_funcionarios` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `tb_leitores` +-- +ALTER TABLE `tb_leitores` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `tb_livros` +-- +ALTER TABLE `tb_livros` + ADD PRIMARY KEY (`id`), + ADD KEY `fk_tb_livros_tb_fornecedores1_idx` (`tb_fornecedores_id`); + +-- +-- Indexes for table `tb_multa` +-- +ALTER TABLE `tb_multa` + ADD PRIMARY KEY (`idmulta`,`tb_emprestimos_id`), + ADD KEY `fk_multa_tb_leitores1_idx` (`tb_leitores_id`), + ADD KEY `fk_tb_multa_tb_emprestimos1_idx` (`tb_emprestimos_id`); + +-- +-- Indexes for table `tb_opcoes` +-- +ALTER TABLE `tb_opcoes` + ADD PRIMARY KEY (`id`), + ADD KEY `fk_Opcoes_Opcoes1_idx` (`parentid`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `tb_emprestimos` +-- +ALTER TABLE `tb_emprestimos` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; +-- +-- AUTO_INCREMENT for table `tb_fornecedores` +-- +ALTER TABLE `tb_fornecedores` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +-- +-- AUTO_INCREMENT for table `tb_funcionarios` +-- +ALTER TABLE `tb_funcionarios` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; +-- +-- AUTO_INCREMENT for table `tb_leitores` +-- +ALTER TABLE `tb_leitores` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +-- +-- AUTO_INCREMENT for table `tb_livros` +-- +ALTER TABLE `tb_livros` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +-- +-- AUTO_INCREMENT for table `tb_multa` +-- +ALTER TABLE `tb_multa` + MODIFY `idmulta` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +-- +-- AUTO_INCREMENT for table `tb_opcoes` +-- +ALTER TABLE `tb_opcoes` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; +-- +-- Constraints for dumped tables +-- + +-- +-- Limitadores para a tabela `tb_emprestimos` +-- +ALTER TABLE `tb_emprestimos` + ADD CONSTRAINT `fk_tb_emprestimos_tb_funcionarios1` FOREIGN KEY (`tb_funcionarios_id`) REFERENCES `tb_funcionarios` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, + ADD CONSTRAINT `fk_tb_emprestimos_tb_funcionarios2` FOREIGN KEY (`tb_funcionarios_iddevol`) REFERENCES `tb_funcionarios` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, + ADD CONSTRAINT `fk_tb_emprestimos_tb_leitores1` FOREIGN KEY (`tb_leitores_id`) REFERENCES `tb_leitores` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, + ADD CONSTRAINT `fk_tb_emprestimos_tb_livros1` FOREIGN KEY (`tb_livros_id`) REFERENCES `tb_livros` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- +-- Limitadores para a tabela `tb_livros` +-- +ALTER TABLE `tb_livros` + ADD CONSTRAINT `fk_tb_livros_tb_fornecedores1` FOREIGN KEY (`tb_fornecedores_id`) REFERENCES `tb_fornecedores` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- +-- Limitadores para a tabela `tb_multa` +-- +ALTER TABLE `tb_multa` + ADD CONSTRAINT `fk_multa_tb_leitores1` FOREIGN KEY (`tb_leitores_id`) REFERENCES `tb_leitores` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, + ADD CONSTRAINT `fk_tb_multa_tb_emprestimos1` FOREIGN KEY (`tb_emprestimos_id`) REFERENCES `tb_emprestimos` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- +-- Limitadores para a tabela `tb_opcoes` +-- +ALTER TABLE `tb_opcoes` + ADD CONSTRAINT `fk_Opcoes_Opcoes1` FOREIGN KEY (`parentid`) REFERENCES `tb_opcoes` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/images/2.png b/images/2.png new file mode 100644 index 0000000..45249d1 Binary files /dev/null and b/images/2.png differ diff --git a/images/BarCodes/00000001 b/images/BarCodes/00000001 new file mode 100644 index 0000000..aa758c8 Binary files /dev/null and b/images/BarCodes/00000001 differ diff --git a/images/BarCodes/00000002 b/images/BarCodes/00000002 new file mode 100644 index 0000000..582e6b9 Binary files /dev/null and b/images/BarCodes/00000002 differ diff --git a/images/BarCodes/00000003 b/images/BarCodes/00000003 new file mode 100644 index 0000000..1bcc67e Binary files /dev/null and b/images/BarCodes/00000003 differ diff --git a/images/BarCodes/00000007 b/images/BarCodes/00000007 new file mode 100644 index 0000000..0190a5f Binary files /dev/null and b/images/BarCodes/00000007 differ diff --git a/images/Books/0987654321234 b/images/Books/0987654321234 new file mode 100644 index 0000000..add1b43 Binary files /dev/null and b/images/Books/0987654321234 differ diff --git a/images/Books/1231231231231 b/images/Books/1231231231231 new file mode 100644 index 0000000..2984ddc Binary files /dev/null and b/images/Books/1231231231231 differ diff --git a/images/Books/1234567890123 b/images/Books/1234567890123 new file mode 100644 index 0000000..2984ddc Binary files /dev/null and b/images/Books/1234567890123 differ diff --git a/images/Cards/1.png b/images/Cards/1.png new file mode 100644 index 0000000..7db8dcb Binary files /dev/null and b/images/Cards/1.png differ diff --git a/images/Cards/2.png b/images/Cards/2.png new file mode 100644 index 0000000..ca1d160 Binary files /dev/null and b/images/Cards/2.png differ diff --git a/images/Cards/XXXXXXX.png b/images/Cards/XXXXXXX.png new file mode 100644 index 0000000..0e0f20f Binary files /dev/null and b/images/Cards/XXXXXXX.png differ diff --git a/images/Devolucao/BarCode/00000003 b/images/Devolucao/BarCode/00000003 new file mode 100644 index 0000000..1bcc67e Binary files /dev/null and b/images/Devolucao/BarCode/00000003 differ diff --git a/images/Devolucao/BarCode/00000004 b/images/Devolucao/BarCode/00000004 new file mode 100644 index 0000000..313f196 Binary files /dev/null and b/images/Devolucao/BarCode/00000004 differ diff --git a/images/Devolucao/QrCode/00000003 b/images/Devolucao/QrCode/00000003 new file mode 100644 index 0000000..3c405b9 Binary files /dev/null and b/images/Devolucao/QrCode/00000003 differ diff --git a/images/Devolucao/QrCode/00000004 b/images/Devolucao/QrCode/00000004 new file mode 100644 index 0000000..e83d80a Binary files /dev/null and b/images/Devolucao/QrCode/00000004 differ diff --git a/images/Emprestimos/BarCode/00000004 b/images/Emprestimos/BarCode/00000004 new file mode 100644 index 0000000..313f196 Binary files /dev/null and b/images/Emprestimos/BarCode/00000004 differ diff --git a/images/Emprestimos/QrCode/00000004 b/images/Emprestimos/QrCode/00000004 new file mode 100644 index 0000000..e83d80a Binary files /dev/null and b/images/Emprestimos/QrCode/00000004 differ diff --git a/images/Multas/BarCode/00000002 b/images/Multas/BarCode/00000002 new file mode 100644 index 0000000..582e6b9 Binary files /dev/null and b/images/Multas/BarCode/00000002 differ diff --git a/images/Multas/QrCode/00000002 b/images/Multas/QrCode/00000002 new file mode 100644 index 0000000..115844e Binary files /dev/null and b/images/Multas/QrCode/00000002 differ diff --git a/images/QrCodes/00000001 b/images/QrCodes/00000001 new file mode 100644 index 0000000..dd77cb1 Binary files /dev/null and b/images/QrCodes/00000001 differ diff --git a/images/QrCodes/00000002 b/images/QrCodes/00000002 new file mode 100644 index 0000000..115844e Binary files /dev/null and b/images/QrCodes/00000002 differ diff --git a/images/QrCodes/00000003 b/images/QrCodes/00000003 new file mode 100644 index 0000000..3c405b9 Binary files /dev/null and b/images/QrCodes/00000003 differ diff --git a/images/QrCodes/00000007 b/images/QrCodes/00000007 new file mode 100644 index 0000000..638dce4 Binary files /dev/null and b/images/QrCodes/00000007 differ diff --git a/images/QrCodes/000002 (2).png b/images/QrCodes/000002 (2).png new file mode 100644 index 0000000..80f7262 Binary files /dev/null and b/images/QrCodes/000002 (2).png differ diff --git a/images/QrCodes/000002.png b/images/QrCodes/000002.png new file mode 100644 index 0000000..d64079e Binary files /dev/null and b/images/QrCodes/000002.png differ diff --git a/images/QrCodes/1.png b/images/QrCodes/1.png new file mode 100644 index 0000000..ae722a8 Binary files /dev/null and b/images/QrCodes/1.png differ diff --git a/images/Usuarios/1 b/images/Usuarios/1 new file mode 100644 index 0000000..5ceced5 Binary files /dev/null and b/images/Usuarios/1 differ diff --git a/images/Usuarios/1.jpg b/images/Usuarios/1.jpg new file mode 100644 index 0000000..2984ddc Binary files /dev/null and b/images/Usuarios/1.jpg differ diff --git a/images/Usuarios/2 b/images/Usuarios/2 new file mode 100644 index 0000000..5ceced5 Binary files /dev/null and b/images/Usuarios/2 differ diff --git a/images/Usuarios/222.222.222-22 b/images/Usuarios/222.222.222-22 new file mode 100644 index 0000000..2984ddc Binary files /dev/null and b/images/Usuarios/222.222.222-22 differ diff --git a/images/Usuarios/7 b/images/Usuarios/7 new file mode 100644 index 0000000..fc70f24 Binary files /dev/null and b/images/Usuarios/7 differ diff --git a/images/cardBackground.jpg b/images/cardBackground.jpg new file mode 100644 index 0000000..ebfbb45 Binary files /dev/null and b/images/cardBackground.jpg differ diff --git a/images/cartao.png b/images/cartao.png new file mode 100644 index 0000000..ccfc2cd Binary files /dev/null and b/images/cartao.png differ diff --git a/images/libraryLogo.png b/images/libraryLogo.png new file mode 100644 index 0000000..2e8534f Binary files /dev/null and b/images/libraryLogo.png differ diff --git a/ipserver b/ipserver new file mode 100644 index 0000000..d18580b --- /dev/null +++ b/ipserver @@ -0,0 +1 @@ +localhost \ No newline at end of file diff --git a/notas.txt b/notas.txt new file mode 100644 index 0000000..1c28132 --- /dev/null +++ b/notas.txt @@ -0,0 +1 @@ +-- remover VISIBLE e linha com create table if no exist \ No newline at end of file diff --git a/scriptMySqlWorkB.sql b/scriptMySqlWorkB.sql new file mode 100644 index 0000000..9d8b04d --- /dev/null +++ b/scriptMySqlWorkB.sql @@ -0,0 +1,315 @@ +-- MySQL Script generated by MySQL Workbench +-- Thu Jun 17 00:28:49 2021 +-- Model: New Model Version: 1.0 +-- MySQL Workbench Forward Engineering + +SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; +SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; +SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; + +-- ----------------------------------------------------- +-- Schema gowl +-- ----------------------------------------------------- + +-- ----------------------------------------------------- +-- Schema gowl +-- ----------------------------------------------------- +CREATE SCHEMA IF NOT EXISTS `gowl` DEFAULT CHARACTER SET utf8 ; +USE `gowl` ; + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_leitores` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_leitores` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `nome` VARCHAR(100) NOT NULL, + `rg` VARCHAR(30) NULL DEFAULT NULL, + `cpf` VARCHAR(20) NULL DEFAULT NULL, + `email` VARCHAR(200) NULL DEFAULT NULL, + `telefone` VARCHAR(30) NULL DEFAULT NULL, + `celular` VARCHAR(30) NULL DEFAULT NULL, + `cep` VARCHAR(100) NULL DEFAULT NULL, + `endereco` VARCHAR(255) NULL DEFAULT NULL, + `numero` VARCHAR(50) NULL DEFAULT NULL, + `complemento` VARCHAR(200) NULL DEFAULT NULL, + `bairro` VARCHAR(100) NULL DEFAULT NULL, + `cidade` VARCHAR(100) NULL DEFAULT NULL, + `estado` VARCHAR(2) NULL DEFAULT NULL, + `tipo` VARCHAR(15) NULL, + `is_locked` TINYINT NULL, + `curso` VARCHAR(45) NULL, + `curso_ano` VARCHAR(45) NULL, + `qtd_emprestimos` INT(3) NULL, + `emprestmax` INT NULL, + `observacoes` VARCHAR(225) NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_fornecedores` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_fornecedores` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `nome` VARCHAR(100) NULL DEFAULT NULL, + `cnpj` VARCHAR(100) NULL DEFAULT NULL, + `email` VARCHAR(200) NULL DEFAULT NULL, + `telefone` VARCHAR(30) NULL DEFAULT NULL, + `celular` VARCHAR(30) NULL DEFAULT NULL, + `cep` VARCHAR(100) NULL DEFAULT NULL, + `endereco` VARCHAR(255) NULL DEFAULT NULL, + `numero` VARCHAR(50) NULL DEFAULT NULL, + `complemento` VARCHAR(200) NULL DEFAULT NULL, + `bairro` VARCHAR(100) NULL DEFAULT NULL, + `cidade` VARCHAR(100) NULL DEFAULT NULL, + `estado` VARCHAR(2) NULL DEFAULT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_funcionarios` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_funcionarios` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `nome` VARCHAR(100) NOT NULL, + `rg` VARCHAR(30) NULL, + `cpf` VARCHAR(20) NULL, + `email` VARCHAR(200) NULL, + `senha` VARCHAR(10) NOT NULL, + `cargo` VARCHAR(100) NOT NULL, + `nivel_acesso` VARCHAR(50) NOT NULL, + `telefone` VARCHAR(30) NULL, + `celular` VARCHAR(30) NULL, + `cep` VARCHAR(100) NOT NULL, + `endereco` VARCHAR(255) NULL, + `numero` VARCHAR(50) NULL, + `complemento` VARCHAR(200) NULL, + `bairro` VARCHAR(100) NULL, + `cidade` VARCHAR(100) NOT NULL, + `estado` VARCHAR(2) NOT NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_livros` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_livros` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `titulo` VARCHAR(100) NOT NULL, + `autor` VARCHAR(45) NOT NULL, + `editora` VARCHAR(45) NOT NULL, + `isbn` VARCHAR(13) NOT NULL, + `ano` VARCHAR(4) NOT NULL, + `serie` VARCHAR(45) NULL, + `edicao` VARCHAR(45) NULL, + `idioma` VARCHAR(25) NOT NULL, + `tb_fornecedores_id` INT(11) NULL, + `piso` VARCHAR(45) NULL, + `corredor` VARCHAR(45) NULL, + `posicao` VARCHAR(45) NULL, + `secao` VARCHAR(45) NULL, + `disponibilidade` VARCHAR(15) NOT NULL, + `observacoes` VARCHAR(225) NULL, + `is_emprestado` TINYINT NULL, + PRIMARY KEY (`id`), + INDEX `fk_tb_livros_tb_fornecedores1_idx` (`tb_fornecedores_id` ASC), + CONSTRAINT `fk_tb_livros_tb_fornecedores1` + FOREIGN KEY (`tb_fornecedores_id`) + REFERENCES `gowl`.`tb_fornecedores` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_emprestimos` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_emprestimos` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `data_emprestimo` DATETIME NULL, + `data_devolucao` DATETIME NULL DEFAULT NULL, + `observacoes` TEXT NULL DEFAULT NULL, + `tb_funcionarios_id` INT(11) NULL, + `tb_livros_id` INT(11) NULL, + `tb_livros_tb_fornecedores_id` INT(11) NULL, + `tb_leitores_id` INT(11) NULL, + `data_entrega_agendada` DATETIME NULL, + `tb_funcionarios_iddevol` INT(11) NULL, + `static_id_emprestimo` INT NULL, + PRIMARY KEY (`id`), + INDEX `fk_tb_emprestimos_tb_funcionarios1_idx` (`tb_funcionarios_id` ASC), + INDEX `fk_tb_emprestimos_tb_livros1_idx` (`tb_livros_id` ASC, `tb_livros_tb_fornecedores_id` ASC), + INDEX `fk_tb_emprestimos_tb_leitores1_idx` (`tb_leitores_id` ASC), + INDEX `fk_tb_emprestimos_tb_funcionarios2_idx` (`tb_funcionarios_iddevol` ASC), + CONSTRAINT `fk_tb_emprestimos_tb_funcionarios1` + FOREIGN KEY (`tb_funcionarios_id`) + REFERENCES `gowl`.`tb_funcionarios` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_tb_emprestimos_tb_livros1` + FOREIGN KEY (`tb_livros_id`) + REFERENCES `gowl`.`tb_livros` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_tb_emprestimos_tb_leitores1` + FOREIGN KEY (`tb_leitores_id`) + REFERENCES `gowl`.`tb_leitores` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_tb_emprestimos_tb_funcionarios2` + FOREIGN KEY (`tb_funcionarios_iddevol`) + REFERENCES `gowl`.`tb_funcionarios` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_multa` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_multa` ( + `idmulta` INT NOT NULL AUTO_INCREMENT, + `dias_atraso` INT(6) NOT NULL, + `valor_multa` DECIMAL(10,2) NULL, + `esta_pago` TINYINT NULL, + `tb_leitores_id` INT(11) NOT NULL, + `tb_emprestimos_id` INT(11) NOT NULL, + PRIMARY KEY (`idmulta`, `tb_emprestimos_id`), + INDEX `fk_multa_tb_leitores1_idx` (`tb_leitores_id` ASC), + INDEX `fk_tb_multa_tb_emprestimos1_idx` (`tb_emprestimos_id` ASC), + CONSTRAINT `fk_multa_tb_leitores1` + FOREIGN KEY (`tb_leitores_id`) + REFERENCES `gowl`.`tb_leitores` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_tb_multa_tb_emprestimos1` + FOREIGN KEY (`tb_emprestimos_id`) + REFERENCES `gowl`.`tb_emprestimos` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_opcoes` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_opcoes` ( + `id` INT NOT NULL AUTO_INCREMENT, + `data` VARCHAR(45) NOT NULL, + `parentid` INT NULL, + PRIMARY KEY (`id`), + INDEX `fk_Opcoes_Opcoes1_idx` (`parentid` ASC), + CONSTRAINT `fk_Opcoes_Opcoes1` + FOREIGN KEY (`parentid`) + REFERENCES `gowl`.`tb_opcoes` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + + +-- ----------------------------------------------------- +-- Table `gowl`.`tb_recibos` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `gowl`.`tb_recibos` ( + `id` INT NOT NULL AUTO_INCREMENT, + `emprestimo_id` INT NULL, + `data_emprestimo` VARCHAR(45) NULL, + `data_devolucao_agendada` VARCHAR(45) NULL, + `data_entrega` VARCHAR(45) NULL, + `livro` VARCHAR(45) NULL, + `usuario` VARCHAR(45) NULL, + `tipo` VARCHAR(45) NULL, + `multa` VARCHAR(45) NULL, + `status` VARCHAR(45) NULL, + `funcionario` VARCHAR(45) NULL, + PRIMARY KEY (`id`)) +ENGINE = InnoDB; + + +SET SQL_MODE=@OLD_SQL_MODE; +SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; +SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; + +-- ----------------------------------------------------- +-- Data for table `gowl`.`tb_leitores` +-- ----------------------------------------------------- +START TRANSACTION; +USE `gowl`; +INSERT INTO `gowl`.`tb_leitores` (`id`, `nome`, `rg`, `cpf`, `email`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`, `tipo`, `is_locked`, `curso`, `curso_ano`, `qtd_emprestimos`, `emprestmax`, `observacoes`) VALUES (1, 'Leitor 1', '111.111.111-1', '111.111.111-11', 'leitor@test.com', '(42)99999-9999', '(42)99999-9999', '84570-000', 'Rua Tal', '100', 'casa', 'Centro', 'Mallet', 'PR', 'Estudante', 0, 'Letras Ingles / Noturno', '4', 0, 3, 'leitor ok - primeiro cadastro - cadastro completo'); +INSERT INTO `gowl`.`tb_leitores` (`id`, `nome`, `rg`, `cpf`, `email`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`, `tipo`, `is_locked`, `curso`, `curso_ano`, `qtd_emprestimos`, `emprestmax`, `observacoes`) VALUES (2, 'Leitor numero 2', '123.123.123-3', '123.123.123-23', 'leitor2@leitor2.com', '(42)98988-8989', '(42)45355-6666', '84570-000', 'Rua 2', '1212', 'Casa', 'Centro', 'Mallet', 'PR', 'Professor', 0, 'Letras', '0', 0, 0, 'Professor - emprestimos ilimitados'); + +COMMIT; + + +-- ----------------------------------------------------- +-- Data for table `gowl`.`tb_fornecedores` +-- ----------------------------------------------------- +START TRANSACTION; +USE `gowl`; +INSERT INTO `gowl`.`tb_fornecedores` (`id`, `nome`, `cnpj`, `email`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`) VALUES (1, 'Fornecedor Teste', '111.111.111/0001-11', 'teste@test', '423232123123', NULL, '84570-000', 'Rua Fccinal', '00', 'Predio', NULL, 'Mallet', 'PR'); + +COMMIT; + + +-- ----------------------------------------------------- +-- Data for table `gowl`.`tb_funcionarios` +-- ----------------------------------------------------- +START TRANSACTION; +USE `gowl`; +INSERT INTO `gowl`.`tb_funcionarios` (`id`, `nome`, `rg`, `cpf`, `email`, `senha`, `cargo`, `nivel_acesso`, `telefone`, `celular`, `cep`, `endereco`, `numero`, `complemento`, `bairro`, `cidade`, `estado`) VALUES (1, 'Administrador', '7.275.275-1', '033.330.003-13', 'admin@admin', 'admin', 'Administrador', 'Administrador', '(42)99987-6543', '123123123123', '84570-000', 'rua Miguel Grenteski', '13', 'Casa', 'Eldorado', 'Mallet', 'PR'); + +COMMIT; + + +-- ----------------------------------------------------- +-- Data for table `gowl`.`tb_livros` +-- ----------------------------------------------------- +START TRANSACTION; +USE `gowl`; +INSERT INTO `gowl`.`tb_livros` (`id`, `titulo`, `autor`, `editora`, `isbn`, `ano`, `serie`, `edicao`, `idioma`, `tb_fornecedores_id`, `piso`, `corredor`, `posicao`, `secao`, `disponibilidade`, `observacoes`, `is_emprestado`) VALUES (1, 'Alice no Pais das Maravilhas', 'Lewis Carrol', 'Dumi Edit', '1234567890123', '1894', 'Especial', '25', 'Portugues', 1, '1', 'b', 'a3', 'Literatura Universal', '1', 'ok', 0); +INSERT INTO `gowl`.`tb_livros` (`id`, `titulo`, `autor`, `editora`, `isbn`, `ano`, `serie`, `edicao`, `idioma`, `tb_fornecedores_id`, `piso`, `corredor`, `posicao`, `secao`, `disponibilidade`, `observacoes`, `is_emprestado`) VALUES (2, 'A Revolução dos Bichos', 'George Orwell', 'Dumi Edit', '0987654321234', '1934', 'Must be Read Books', '2', 'Portugues', 1, '1', 'b', 'a3', 'Literatura Universal', '3', 'ok', 0); + +COMMIT; + + +-- ----------------------------------------------------- +-- Data for table `gowl`.`tb_opcoes` +-- ----------------------------------------------------- +START TRANSACTION; +USE `gowl`; +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (1, 'piso', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (2, 'corredor', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (3, 'secao', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (4, 'posicao', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (5, 'disponibilidade', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (6, 'printerurl', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (7, 'instituicaonome', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (8, 'instiuicaoendereco', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (17, 'piso 1', 1); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (20, 'corredor 1', 2); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (21, '1A', 3); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (22, 'Literatura Universal', 4); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (13, '0', 5); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (14, '3', 5); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (15, 'Biblioteca de Hogwarts', 7); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (16, 'Rua Epsilon, 888, Cidade Imaginaria, LA ', 8); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (9, 'tiposdeusuarios', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (18, 'Estudante', 9); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (19, 'Professor', 9); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (10, 'server url', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (11, 'libraryname', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (12, 'libraryAddress', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (23, '127.0.0.1', 12); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (24, 'Nome da Biblioteca', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (25, 'valor_multa', NULL); +INSERT INTO `gowl`.`tb_opcoes` (`id`, `data`, `parentid`) VALUES (26, '300', 25); + +COMMIT; +