Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
6 views20 pages

DB

Uploaded by

Erick Micas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views20 pages

DB

Uploaded by

Erick Micas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 20

-- --------------------------------------------------------

-- Host: 127.0.0.1
-- Server version: 8.4.3 - MySQL Community Server - GPL
-- Server OS: Win64
-- HeidiSQL Version: 12.8.0.6908
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;


/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

-- Dumping structure for table db_oneclick.categories


CREATE TABLE IF NOT EXISTS `categories` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.categories: ~2 rows (approximately)


INSERT INTO `categories` (`id`, `name`, `description`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'Serviço', NULL, '2024-08-27 15:00:14', '2024-08-27 15:00:14', NULL),
(2, 'Produto', NULL, '2024-08-27 15:01:04', '2024-08-27 15:01:04', NULL);

-- Dumping structure for table db_oneclick.clients


CREATE TABLE IF NOT EXISTS `clients` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`address` varchar(15) DEFAULT NULL,
`contact` varchar(254) DEFAULT NULL,
`email` int DEFAULT NULL,
`nuit` int DEFAULT '0',
`user` int NOT NULL,
`company` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `clients_fk_companies` (`company`),
KEY `clients_fk_users` (`user`),
CONSTRAINT `clients_fk_companies` FOREIGN KEY (`company`) REFERENCES `companies`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `clients_fk_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON
DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.clients: ~14 rows (approximately)


INSERT INTO `clients` (`id`, `name`, `address`, `contact`, `email`, `nuit`, `user`,
`company`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'SHOPRITE', '', '', 0, 0, 1, 1, '2024-08-27 13:16:10', '2024-08-27
13:16:10', NULL),
(2, 'COCACOLA', 'ESTRADA NACIONA', NULL, NULL, 400010781, 1, 1, '2024-09-14
10:20:32', '2024-09-14 10:20:32', NULL),
(5, 'MUTAPA MINING E PROCESSING LDA', 'MAPUTO', '', 0, 400994730, 2, 1,
'2024-09-23 04:57:28', '2024-09-23 04:57:28', NULL),
(6, 'IGREJA ASSEMBLEIA DA AFRICA', '25 DE SETENBRO ', '868776071', 0, 0, 2,
1, '2024-10-08 07:21:55', '2024-10-08 07:21:55', NULL),
(7, 'COMUNIKA', 'BEIRA RUA ANTON', '845772632', 0, 113560411, 2, 1, '2024-10-
09 08:25:59', '2024-10-09 08:25:59', NULL),
(8, 'DOM CHARLES', 'BEIRA', '876155733', 0, 401463968, 2, 1, '2025-01-13
09:43:26', '2025-01-13 09:43:26', NULL),
(9, 'OFICINA R3,LDA', 'Cidade de Chimo', '844823751', 0, 401772707, 2, 1,
'2025-02-13 09:10:22', '2025-02-13 09:10:22', NULL),
(11, 'METROTEC, SU, LDA', 'BEIRA- SOFALA', '', 0, 0, 2, 1, '2025-02-28
03:17:51', '2025-02-28 03:18:58', NULL),
(12, 'CARLOS', '', '', 0, 0, 2, 1, '2025-03-09 14:23:05', '2025-03-09
14:23:05', NULL),
(13, 'JACKSON TRANSPORT (PTY) LTD', 'SOUTH AFRICA', '27117432960', 0, 0, 2,
1, '2025-03-28 06:12:14', '2025-03-28 06:12:14', NULL),
(14, 'SERVICOS ELECTROTECNICO INDUSTRIAIS LDA', 'RUA LUÍS INÁCIO', '', 0,
400023778, 2, 1, '2025-04-03 18:14:34', '2025-04-03 18:14:34', NULL),
(15, 'YK TRADING LIMITDA', 'BEIRA', '', 0, 0, 2, 1, '2025-04-13 07:36:30',
'2025-04-13 07:36:30', NULL),
(16, 'HB LOGISTICA, LDA', '', '', 0, 401120671, 2, 1, '2025-04-22 06:03:32',
'2025-04-22 06:03:32', NULL),
(17, 'HARVEST GATE LDA', 'Estrada Naciona', '', 0, 401586301, 2, 1, '2025-04-
25 10:24:00', '2025-04-25 10:24:00', NULL);

-- Dumping structure for table db_oneclick.companies


CREATE TABLE IF NOT EXISTS `companies` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`nuit` int NOT NULL,
`email` varchar(50) NOT NULL,
`contact` int NOT NULL,
`address` varchar(100) NOT NULL,
`logo` varchar(254) DEFAULT NULL,
`status` int NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.companies: ~1 rows (approximately)


INSERT INTO `companies` (`id`, `name`, `nuit`, `email`, `contact`, `address`,
`logo`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'SENTRICA', 401527850, '[email protected]', 870772203, 'Bairro Chaimite
- Beira', '1755201988_04621eb58ad7f7b16f4e.png', 1, '2024-08-27 11:49:34', '2025-
08-14 18:06:28', NULL);

-- Dumping structure for table db_oneclick.configurations


CREATE TABLE IF NOT EXISTS `configurations` (
`id` int NOT NULL AUTO_INCREMENT,
`value` varchar(255) NOT NULL,
`type` varchar(100) NOT NULL,
`description` text NOT NULL,
`user` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `configurations_fk_users` (`user`),
CONSTRAINT `configurations_fk_users` FOREIGN KEY (`user`) REFERENCES `users`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.configurations: ~4 rows (approximately)


INSERT INTO `configurations` (`id`, `value`, `type`, `description`, `user`,
`created_at`, `updated_at`, `deleted_at`) VALUES
(2, '7', 'validation', 'Duração da cotação', 1, '2024-08-27 11:53:54', '2024-
08-27 11:53:54', NULL),
(3, 'AD', 'requisition_number', '', 1, '2025-07-19 09:48:50', NULL, NULL),
(4, '7', 'requisition_date_payment', '', 1, '2025-07-20 10:50:08', NULL,
NULL),
(5, '50000', 'requisition_medium_value', 'Valor Médio para aprovacção da
requisição', 1, '2025-08-01 10:51:37', '2025-08-01 07:51:58', NULL);

-- Dumping structure for table db_oneclick.cotations


CREATE TABLE IF NOT EXISTS `cotations` (
`id` int NOT NULL AUTO_INCREMENT,
`reference` int NOT NULL,
`price` decimal(10,2) NOT NULL,
`vat` int NOT NULL DEFAULT '0',
`descount` int NOT NULL DEFAULT '0',
`note` text,
`client` int NOT NULL,
`payment` int NOT NULL DEFAULT '0',
`validation` varchar(30) NOT NULL,
`currency` int NOT NULL,
`exchange` decimal(10,2) NOT NULL DEFAULT '1.00',
`company` int NOT NULL,
`user` int NOT NULL,
`print` int NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `cotations_fk_companies` (`company`),
KEY `cotations_fk_users` (`user`),
KEY `cotations_fk_clients` (`client`),
KEY `cotations_fk_currencies` (`currency`),
CONSTRAINT `cotations_fk_clients` FOREIGN KEY (`client`) REFERENCES `clients`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cotations_fk_companies` FOREIGN KEY (`company`) REFERENCES
`companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cotations_fk_currencies` FOREIGN KEY (`currency`) REFERENCES
`currencies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cotations_fk_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON
DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.cotations: ~12 rows (approximately)


INSERT INTO `cotations` (`id`, `reference`, `price`, `vat`, `descount`, `note`,
`client`, `payment`, `validation`, `currency`, `exchange`, `company`, `user`,
`print`, `created_at`, `updated_at`, `deleted_at`) VALUES
(5, 2, 99500.00, 0, 0, '', 7, 0, '7 dias', 1, 0.00, 1, 2, 2024, '2024-11-08
06:47:43', '2024-11-08 07:16:10', NULL),
(7, 3, 48125.00, 0, 0, '', 9, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-02-13
09:10:34', '2025-02-13 09:20:27', NULL),
(9, 4, 72700.30, 0, 0, NULL, 11, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-02-
28 03:19:42', '2025-03-24 05:29:42', NULL),
(11, 6, 22500.00, 0, 0, '', 13, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-03-28
06:13:24', '2025-04-13 08:52:07', NULL),
(12, 7, 291400.00, 0, 0, '', 14, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-04-
03 18:15:13', '2025-04-03 18:49:32', NULL),
(13, 8, 171087.00, 0, 0, NULL, 15, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-
04-13 07:36:51', '2025-04-13 08:21:15', NULL),
(14, 9, 135150.00, 0, 0, '', 15, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-04-
13 08:25:10', '2025-04-13 08:31:16', NULL),
(15, 10, 687500.00, 0, 0, NULL, 16, 0, '7 dias', 1, 0.00, 1, 2, 2025, '2025-
04-22 06:05:00', '2025-04-24 05:09:15', NULL),
(16, 11, 0.00, 0, 0, NULL, 17, 0, '7 dias', 1, 0.00, 1, 2, 0, '2025-04-25
10:30:51', '2025-04-25 10:30:51', NULL),
(17, 12, 535746.00, 0, 0, NULL, 2, 0, '7 dias', 2, 67.00, 1, 1, 0, '2025-05-
30 04:50:01', '2025-05-30 04:50:01', NULL),
(18, 13, 0.00, 0, 0, NULL, 5, 0, '7 dias', 1, 0.00, 1, 1, 0, '2025-05-30
04:55:56', '2025-05-30 04:55:56', NULL),
(19, 14, 1740.00, 0, 0, NULL, 15, 0, '7 dias', 1, 1.00, 1, 1, 0, '2025-05-30
05:04:55', '2025-05-30 05:04:55', NULL);

-- Dumping structure for table db_oneclick.currencies


CREATE TABLE IF NOT EXISTS `currencies` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.currencies: ~3 rows (approximately)


INSERT INTO `currencies` (`id`, `name`, `description`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'MZN', 'Moéda moçambicana', NULL, NULL, NULL),
(2, 'USD', 'Móeda norte americana', NULL, NULL, NULL),
(3, 'ZAR', 'Moéda sul africana', NULL, NULL, NULL);

-- Dumping structure for table db_oneclick.departments


CREATE TABLE IF NOT EXISTS `departments` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table db_oneclick.departments: ~4 rows (approximately)


INSERT INTO `departments` (`id`, `name`, `description`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'GENERIC', '', '2025-07-17 13:43:43', NULL, NULL),
(2, 'ADMINISTRAÇÃO', '', '2025-07-17 13:43:53', NULL, NULL),
(3, 'OPERAÇÕES', '', '2025-07-17 13:43:58', NULL, NULL),
(4, 'FINANÇAS', 'FIN', NULL, NULL, NULL);

-- Dumping structure for table db_oneclick.files


CREATE TABLE IF NOT EXISTS `files` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`file` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`path` varchar(255) NOT NULL,
`uuid` char(50) NOT NULL,
`user_id` int NOT NULL,
`requisition_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_files_users` (`user_id`),
KEY `FK_files_requisitions` (`requisition_id`),
CONSTRAINT `FK_files_requisitions` FOREIGN KEY (`requisition_id`) REFERENCES
`requisitions` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `FK_files_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON
DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.files: ~5 rows (approximately)


