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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$5IQVRIN1I8hM.30cZD3RjtRJWAUosud2F6U4b6v3upwziScu79AyX','user','ak_c76e0d30ed9ffcd8','2023-02-23 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ajqrw0C9HmPGgWkYRxcPrkdSncMvjzxUytQRQAUSeMv2dnyx77Ruy','admin','ak_0a6f91cb16584812','2023-10-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$s9uDgEHDTjDA47Oqpfn2NMGNSEhzggJGzoXfttCAq5FjwzN2/G6Xe','user','ak_e00626547b9dcc0e','2023-02-12 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$lbZNZElqatuoupqZYJIMpzr6sIGyZFMMBjZAUgjiJxnoHEQthKrPn','user','ak_c4f3c983788e9779','2023-09-24 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$XSMD62FVKrDIIIIkO/xDQS4uhKUn/FOWH4Es7ZA2qDdrI8WfPpfWB','user','ak_1381a355009e0b66','2023-07-09 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$l6lzrvI4Ct/p4.42EJ.GPqZTVTVIN5I1CMPue29Aem/smcaVfN0a7','user','ak_46d424b318c44db4','2023-07-10 10:19:00',NULL);

