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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$NQE8//9lpt2CPNAB/xl.6TzOlB1JfjJoGbsq6UZSB2/y5HRBOWSOG','user','ak_4a25b5b8444a21d4','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$RT/CPB3HTtexG0AhtxL2F4tV.xWnki/gFoEuuM9Pqm9DaUxZvkQyN','admin','ak_a5a2f52ca91f63d8','2023-09-27 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$teMj6bbn0l3l.wH/bwefGd2tR5vUonthzoc/k.EDYUSwnMPxRfQSF','user','ak_88dc3c745673d218','2023-02-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$9CY7hXD9TmuqazHpv13vsigV1idbazs8nlxxqJvkx5x4jH3h5anl3','user','ak_55cc2e515c08bc00','2023-11-21 10:17:00',NULL);

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

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