INSERT INTO `files` (`id`, `name`, `file`, `type`, `path`, `uuid`, `user_id`,
`requisition_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(6, 'Cotacao', '1754641769_47e3cbffdcdb7c74f967.pdf', 'requisition_file',
'C:\\laragon\\www\\oneclick_sys\\writable\\uploads/requisitions\\', '019888cc-af6a-
731d-b3cd-b2c7d3d3b256', 1, 1070, '2025-08-08 06:29:29', '2025-08-08 06:29:29',
NULL),
(7, 'Recibo', '1754940280_02f309a992d79c051364.pdf', 'requisition_file',
'C:\\laragon\\www\\oneclick_sys\\writable\\uploads/requisitions\\', '01989a97-9263-
70e5-991a-d1c0ddd663a5', 1, 1070, '2025-08-11 17:24:40', '2025-08-11 17:24:40',
NULL),
(8, 'Recibo ', '1754940912_d9259fe0c0fc720b9189.pdf', 'requisition_file',
'C:\\laragon\\www\\oneclick_sys\\writable\\uploads/requisitions\\', '01989aa1-349c-
70bc-b32c-616e76fb8886', 1, 1070, '2025-08-11 17:35:12', '2025-08-11 17:35:12',
NULL),
(9, 'Recibo', '1754940968_348a327f092b31d46d4b.pdf', 'requisition_file',
'C:\\laragon\\www\\oneclick_sys\\writable\\uploads/requisitions\\', '01989aa2-0f24-
7200-bc57-9226416f52f4', 1, 1070, '2025-08-11 17:36:08', '2025-08-11 17:36:08',
NULL),
(11, 'Carta', '1754942706_df9fdda87f308937e893.pdf', 'finance_file', 'C:\\
laragon\\www\\oneclick_sys\\writable\\uploads/finance\\', '01989abc-9279-707d-8986-
7d91be34f5ea', 1, 1070, '2025-08-11 18:05:06', '2025-08-11 18:05:06', NULL);

-- Dumping structure for table db_oneclick.financial_accounts


CREATE TABLE IF NOT EXISTS `financial_accounts` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text,
`account` varchar(20) NOT NULL,
`nib` varchar(50) DEFAULT NULL,
`balance` decimal(10,2) NOT NULL,
`company` int NOT NULL,
`user` int NOT NULL,
`currency` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `financial_accounts_fk_companies` (`company`),
KEY `financial_accounts_fk_users` (`user`),
KEY `financial_accounts_fk_currencies` (`currency`),
CONSTRAINT `financial_accounts_fk_companies` FOREIGN KEY (`company`) REFERENCES
`companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `financial_accounts_fk_currencies` FOREIGN KEY (`currency`) REFERENCES
`currencies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `financial_accounts_fk_users` FOREIGN KEY (`user`) REFERENCES `users`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.financial_accounts: ~2 rows (approximately)


INSERT INTO `financial_accounts` (`id`, `name`, `description`, `account`, `nib`,
`balance`, `company`, `user`, `currency`, `created_at`, `updated_at`, `deleted_at`)
VALUES
(1, 'BCI', '', '31633126010001', '000800001633126010128', 1901527.24, 1, 1,
1, '2024-08-27 13:06:15', '2024-08-27 13:06:15', NULL),
(2, 'Millennium BIM', '', '1231964603', '000100000123196460357', 0.00, 1, 1,
1, '2024-08-27 13:06:49', '2024-08-27 13:06:49', NULL);

-- Dumping structure for table db_oneclick.headings


CREATE TABLE IF NOT EXISTS `headings` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`user_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_headings_users` (`user_id`),
CONSTRAINT `FK_headings_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;

-- Dumping data for table db_oneclick.headings: ~29 rows (approximately)


INSERT INTO `headings` (`id`, `name`, `user_id`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'GASTOS COM PESSOAL_RH', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(2, 'UNIFORMES', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05', NULL),
(3, 'EPIS', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05', NULL),
(4, 'EDM', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05', NULL),
(5, 'FIPAG', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05', NULL),
(6, 'SERVICOS NET_TV CABO', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(7, 'RENDAS_ESCRITORIO', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(8, 'COMBUSTIVEIS(GERADOR E VEICULOS UTILITARIOS)', 1, '2025-08-14 23:31:46',
'2025-08-14 23:32:05', NULL),
(9, 'SERVICOS DE MANUTENCAO PREDIAL', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(10, 'SERVICOS DE LIMPEZA PREDIAL', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(11, 'SERVICOS DE GRAFICA', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(12, 'SERVICOS DE SEGURANCA ESTATICA', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(13, 'MATERIAL DE HIGIENE E AGUA CONSUMO', 1, '2025-08-14 23:31:46', '2025-
08-14 23:32:05', NULL),
(14, 'CONSUMIVEIS E SERVICOS DE IT', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(15, 'MATERIAL DE ESCRITORIO', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(16, 'TELEFINIA', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05', NULL),
(17, 'OBRIACOES -IMPOSTOS DE TAXAS ESPECIAIS', 1, '2025-08-14 23:31:46',
'2025-08-14 23:32:05', NULL),
(18, 'GASTOS SEM DESCRICAO DIRETA', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(19, 'SERVICOS DE CONSULTORIA', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL),
(20, 'VIAGENS', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05', NULL),
(21, 'IMPOSTOS AO ESTADO', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(22, 'SEGUROS DIVERSOS', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(23, 'DESPACHOS ADUANEIROS', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(24, 'GESTAO E MANUTENCAO DE FROTA VEICULOS', 1, '2025-08-14 23:31:46',
'2025-08-14 23:32:05', NULL),
(25, 'CONSUMIVEIS GERAIS', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(26, 'MATERIAL TECNICO', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(27, 'SERVICO TECNICO', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(28, 'MATERIAL ESPECIFICO', 1, '2025-08-14 23:31:46', '2025-08-14 23:32:05',
NULL),
(29, 'LOGISTICA OPERACIONAL', 1, '2025-08-14 23:31:46', '2025-08-14
23:32:05', NULL);

-- Dumping structure for table db_oneclick.invoices


CREATE TABLE IF NOT EXISTS `invoices` (
`id` int NOT NULL AUTO_INCREMENT,
`reference` int NOT NULL,
`price` decimal(10,2) NOT NULL,
`vat` int NOT NULL DEFAULT '0',
`descount` int NOT NULL DEFAULT '0',
`note` text,
`client` int NOT NULL,
`payment` varchar(15) DEFAULT 'Pendente',
`validation` varchar(30) NOT NULL,
`currency` int NOT NULL,
`exchange` decimal(10,2) NOT NULL DEFAULT '1.00',
`company` int NOT NULL,
`user` int NOT NULL,
`print` int NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `invoices_fk_companies` (`company`),
KEY `invoices_fk_users` (`user`),
KEY `invoices_fk_client` (`client`),
KEY `cinvoices_fk_currencies` (`currency`),
CONSTRAINT `cinvoices_fk_currencies` FOREIGN KEY (`currency`) REFERENCES
`currencies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `invoices_fk_client` FOREIGN KEY (`client`) REFERENCES `clients`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `invoices_fk_companies` FOREIGN KEY (`company`) REFERENCES `companies`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `invoices_fk_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON
DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.invoices: ~0 rows (approximately)

-- Dumping structure for table db_oneclick.items


CREATE TABLE IF NOT EXISTS `items` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(254) NOT NULL,
`description` text,
`price` decimal(10,2) NOT NULL,
`vat_id` int NOT NULL,
`category_id` int NOT NULL,
`unit_id` int NOT NULL,
`user_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `item_fk_categories` (`category_id`),
KEY `item_fk_units` (`unit_id`),
KEY `item_fk_users` (`user_id`),
KEY `item_fk_vat_id` (`vat_id`),
CONSTRAINT `item_fk_categories` FOREIGN KEY (`category_id`) REFERENCES
`categories` (`id`) ON UPDATE CASCADE,
CONSTRAINT `item_fk_units` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON
UPDATE CASCADE,
CONSTRAINT `item_fk_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON
UPDATE CASCADE,
CONSTRAINT `item_fk_vat_id` FOREIGN KEY (`vat_id`) REFERENCES `vat` (`id`) ON
UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.items: ~6 rows (approximately)


INSERT INTO `items` (`id`, `name`, `description`, `price`, `vat_id`, `category_id`,
`unit_id`, `user_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(80, 'Motor Diesel', '', 100000.00, 3, 2, 1, 13, '2025-08-05 17:29:16',
'2025-08-05 17:29:16', NULL),
(81, 'Agua', '', 10000.00, 3, 2, 1, 13, '2025-08-05 17:30:01', '2025-08-05
17:30:01', NULL),
(82, 'Pneus', '', 70.00, 3, 2, 1, 13, '2025-08-05 18:16:49', '2025-08-05
18:16:49', NULL),
(83, 'Ferro', '', 66000.70, 3, 2, 1, 13, '2025-08-05 18:25:00', '2025-08-05
18:25:00', NULL),
(84, 'Mouse', '', 500.00, 3, 2, 1, 9, '2025-08-05 18:26:43', '2025-08-05
18:26:43', NULL),
(85, 'Agua', '', 15000.00, 3, 2, 1, 13, '2025-08-06 16:44:17', '2025-08-06
16:44:17', NULL),
(86, 'Gerador eléctrico', '', 50000.00, 3, 2, 1, 13, '2025-08-06 16:45:16',
'2025-08-06 16:45:16', NULL);

-- Dumping structure for table db_oneclick.item_requisition


CREATE TABLE IF NOT EXISTS `item_requisition` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`price` decimal(10,2) NOT NULL DEFAULT '0.00',
`quantity` int NOT NULL DEFAULT '0',
`user_id` int NOT NULL,
`item_id` int NOT NULL,
`vat_id` int NOT NULL,
`requisition_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `item_requisition_fk_users` (`user_id`),
KEY `item_requisition_fk_item` (`item_id`),
KEY `item_requisition_fk_requisition` (`requisition_id`),
KEY `item_requisition_fk_vat` (`vat_id`),
CONSTRAINT `item_requisition_fk_item` FOREIGN KEY (`item_id`) REFERENCES `items`
(`id`) ON UPDATE CASCADE,
CONSTRAINT `item_requisition_fk_requisition` FOREIGN KEY (`requisition_id`)
REFERENCES `requisitions` (`id`) ON UPDATE CASCADE,
CONSTRAINT `item_requisition_fk_users` FOREIGN KEY (`user_id`) REFERENCES `users`
(`id`) ON UPDATE CASCADE,
CONSTRAINT `item_requisition_fk_vat` FOREIGN KEY (`vat_id`) REFERENCES `vat`
(`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.item_requisition: ~7 rows (approximately)


INSERT INTO `item_requisition` (`id`, `name`, `description`, `price`, `quantity`,
`user_id`, `item_id`, `vat_id`, `requisition_id`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(76, 'Motor Diesel', '', 100000.00, 1, 13, 80, 3, 1071, '2025-08-05
17:29:16', '2025-08-05 17:29:16', NULL),
(77, 'Agua', '', 10000.00, 1, 13, 81, 3, 1067, '2025-08-05 17:30:01', '2025-
08-05 17:30:01', NULL),
(78, 'Pneus', '', 70.00, 1, 13, 82, 3, 1067, '2025-08-05 18:16:49', '2025-08-
05 18:16:49', NULL),
(79, 'Ferro', '', 66000.70, 1, 13, 83, 3, 1067, '2025-08-05 18:25:00', '2025-
08-05 18:25:00', NULL),
(80, 'Mouse', '', 500.00, 1, 9, 84, 3, 1068, '2025-08-05 18:26:43', '2025-08-
05 18:26:43', NULL),
(81, 'Agua', '', 15000.00, 2, 13, 85, 3, 1069, '2025-08-06 16:44:17', '2025-
08-06 16:44:17', NULL),
(82, 'Gerador eléctrico', '', 50000.00, 2, 13, 86, 3, 1070, '2025-08-06
16:45:16', '2025-08-06 16:45:16', NULL),
(91, 'Agua', '', 1500000.00, 1, 1, 85, 3, 1072, '2025-08-14 21:32:21', '2025-
08-14 21:56:25', '2025-08-14 21:56:25'),
(92, 'Mouse', '', 50000.00, 1, 1, 84, 3, 1072, '2025-08-14 21:33:58', '2025-
08-14 21:56:09', '2025-08-14 21:56:09'),
(93, 'Mouse', '', 50000.00, 1, 1, 84, 3, 1072, '2025-08-14 21:37:18', '2025-
08-14 21:38:59', '2025-08-14 21:38:59'),
(94, 'Mouse', '', 50000.00, 1, 1, 84, 3, 1072, '2025-08-14 21:38:47', '2025-
08-14 21:38:54', '2025-08-14 21:38:54'),
(95, 'Mouse', '', 100.00, 1, 1, 84, 3, 1072, '2025-08-14 21:39:24', '2025-08-
14 21:56:18', '2025-08-14 21:56:18'),
(96, 'Mouse', '', 1.50, 1, 1, 84, 3, 1072, '2025-08-14 21:43:33', '2025-08-14
21:56:12', '2025-08-14 21:56:12'),
(97, 'Mouse', '', 50000.00, 1, 1, 84, 3, 1072, '2025-08-14 21:45:07', '2025-
08-14 21:56:15', '2025-08-14 21:56:15'),
(98, 'Mouse', '', 500.00, 1, 1, 84, 3, 1072, '2025-08-14 21:56:01', '2025-08-
14 21:56:01', NULL),
(99, 'Ferro', '', 660007.00, 1, 1, 83, 3, 1072, '2025-08-14 21:56:42', '2025-
08-14 21:57:02', '2025-08-14 21:57:02'),
(100, 'Ferro', '', 57.00, 1, 1, 83, 3, 1072, '2025-08-14 21:57:34', '2025-08-
14 21:57:34', NULL),
(101, 'Mouse', '', 1.50, 1, 1, 84, 3, 1072, '2025-08-14 22:33:39', '2025-08-
14 22:33:39', NULL),
(102, 'Mouse', '', 500.00, 1, 1, 84, 3, 1072, '2025-08-14 22:33:49', '2025-
08-14 22:33:59', '2025-08-14 22:33:59');

-- Dumping structure for table db_oneclick.migrations


CREATE TABLE IF NOT EXISTS `migrations` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`version` varchar(255) NOT NULL,
`class` varchar(255) NOT NULL,
`group` varchar(255) NOT NULL,
`namespace` varchar(255) NOT NULL,
`time` int NOT NULL,
`batch` int unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.migrations: ~16 rows (approximately)


INSERT INTO `migrations` (`id`, `version`, `class`, `group`, `namespace`, `time`,
`batch`) VALUES
(33, '2024-08-12-130235', 'App\\Database\\Migrations\\Companies', 'default',
'App', 1724759279, 1),
(34, '2024-08-12-135654', 'App\\Database\\Migrations\\Units', 'default',
'App', 1724759279, 1),
(35, '2024-08-12-184550', 'App\\Database\\Migrations\\UserLevel', 'default',
'App', 1724759279, 1),
(36, '2024-08-13-170005', 'App\\Database\\Migrations\\Users', 'default',
'App', 1724759279, 1),
(37, '2024-08-14-124454', 'App\\Database\\Migrations\\Categories', 'default',
'App', 1724759279, 1),
(38, '2024-08-15-135038', 'App\\Database\\Migrations\\Clients', 'default',
'App', 1724759279, 1),
(39, '2024-08-15-135820', 'App\\Database\\Migrations\\Services', 'default',
'App', 1724759279, 1),
(40, '2024-08-15-141522', 'App\\Database\\Migrations\\Configurations',
'default', 'App', 1724759279, 1),
(41, '2024-08-15-141523', 'App\\Database\\Migrations\\Currencies', 'default',
'App', 1724759279, 1),
(42, '2024-08-15-141825', 'App\\Database\\Migrations\\Cotations', 'default',
'App', 1724759279, 1),
(43, '2024-08-15-201159', 'App\\Database\\Migrations\\Invoices', 'default',
'App', 1724759279, 1),
(44, '2024-08-15-204316', 'App\\Database\\Migrations\\FinancialAccounts',
'default', 'App', 1724759279, 1),
(45, '2024-08-15-210947', 'App\\Database\\Migrations\\PaymentMethods',
'default', 'App', 1724759279, 1),
(46, '2024-08-15-211348', 'App\\Database\\Migrations\\Payments', 'default',
'App', 1724759279, 1),
(47, '2024-08-15-212143', 'App\\Database\\Migrations\\ServiceInvoices',
'default', 'App', 1724759279, 1),
(48, '2024-08-15-212202', 'App\\Database\\Migrations\\ServiceCotations',
'default', 'App', 1724759279, 1);
-- Dumping structure for table db_oneclick.payments
CREATE TABLE IF NOT EXISTS `payments` (
`id` int NOT NULL AUTO_INCREMENT,
`description` text NOT NULL,
`amount` decimal(10,2) NOT NULL,
`invoice` int NOT NULL,
`financial_account` int NOT NULL,
`payment_method` int NOT NULL,
`company` int NOT NULL,
`user` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `payments_fk_financial_accounts` (`financial_account`),
KEY `payments_fk_payment_methods` (`payment_method`),
KEY `payments_fk_users` (`user`),
KEY `payments_fk_invoivces` (`invoice`),
KEY `payments_fk_companies` (`company`),
CONSTRAINT `payments_fk_companies` FOREIGN KEY (`company`) REFERENCES `companies`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `payments_fk_financial_accounts` FOREIGN KEY (`financial_account`)
REFERENCES `financial_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `payments_fk_invoivces` FOREIGN KEY (`invoice`) REFERENCES `invoices`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `payments_fk_payment_methods` FOREIGN KEY (`payment_method`)
REFERENCES `payment_methods` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `payments_fk_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON
DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.payments: ~8 rows (approximately)

-- Dumping structure for table db_oneclick.payment_methods


CREATE TABLE IF NOT EXISTS `payment_methods` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text,
`financial_account` int NOT NULL,
`user` int NOT NULL,
`company` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `payment_methods_fk_financial_accounts` (`financial_account`),
KEY `payment_methods_fk_users` (`user`),
KEY `payment_methods_fk_companies` (`company`),
CONSTRAINT `payment_methods_fk_companies` FOREIGN KEY (`company`) REFERENCES
`companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `payment_methods_fk_financial_accounts` FOREIGN KEY
(`financial_account`) REFERENCES `financial_accounts` (`id`) ON DELETE CASCADE ON
UPDATE CASCADE,
CONSTRAINT `payment_methods_fk_users` FOREIGN KEY (`user`) REFERENCES `users`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.payment_methods: ~4 rows (approximately)


INSERT INTO `payment_methods` (`id`, `name`, `description`, `financial_account`,
`user`, `company`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Depósito', '', 1, 1, 1, '2024-08-27 13:07:08', '2024-08-27 13:07:08',
NULL),
(2, 'Transferência', '', 1, 1, 1, '2024-08-27 13:07:24', '2024-08-27
13:07:24', NULL),
(3, 'Transferência', '', 2, 1, 1, '2024-08-27 13:07:38', '2024-08-27
13:07:38', NULL),
(4, 'Deposito', '', 2, 1, 1, '2024-08-27 13:07:50', '2024-08-27 13:07:50',
NULL);

-- Dumping structure for table db_oneclick.payment_requisition


CREATE TABLE IF NOT EXISTS `payment_requisition` (
`id` int NOT NULL AUTO_INCREMENT,
`requisition_id` int NOT NULL,
`user_id` int NOT NULL,
`type` char(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`company_id` int NOT NULL,
PRIMARY KEY (`id`),
KEY `FK__requisitions` (`requisition_id`),
KEY `FK_payment_requisition_users` (`user_id`),
KEY `FK_payment_requisition_companies` (`company_id`),
CONSTRAINT `FK__requisitions` FOREIGN KEY (`requisition_id`) REFERENCES
`requisitions` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `FK_payment_requisition_companies` FOREIGN KEY (`company_id`)
REFERENCES `companies` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `FK_payment_requisition_users` FOREIGN KEY (`user_id`) REFERENCES
`users` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- Dumping data for table db_oneclick.payment_requisition: ~0 rows (approximately)

-- Dumping structure for table db_oneclick.reports


CREATE TABLE IF NOT EXISTS `reports` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;

-- Dumping data for table db_oneclick.reports: ~4 rows (approximately)


INSERT INTO `reports` (`id`, `name`, `description`, `uuid`, `created_at`,
`deleted_at`) VALUES
(1, 'REQUISIÇÕES PENDENTES', 'REQUISIÇÕES PENDENTES - FILTRAR DE ACORDO COM
AS DATAS', NULL, '2025-08-15 04:37:37', NULL),
(2, 'REQUISIÇÕES PAGAS', 'REQUISIÇÕES PAGAS - FILTRAR DE ACORDO COM AS
DATAS', NULL, '2025-08-15 04:55:11', NULL),
(3, 'REQUISIÇÕES REJEITADAS', 'REQUISIÇÕES REJEITADAS - FILTRAR DE ACORDO COM
AS DATAS', NULL, '2025-08-15 04:55:09', NULL),
(4, 'VALOR TOTAL PAGO EM RQUISIÇÕES', 'CARREGAR VALOR TOTAL PAGO EM
REQUISIÇÕES', NULL, '2025-08-15 04:57:23', NULL);
-- Dumping structure for table db_oneclick.reports_queue
CREATE TABLE IF NOT EXISTS `reports_queue` (
`id` int NOT NULL AUTO_INCREMENT,
`report_id` int DEFAULT NULL,
`user_id` int DEFAULT NULL,
`period` varchar(50) DEFAULT NULL,
`date_start` datetime DEFAULT NULL,
`date_end` datetime DEFAULT NULL,
`status` tinyint DEFAULT '0',
`auto_delete` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_reports_queue_users` (`user_id`),
KEY `FK_reports_queue_reports` (`report_id`),
CONSTRAINT `FK_reports_queue_reports` FOREIGN KEY (`report_id`) REFERENCES
`reports` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `FK_reports_queue_users` FOREIGN KEY (`user_id`) REFERENCES `users`
(`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- Dumping data for table db_oneclick.reports_queue: ~0 rows (approximately)

-- Dumping structure for table db_oneclick.requisitions


CREATE TABLE IF NOT EXISTS `requisitions` (
`id` int NOT NULL AUTO_INCREMENT,
`type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT
NULL,
`reference` varchar(255) NOT NULL,
`note` text,
`status` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT
'Rascunho',
`validation` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT
NULL,
`exchange` decimal(10,2) NOT NULL DEFAULT '1.00',
`company_id` int NOT NULL,
`user_id` int NOT NULL,
`supplier_id` int NOT NULL,
`invoice_id` int DEFAULT NULL,
`currency_id` int NOT NULL,
`vat_id` int NOT NULL,
`approval_id` int NOT NULL,
`payment_by` int DEFAULT NULL,
`heading_id` int NOT NULL,
`payment_type` char(1) DEFAULT NULL,
`print` timestamp NULL DEFAULT NULL,
`number` int DEFAULT NULL,
`submited_at` timestamp NULL DEFAULT NULL,
`rejected_comment` varchar(255) DEFAULT NULL,
`uuid` char(36) DEFAULT NULL,
`payment_preview` date DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`status_at` timestamp NULL DEFAULT NULL,
`payment` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `requisitions_fk_companies` (`company_id`),
KEY `requisitions_fk_users` (`user_id`),
KEY `requisitions_fk_suppliers` (`supplier_id`),
KEY `requisitions_fk_currencies` (`currency_id`),
KEY `requisitions_fk_approvals` (`approval_id`),
KEY `requisitions_fk_vat` (`vat_id`),
KEY `requisitions_fk_invoices` (`invoice_id`),
KEY `FK_requisitions_users` (`payment_by`),
KEY `FK_requisitions_headings` (`heading_id`),
CONSTRAINT `FK_requisitions_headings` FOREIGN KEY (`heading_id`) REFERENCES
`headings` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `FK_requisitions_users` FOREIGN KEY (`payment_by`) REFERENCES `users`
(`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_approvals` FOREIGN KEY (`approval_id`) REFERENCES
`users` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_companies` FOREIGN KEY (`company_id`) REFERENCES
`companies` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_currencies` FOREIGN KEY (`currency_id`) REFERENCES
`currencies` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_invoices` FOREIGN KEY (`invoice_id`) REFERENCES
`invoices` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_supplier` FOREIGN KEY (`supplier_id`) REFERENCES
`suppliers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_users` FOREIGN KEY (`user_id`) REFERENCES `users`
(`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `requisitions_fk_vat` FOREIGN KEY (`vat_id`) REFERENCES `vat` (`id`)
ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1075 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.requisitions: ~7 rows (approximately)


INSERT INTO `requisitions` (`id`, `type`, `reference`, `note`, `status`,
`validation`, `exchange`, `company_id`, `user_id`, `supplier_id`, `invoice_id`,
`currency_id`, `vat_id`, `approval_id`, `payment_by`, `heading_id`, `payment_type`,
`print`, `number`, `submited_at`, `rejected_comment`, `uuid`, `payment_preview`,
`created_at`, `updated_at`, `deleted_at`, `status_at`, `payment`) VALUES
(1066, NULL, 'GEN/2025/1/SEN', NULL, 'Aprovado', NULL, 1.00, 1, 13, 100,
NULL, 1, 3, 9, NULL, 0, NULL, NULL, 1, '2025-08-05 19:44:39', NULL, '01987bac-5c09-
7034-a24f-f1bbb242c530', NULL, '2025-08-05 17:19:10', '2025-08-05 17:44:39', NULL,
'2025-08-05 19:44:39', NULL),
(1067, NULL, 'GEN/2025/2/SEN', NULL, 'Aprovado', NULL, 1.00, 1, 13, 101,
NULL, 1, 3, 1, NULL, 0, NULL, '2025-08-06 16:38:20', 2, '2025-08-05 20:25:13',
NULL, '01987bb6-1d4f-714b-a09e-a985bf849073', NULL, '2025-08-05 17:29:49', '2025-
08-06 16:38:20', NULL, '2025-08-05 20:58:42', NULL),
(1068, NULL, 'OPE/2025/3/SEN', NULL, 'Rascunho', NULL, 1.00, 1, 9, 100, NULL,
1, 3, 1, NULL, 0, NULL, NULL, 3, NULL, NULL, '01987be9-945f-71d0-b58e-
666f23f73fe9', NULL, '2025-08-05 18:26:02', '2025-08-05 18:26:02', NULL, NULL,
NULL),
(1069, NULL, 'GEN/2025/3/SEN', NULL, 'Aprovado', NULL, 1.00, 1, 13, 101,
NULL, 1, 3, 1, NULL, 0, NULL, '2025-08-14 23:04:12', 3, '2025-08-06 18:44:25',
NULL, '019880b2-6d79-73e3-bbca-e770c93d744d', NULL, '2025-08-06 16:43:52', '2025-
08-14 23:04:12', NULL, '2025-08-06 18:44:25', NULL),
(1070, NULL, 'GEN/2025/4/SEN', NULL, 'Pago', NULL, 1.00, 1, 13, 103, NULL, 1,
3, 1, 1, 0, 'C', '2025-08-14 18:48:05', 4, '2025-08-08 08:31:29', '', '019880b3-
3b79-7079-82f6-4eabc64fb314', NULL, '2025-08-06 16:44:46', '2025-08-14 18:48:05',
NULL, '2025-08-08 08:31:40', '2025-08-12 20:02:51'),
(1071, NULL, 'GEN/2025/5/SEN', NULL, 'Rascunho', NULL, 1.00, 1, 1, 101, NULL,
1, 3, 1, NULL, 0, NULL, NULL, 5, NULL, NULL, '0198aa4c-37b6-71b0-bae7-
d4f5f419afe2', '0000-00-00', '2025-08-14 18:36:16', '2025-08-14 18:36:16', NULL,
NULL, NULL),
(1072, NULL, 'GEN/2025/6/SEN', NULL, 'Pago', NULL, 1.00, 1, 1, 104, NULL, 1,
3, 1, 1, 24, 'C', '2025-08-14 23:05:50', 6, '2025-08-15 00:38:03', NULL, '0198aa50-
0298-7358-98b3-ec7a91db2b1c', '2025-08-21', '2025-08-14 18:40:27', '2025-08-14
23:05:50', NULL, '2025-08-15 00:38:03', '2025-08-15 01:01:11'),
(1074, NULL, 'GEN/2025/7/SEN', NULL, 'Rascunho', NULL, 1.00, 1, 1, 100, NULL,
1, 3, 1, NULL, 4, NULL, NULL, 7, NULL, NULL, '0198ab77-e1ac-730c-98fe-
129465f262fd', '2025-08-22', '2025-08-15 00:03:37', '2025-08-15 00:03:37', NULL,
NULL, NULL);

-- Dumping structure for table db_oneclick.roles


CREATE TABLE IF NOT EXISTS `roles` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table db_oneclick.roles: ~3 rows (approximately)


INSERT INTO `roles` (`id`, `name`, `description`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'Administrador', '', '2025-07-17 13:47:17', NULL, NULL),
(2, 'Gestor', '', '2025-07-17 13:45:30', NULL, NULL),
(3, 'User', '', '2025-07-17 13:47:39', NULL, NULL);

-- Dumping structure for table db_oneclick.services


CREATE TABLE IF NOT EXISTS `services` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(254) NOT NULL,
`description` text,
`price` decimal(10,2) NOT NULL,
`vat` int NOT NULL,
`category` int NOT NULL,
`unit` int NOT NULL,
`user` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `services_fk_categories` (`category`),
KEY `services_fk_units` (`unit`),
KEY `services_fk_users` (`user`),
CONSTRAINT `services_fk_categories` FOREIGN KEY (`category`) REFERENCES
`categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `services_fk_units` FOREIGN KEY (`unit`) REFERENCES `units` (`id`) ON
DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `services_fk_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON
DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.services: ~0 rows (approximately)

-- Dumping structure for table db_oneclick.service_cotations


CREATE TABLE IF NOT EXISTS `service_cotations` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`price` decimal(10,2) NOT NULL DEFAULT '0.00',
`vat` int NOT NULL DEFAULT '0',
`quantity` int NOT NULL DEFAULT '0',
`category` int NOT NULL,
`unit` int NOT NULL,
`user` int NOT NULL,
`service` int NOT NULL,
`cotation` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `service_cotations_fk_categories` (`category`),
KEY `service_cotations_fk_units` (`unit`),
KEY `service_cotations_fk_users` (`user`),
KEY `service_cotations_fk_cotaions` (`cotation`),
KEY `service_cotations_fk_services` (`service`),
CONSTRAINT `service_cotations_fk_categories` FOREIGN KEY (`category`) REFERENCES
`categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_cotations_fk_cotaions` FOREIGN KEY (`cotation`) REFERENCES
`cotations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_cotations_fk_services` FOREIGN KEY (`service`) REFERENCES
`services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_cotations_fk_units` FOREIGN KEY (`unit`) REFERENCES `units`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_cotations_fk_users` FOREIGN KEY (`user`) REFERENCES `users`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.service_cotations: ~42 rows (approximately)

-- Dumping structure for table db_oneclick.service_invoices


CREATE TABLE IF NOT EXISTS `service_invoices` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`price` decimal(10,2) NOT NULL DEFAULT '0.00',
`vat` int NOT NULL DEFAULT '0',
`quantity` int NOT NULL DEFAULT '0',
`category` int NOT NULL,
`unit` int NOT NULL,
`user` int NOT NULL,
`service` int NOT NULL,
`invoice` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `service_invoices_fk_categories` (`category`),
KEY `service_invoices_fk_units` (`unit`),
KEY `service_invoices_fk_users` (`user`),
KEY `service_invoices_fk_invoices` (`invoice`),
KEY `service_invoices_fk_services` (`service`),
CONSTRAINT `service_invoices_fk_categories` FOREIGN KEY (`category`) REFERENCES
`categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_invoices_fk_invoices` FOREIGN KEY (`invoice`) REFERENCES
`invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_invoices_fk_services` FOREIGN KEY (`service`) REFERENCES
`services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_invoices_fk_units` FOREIGN KEY (`unit`) REFERENCES `units`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `service_invoices_fk_users` FOREIGN KEY (`user`) REFERENCES `users`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.service_invoices: ~38 rows (approximately)

-- Dumping structure for table db_oneclick.suppliers


CREATE TABLE IF NOT EXISTS `suppliers` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone_1` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nuit` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bank` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`account` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nib` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table db_oneclick.suppliers: ~6 rows (approximately)


INSERT INTO `suppliers` (`id`, `name`, `description`, `address`, `email`, `phone`,
`phone_1`, `nuit`, `bank`, `account`, `nib`, `user_id`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(100, 'Dugongo', '', '', '', '', '', NULL, NULL, NULL, NULL, 0, NULL, NULL,
NULL),
(101, 'CDM', 'CDM', 'Manga, Rua 33', '[email protected]', '870798638',
'841474480', '1111111111', 'STANDART BANK', '938487464', '000099880948473000009',
0, NULL, NULL, NULL),
(102, 'wewe', '', '', '', '', '', NULL, NULL, NULL, NULL, 0, NULL, NULL,
NULL),
(103, 'FINANÇAS', 'FINANÇAS', '', '', '', '', '122344455', 'ACCESS BANK',
'616252626', '00099911001029299292', 0, NULL, NULL, NULL),
(104, 'FIPAG', 'FIPAG', 'Baixa', '[email protected]', '875124492', '', '12345456',
'MILLENIUM BIM', '12323234564', '0008975654323340001', 0, NULL, NULL, NULL),
(105, 'Megabyte', 'Fornecedor de material informatico', 'Av. capitao Marcos',
'[email protected]', '8787878787', '', '145436467', 'BCI', '54545656',
'0000177656788000010', 0, NULL, NULL, '2025-08-11 17:08:21');

-- Dumping structure for table db_oneclick.supplier_accounts


CREATE TABLE IF NOT EXISTS `supplier_accounts` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`account` varchar(50) DEFAULT NULL,
`nib` varchar(50) DEFAULT NULL,
`user_id` int DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- Dumping data for table db_oneclick.supplier_accounts: ~0 rows (approximately)

-- Dumping structure for table db_oneclick.units


CREATE TABLE IF NOT EXISTS `units` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.units: ~2 rows (approximately)


INSERT INTO `units` (`id`, `name`, `description`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'un', 'Unidade', '2024-08-27 11:48:54', '2025-08-05 16:50:36', NULL),
(2, 'ton', NULL, '2024-08-27 11:48:54', '2024-08-27 11:48:54', NULL);

-- Dumping structure for table db_oneclick.users


CREATE TABLE IF NOT EXISTS `users` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`user` varchar(15) NOT NULL,
`password` varchar(254) NOT NULL,
`status` int NOT NULL DEFAULT '0',
`email` varchar(50) NOT NULL,
`contact` varchar(12) DEFAULT NULL,
`leader` tinyint(1) NOT NULL DEFAULT '0',
`company_id` int NOT NULL,
`department_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_index` (`user`),
KEY `users_fk_departments` (`department_id`),
KEY `users_fk_companies` (`company_id`) USING BTREE,
CONSTRAINT `users_fk_companies` FOREIGN KEY (`company_id`) REFERENCES `companies`
(`id`) ON UPDATE CASCADE,
CONSTRAINT `users_fk_departments` FOREIGN KEY (`department_id`) REFERENCES
`departments` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.users: ~7 rows (approximately)


INSERT INTO `users` (`id`, `name`, `user`, `password`, `status`, `email`,
`contact`, `leader`, `company_id`, `department_id`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 'Administrador Geral', 'admin',
'$2y$10$reY4p1kAC/ZSKswTZ.qLsOzunFaQC3b0L0GYD5Bv18AH1deJ6nd3W', 1,
'[email protected]', '875124492', 1, 1, 1, '2024-08-27 11:52:27', '2025-08-03
11:58:55', NULL),
(2, 'Amadeu Paulo', 'matine',
'$2y$10$reY4p1kAC/ZSKswTZ.qLsOzunFaQC3b0L0GYD5Bv18AH1deJ6nd3W', 1,
'[email protected]', '870772203', 0, 1, 2, '2024-08-27 15:01:51', '2024-08-27
15:01:51', NULL),
(9, 'Regina Maucuacua', 'regina',
'$2y$10$reY4p1kAC/ZSKswTZ.qLsOzunFaQC3b0L0GYD5Bv18AH1deJ6nd3W', 1,
'[email protected]', '875151244', 1, 1, 3, '2025-08-01 18:49:53', '2025-08-02
07:20:49', NULL),
(10, 'Antoio Manuel', 'justin',
'$2y$10$reY4p1kAC/ZSKswTZ.qLsOzunFaQC3b0L0GYD5Bv18AH1deJ6nd3W', 1,
'[email protected]', '8751244', 0, 1, 2, '2025-08-01 19:36:21', '2025-08-02
07:20:45', NULL),
(12, 'Henrique Muculo', 'hrhrhr', '11111', 0, '[email protected]',
'8751244', 0, 1, 1, '2025-08-02 12:46:58', '2025-08-02 12:46:58', NULL),
(13, 'Henrique Muculo', 'henrique',
'$2y$10$reY4p1kAC/ZSKswTZ.qLsOzunFaQC3b0L0GYD5Bv18AH1deJ6nd3W', 1, '[email protected]',
'875124492', 0, 1, 1, '2025-08-02 13:20:54', '2025-08-02 13:20:54', NULL),
(14, 'Mateus Magala', 'mateus',
'$2y$10$reY4p1kAC/ZSKswTZ.qLsOzunFaQC3b0L0GYD5Bv18AH1deJ6nd3W', 1,
'[email protected]', '875124492', 0, 1, 3, '2025-08-02 13:29:36', '2025-08-02
13:29:36', NULL);

-- Dumping structure for table db_oneclick.user_levels


CREATE TABLE IF NOT EXISTS `user_levels` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

-- Dumping data for table db_oneclick.user_levels: ~2 rows (approximately)


INSERT INTO `user_levels` (`id`, `name`, `created_at`, `updated_at`, `deleted_at`)
VALUES
(1, 'super-admin', '2024-08-27 11:48:14', '2024-08-27 11:48:14', NULL),
(2, 'user', '2024-08-27 11:48:14', '2024-08-27 11:48:14', NULL);

-- Dumping structure for table db_oneclick.user_role


CREATE TABLE IF NOT EXISTS `user_role` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int NOT NULL,
`role_id` int NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_role_fk_user` (`user_id`),
KEY `user_role_fk_role` (`role_id`) USING BTREE,
CONSTRAINT `user_role_fk_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
ON UPDATE CASCADE,
CONSTRAINT `user_role_role` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON
UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table db_oneclick.user_role: ~6 rows (approximately)


INSERT INTO `user_role` (`id`, `user_id`, `role_id`, `created_at`, `updated_at`,
`deleted_at`) VALUES
(1, 1, 1, '2025-07-17 13:49:02', '2025-08-02 11:06:11', NULL),
(2, 10, 3, '2025-08-01 19:36:21', '2025-08-01 19:36:21', NULL),
(3, 9, 2, '2025-08-02 11:06:08', '2025-08-02 11:06:10', NULL),
(4, 12, 2, '2025-08-02 12:46:58', '2025-08-02 12:46:58', NULL),
(7, 13, 3, '2025-08-02 13:20:54', '2025-08-02 13:20:54', NULL),
(8, 14, 2, '2025-08-02 13:29:36', '2025-08-02 13:29:36', NULL);
-- Dumping structure for table db_oneclick.vat
CREATE TABLE IF NOT EXISTS `vat` (
`id` int NOT NULL AUTO_INCREMENT,
`vat` int NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table db_oneclick.vat: ~2 rows (approximately)


INSERT INTO `vat` (`id`, `vat`, `description`, `status`, `created_at`,
`updated_at`, `deleted_at`) VALUES
(2, 0, NULL, 0, '2025-07-20 09:21:12', NULL, NULL),
(3, 16, NULL, 1, '2025-07-20 09:21:12', NULL, NULL);

/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;


/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;

You might also like