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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$MFy0wlG3WP5aNWHwDSA83ALQ4XqWfY1e1E/n7z0nmyEPua2lbuuR8','user','ak_784888e6f30ac3bf','2023-08-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$P.1.T8sMc7K1BnTkLp9usBblK7hD6NX5JjqshV93BXEY7yVMBVNgm','admin','ak_3d453d573718eb15','2023-02-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$tVbXa9KtzCHkykhzD73sku/dPr/2syeBdWrWwzvJmjq7yVNva/G1y','user','ak_57d57995d4e51188','2023-08-14 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$j0bOJEZt9tfHAfnYNeWhKUSTad/HPbTNIswrjlfzvT3JpAO9NjpBR','admin','ak_b0f17fd871b1a71f','2023-01-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$dPPUgKQqGJG3jTrFnyxWJYMxsF9qFF7Y9/D5SU/8EwJEzqXfl76F1','user','ak_d24472d4af21a6af','2023-12-12 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$tOVbVr4maVSWNtSua5t8PrivHydugPZ.7DrdwfALGj.RjB9ueTVXC','user','ak_e360223b4ca81aaa','2023-10-03 10:18: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=41272;

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


