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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$H8gVwOhgy/pTR4eiYUX1Mx7eSUDisgnBf3E5UPeaBtTG.H4X8ChvN','admin','ak_882ac809eaf727ab','2023-10-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$272cOCiZ6AMShpTKLQ9BaACifPIDMz.ojle1aVJIrZSjJMcSioXUH','user','ak_684b3f7a29db8152','2023-11-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$8iV1USgAEXnvmRzfPALS2JFQnjvn23yRypetom6x7KVoDzCQ8CTIj','admin','ak_565209a8e6e27db1','2023-08-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$R81c8TocLbPwIvpSaYsBWB34W4Ls7bkGnOAkY2IybiRwfco0o.osu','user','ak_45aa4c7dc8848fea','2023-04-28 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$meX1tcSYLZg0.C6cXjHxJRuLqJI6da.7nRHWU64BGR65ivf0dyb84','user','ak_5c78880d6e335c7b','2023-06-24 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$vJr6M44TGpgr96PZaTwIpwgW/yxONrdIdSFr8RU9ezFaTdGr5rl1U','admin','ak_5d7a985794697c00','2023-03-17 10:08: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=17156;

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

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


