-- Host: db-master-3.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=23005;

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$/JC5hhECItGzjZ7crjeF6fwoRrcNLerN.wvadWyiPErPzsD1pz3Eh','admin','ak_2d41281067485648','2023-09-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$57L4mjmMzfZume7OWoiteirmIoFajio2rc.tfWXSY.STLAlLrt29R','user','ak_4c998e5457ee1ce7','2023-12-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$BK4IiVWHWDM5S7N8aYYtlph3/NEFsw3vpIWZt8X7V8gJrjVbdvu7t','admin','ak_d5d43265c2a4d64d','2023-04-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$PnngTk9kKRvnqwKkYjBrOEjHq6zfdFHAbLjPB/HbhZnmusMJg4zCw','user','ak_f63a0ee6b7680bd0','2023-12-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$ni.dJpX7S4TmEvVxrgcjTwkz/Pr24HU46.lhtEgG4HroXYLSN4fDU','user','ak_955d14ae67a552b3','2023-06-14 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$5VHwvW/1Hk72sa9eGzoX2IyU8oOUiwavrWJ0ZhlifLCgOH7fy1QGR','user','ak_f785734b61be42ee','2023-09-03 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$hygUoYJFnA44R/gmtNQCHEVttQKEx3VNn28rg7ahMLbuXg30aTMce','user','ak_e48df0bb38d749e3','2023-02-07 10:11:00',NULL);

