-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 18, 2021 at 02:50 AM
-- Server version: 5.7.33
-- PHP Version: 7.2.11

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 `csubcategoria`
--

CREATE TABLE `csubcategoria` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ccategoria_id` bigint(20) UNSIGNED NOT NULL,
  `nombreSubcategoria` 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 `csubcategoria`
--

INSERT INTO `csubcategoria` (`id`, `ccategoria_id`, `nombreSubcategoria`, `created_at`, `updated_at`) VALUES
(1, 1, 'Computadora', NULL, NULL),
(2, 1, 'Laptop', NULL, NULL),
(3, 1, 'Impresora', NULL, NULL),
(4, 1, 'Teclado', NULL, NULL),
(5, 2, 'Mesa', NULL, NULL),
(6, 2, 'Silla', NULL, NULL),
(7, 3, 'Almacen', '2021-10-14 05:00:00', '2021-10-14 05:00:00'),
(8, 3, 'Bodega', '2021-10-14 05:00:00', '2021-10-14 05:00:00'),
(9, 4, 'Ford', '2021-10-07 05:00:00', '2021-10-14 05:00:00'),
(10, 4, 'Chevy', '2021-10-14 05:00:00', '2021-10-01 05:00:00'),
(11, 5, 'Grapadorra', '2021-10-14 05:00:00', '2021-10-14 05:00:00'),
(12, 5, 'lapiz', '2021-10-14 05:00:00', '2021-10-14 05:00:00');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `csubcategoria`
--
ALTER TABLE `csubcategoria`
  ADD PRIMARY KEY (`id`),
  ADD KEY `csubcategoria_ccategoria_id_foreign` (`ccategoria_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `csubcategoria`
--
ALTER TABLE `csubcategoria`
  ADD CONSTRAINT `csubcategoria_ccategoria_id_foreign` FOREIGN KEY (`ccategoria_id`) REFERENCES `ccategoria` (`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 */;
