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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$BrbI0sNCSwzuvOTQ6fg7JrmxtVUIMPpBGyYLS8vNjo3xicuCl2cyX','admin','ak_025843b97d8ff24f','2023-06-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$BepXpC1M/Ny98eXS.MaXnrb8lD1sXHOOlj.o8szz/SzErfrcg2yte','admin','ak_f89a09bc8d283ee6','2023-01-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$E4Zx0TD38kEmRByIfI8etMPiXZSrstutt.FDWRrZJ3n4NV7Op1bIm','user','ak_d50a47cece4b7b71','2023-07-19 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$rRltqQ2zMkFvxOHrjyfMnCPh7PWMqCkv.isgifBTUP4TFLoLb1v37','user','ak_05779b51671d9952','2023-10-15 10:18: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=44107;

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

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


