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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$0I7cBAzNHdxpglOI0mTCwdQA7XaaosKQGeaWLEz.pmwzxnvH8BGyv','user','ak_7d191cac613e5709','2023-05-20 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$8H1rwUQVObOvgObaRNAtW7NcGTwQFLq61zFJR0L/bvx4oq3Ocw8rC','user','ak_696d6e6868160356','2023-08-16 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$59xdm5AIHR69b9DTfBDqIhszp8AWXBYnbusJjbD47V7MqTFtd5KYB','admin','ak_8866e44e8fd23a54','2023-01-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$6VbdKMYXFBBR9Wm3MXJO3y0PUzWrJv52ptf.vspG7.8usBBI5rn68','user','ak_c25b6b2048eefd40','2023-09-12 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$9M0vqUj7f8sSVPxsX.Oatzc9GFragWsVisbOBS66wLt5SG8Yc/oFi','user','ak_9e7112e81872d54f','2023-01-14 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$UnUAkMtBJ1hH6uZ7tTluZwl.UXw6yax3/k0qpD.lJhNFpXsfboSh8','admin','ak_8acd11020fcfda95','2023-04-17 10:01:00',NULL);

