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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$qIl9HO5ptfJiBFUdaDbVvZvxMNUXj1H8pwy.vZW/l29tUVaku2nlS','admin','ak_8c0e5780dc8c6ddb','2023-09-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$FT6cefvI3TZKGG/oMAcOtdiOLYHzg0J4Kks2V2l133iEkjVZwRIC9','user','ak_2cdfd26b909eae5b','2023-01-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$1RMGb3cMFItVF5B5NVl8U/ofXDhCuZ9GbFHhlRM2xw91o22cYs/8u','user','ak_975da688c726aafa','2023-07-28 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$/zlTEZ6Mjtb4wcabc.rSRE7hefcFaQV4dvKTMcqCeqISc6zyqhMgg','user','ak_c8285fa775244292','2023-01-16 10:13: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=9950;

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


