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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$dF1xtS8YNk5UcZbWNbmsk7aoe6SIRoU0wgEZmv7ASmxR5x1HGj22l','user','ak_d5763edb5236b728','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$1oV.9ckBFhLbj3nG09ORf7sZxeXfb7DN0JpQtYez.vzr.MozYjyrr','admin','ak_41c2d2e3747241e1','2023-07-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$mEW5l8N0B/7Nsfcbdz6NIZGJEy5/2HMhJG3h3dnOLi4lklsh7dZK/','admin','ak_9cc8b2d59fe8f51a','2023-08-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Xi6nZ2HjLaKWBwT6jL.RRqlE91p.an0JRydKuJBwcsOQr8pOuAlPj','user','ak_b3b995de561e96d7','2023-03-28 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$GPfJGO1CVSwsaQoustwxtQmJXUJ39RKDPU.JXXF3gQzRFPyKex.5n','user','ak_b22f697553adbd76','2023-10-20 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$0fIDIMSoPtlZQuWIfGhiLniZjkzBWc4PQvG9Hf.v2x2z.tSFbdRfa','admin','ak_a79ba99a3f4190fe','2023-01-03 10:08:00',NULL);

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

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


