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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$/PBlR02v0N9.qNfgAn4rqippUwJuhUQB1DlSdOvqwhROq7SknBIqo','user','ak_b439b8b604f514f2','2023-03-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$O53Xnh68rSUhW31jTCO9mLAHR0b/Mgte0sMtzaXrutoJw61DoCQEO','user','ak_3099088da93e99fa','2023-09-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$P.s/D1mhUbcGl1Xus86x9zadB2TFGuThbNfd9hyDBJsuJv/Qn3ljs','user','ak_f2c0f58b925ee2ee','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$9UrAy/v.Kt3WWBjOGjjM7KbqP1I.Khm.p8gYsFNHkfHYk3cq8rpcE','admin','ak_58c5352b71a37a87','2023-02-22 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$WmNr9sgcbi/pC4QY4pOcudtdSsIIH5XCx6UJJ6lVrchf6z2tRxZ7c','user','ak_1ce9f18a29783edc','2023-07-23 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$lN/FiteqlE3p3esB6Ib3RUXQfz4mWisoVizL7NArz9f/Y0eBcGTqH','user','ak_50d351a6815a63c0','2023-01-14 10:01: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=16883;

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


