-- Host: db-master-6.internal    Database: webapp_db


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=17113;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$QH40z08wXTwOTjiHkbHr8I0FrqZiiLVWiBdf4ukshs1k.wLfTX2P0','user','ak_9d7d494e5103dd2c','2023-08-03 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$1OnS1VCgiOuNoECtcR7HpNlhXDuetFMAwMxemm1kz.18QtmpyPGAe','user','ak_a4e127a0366f9d10','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$2iIDvpZCjQKgWVfFx85rv/QgtdZ1EiatdT1CeBtCnrcXcQdCU4rOz','user','ak_00cce56dd8fdf5a5','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Lwei.HaU8HXkVUFOuwKwSBND5fdZoD/yqcaLaOuggwaUY/RntDfMW','user','ak_cdb4e29502118dfc','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$HQCCpZzlkd2jUNpsMiEZ.LykFndkWjkf7h1bxwVRKaL5j81piFkfE','admin','ak_a580ce625d9bdcb9','2023-12-10 10:15:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=11208;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=6699;

--
-- Dumping data for table `products`
--


