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


--
-- 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=40113;

--
-- 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=22973;

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


--
-- 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=21449;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$lC6fitjpfgP3SW9RhZy1CAEk7KbSYQ4Wj8YhMNx1.0FY8N6Hd2zST','admin','ak_eb774f71d2127af1','2023-10-09 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$bBroL7VPgu8nJz9raLScixKzWwuQpKcvaQpFWrEdDKuQIuq3a94GH','admin','ak_886385fd9d0db3ec','2023-10-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$8orL2DA4cTdtZxb7Wf717aem2gvTOOpN7PNFQJuY887P4ncpnmQKl','user','ak_67ceaf8729373c64','2023-01-25 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$zQN0iFmTteJZ0AWyYP4U0zd25valrB3o91bD14k8vHCsDZ4GWgSmV','user','ak_850f128a6139ecc9','2023-12-11 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$tLyM5eA/koswmk0gBOJouf8dWxsRZQBWf/vZeGUzw6hyj2sPEas0a','user','ak_00224a6d905fdf12','2023-11-22 10:09:00',NULL);

