-- Host: db-master-0.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=4796;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$9djYLfv9zum0uupDzuoXacmoWqnig/lfKrlmnU55HIukOJrfoPlU2','user','ak_5815af0e862945aa','2023-01-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$IzI.yX0wxETXVgWqh2phjTsxWnDoSAM97k6o6xkPQI5yiDu8.tVNi','admin','ak_c67b14a8f968f685','2023-05-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$7/JFGAOfp8O0ADAdh94TbSIA5oksRojkVLKJLM3UMtKLGBRfNRdyB','admin','ak_7a62e09c476edb54','2023-10-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$hm1100Z0mrI0UjVK3gVKvfGopl0WuGXHCiz0XFSU8jt5wjuaSDmd.','user','ak_91dd050e6ca36e0f','2023-11-20 10:19: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=46699;

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


