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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$XVul098AzSmDf6PZnY1an8pZFGbxpOtDsRJnztJ08w2I8LYn/dygn','user','ak_946b616486e93ac2','2023-07-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$3K97Q2yzncZBLOpxCAHaopJ1FEwozi1keipYBpQv3orpxBLiyIccl','user','ak_b584645328e21f73','2023-10-07 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$YNUZuWLcAnFKU2DenSnsRmzqe1B0k0L36uh.VBJBELCIwfHIOsaBl','user','ak_38a0dcc276d059a1','2023-04-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$hhK9ify08h0VrsAvGytoFyCTl6Wz047xn0W97wJXCCLMYqrHGGnWr','admin','ak_debca60dccb661d8','2023-10-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$GTqKeOApO0iPUtpl2f5SOk.snDKXcB7N9pau5MG2UZD8MWuojQxFe','user','ak_e558d9d824118011','2023-10-13 10:23: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=25886;

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


