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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$o4GFFByB2zRMJSVaAZmw1u7btB5QIMCxJCXgb/Eu/5RP9BOmzqDwM','admin','ak_5808f24b9f4f3444','2023-07-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$IrV92g9GD/hBta56YBwBfQ6.oQ.NEb.oPYX4Z3tEWKkjrlkixlKT7','user','ak_6b03cbd6147997e7','2023-02-10 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$qOTMA1RYSMzIllFflcHmJDJBsToCtx3nP0J8bgwv9sVDLzEDFziOZ','admin','ak_d16fcaa5ef5343f0','2023-02-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$tg.XzaSNWdxBtStLoVYEYyjYmxtTsZpX2.NazQ4Dk9.UGx15REpus','user','ak_bf103d33fd0e514c','2023-11-23 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$RwIJ0yLhq5fUbJF3wma745v8jtZAW/OjUh49ihMGtxCIRHPbVF4nc','user','ak_594bb49026e6b9ae','2023-05-01 10:12:00',NULL);

