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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$WRe.PH.wQqhWQjorw9uINk4InfLzR1GzuxYmKbxmQoUKLiM.uxgPE','user','ak_31a57787aa5e1dab','2023-05-21 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$9bwTyllrL.5zjx9ag4..upfybwqzvsqawahZ2f1nwp3qUQhWeSKXu','admin','ak_3b995660c219434a','2023-10-06 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$p3IL4W0CiaJI0ZjEe.ykP05TEaXaLjukxJww7tzEUVLWBZFTBnpWd','user','ak_ac30a9f5e7850287','2023-09-21 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$riAKaUSSWB5Qgwb37Jla9HcoqpIjW0zN4i8QaRhhUBdSjyBbo6c3S','user','ak_1a796696bbf96933','2023-10-07 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$Izz4yCBx/z.mNNBnuw6RW5Mt1W6pcFjV7Ec5l0RL0wLXGsOTh5EFU','user','ak_0de93dab955ef263','2023-01-09 10:10: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=40222;

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

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


