-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 08, 2021 at 09:36 PM
-- Server version: 5.7.33
-- PHP Version: 7.4.19

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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: `dbnomina`
--

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

--
-- Table structure for table `pactivofijos`
--

CREATE TABLE `pactivofijos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `csucursal_id` bigint(20) UNSIGNED NOT NULL,
  `ccategoria_id` bigint(20) UNSIGNED NOT NULL,
  `csubcategoria_id` bigint(20) UNSIGNED NOT NULL,
  `codigo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcionActivo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `marca` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `modelo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `noSerie` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cantidad` int(11) DEFAULT NULL,
  `valorAdquisicion` double DEFAULT NULL,
  `fechaAdquisicion` date DEFAULT NULL,
  `noMotor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `direccion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `placa` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tipoLinea` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `numeroTelefonico` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `usuario` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pathImage` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pactivofijos`
--

INSERT INTO `pactivofijos` (`id`, `csucursal_id`, `ccategoria_id`, `csubcategoria_id`, `codigo`, `descripcionActivo`, `marca`, `modelo`, `noSerie`, `cantidad`, `valorAdquisicion`, `fechaAdquisicion`, `noMotor`, `direccion`, `placa`, `tipoLinea`, `numeroTelefonico`, `usuario`, `pathImage`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 'COM0001', '234', '34', '234', '234', 34, 324, '2021-11-11', NULL, NULL, NULL, NULL, NULL, NULL, 'public/images/ActivosFijos/1636402370.jpg', '2021-11-09 02:12:51', '2021-11-09 02:12:51'),
(2, 1, 6, 13, 'CEL0001', '21312', '2312', '123', '123123', NULL, 123, '0123-03-12', NULL, NULL, NULL, NULL, NULL, NULL, 'public/images/ActivosFijos/1636405438.jpg', '2021-11-09 03:03:58', '2021-11-09 03:03:58'),
(3, 2, 6, 13, 'CEL0002', '1', '1', '1', '1', NULL, 1, '0001-11-01', NULL, NULL, NULL, 'Recarga', '111111111', '122222222222222222', 'public/images/ActivosFijos/1636405553.png', '2021-11-09 03:05:54', '2021-11-09 03:05:54');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `pactivofijos`
--
ALTER TABLE `pactivofijos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pactivofijos_ccategoria_id_foreign` (`ccategoria_id`),
  ADD KEY `pactivofijos_csubcategoria_id_foreign` (`csubcategoria_id`),
  ADD KEY `pactivofijos_csucursal_id_foreign` (`csucursal_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `pactivofijos`
--
ALTER TABLE `pactivofijos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `pactivofijos`
--
ALTER TABLE `pactivofijos`
  ADD CONSTRAINT `pactivofijos_ccategoria_id_foreign` FOREIGN KEY (`ccategoria_id`) REFERENCES `ccategoria` (`id`),
  ADD CONSTRAINT `pactivofijos_csubcategoria_id_foreign` FOREIGN KEY (`csubcategoria_id`) REFERENCES `csubcategoria` (`id`),
  ADD CONSTRAINT `pactivofijos_csucursal_id_foreign` FOREIGN KEY (`csucursal_id`) REFERENCES `csucursal` (`id`);
COMMIT;

/*!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 */;
