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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$BSHwoNIRkvi7KsS2xuzU2F0nxid7SApQEWQa8IkSQKSP71k5SrfSj','user','ak_0ef4b2cc8e950234','2023-06-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$lqDslxiqI4VwfcN3Gmxpxp.GMzj4wduCcY/1jEWUpvMZwL.3K3jYk','user','ak_37c3402e6e7fec6b','2023-02-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$4NHNDLBcttx0x4eWE6b34peuoj9ToYSMeSTFndF6XRetQtG.Dv525','admin','ak_df2e2c23c3fd3d01','2023-02-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$x/28F7qJ3MhQOFso1DMOl..vUBKDuTaeJY/hJLB.AeJ9erXzI30e2','user','ak_852fc893f9ef2eac','2023-06-12 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$RaWGjblrHXtMOm8PGf5hjIZYsLzx3Jhs36HDWMr4qXdaRuMQ0RpD9','admin','ak_0d9bce467444c8a3','2023-12-01 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$7BMTLlV.TW9CduKhZON4k7cWkKE9BF4hhou7/fPk.nBDDprUxDEi3','user','ak_5b9c8a7a3453dbf8','2023-10-23 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=13257;

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


