-- Host: db-master-5.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$CHfqIQakHtNbpe8kVSHPRumSBD/zfpSGIuMGbH53LH6Yc2d7oXId5','user','ak_097b445a6b17eed1','2023-12-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$RGgRZIDxQ.Ps4yEXDJiL1hBrcT76rTeAzirFZ0crXmGc6XPl/xMHq','user','ak_fec3f981c6095bdf','2023-08-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$hsJQ5krl8bvXpNzzd9uT9H3okCj2zznLb5tfLwkXPAbhs6IP7qavP','user','ak_8caa1994a2f789c8','2023-02-21 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$jicLOJqx6VIsZj5Iy0PcNS0VSqE9Gf96JhOEFJHOXFaT3ZUdTsmfe','user','ak_1bfc2d2fbb4b1618','2023-06-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$9HiZj7ncKbGyUyfKukhXBsbJR91hA6pA6kf/dBxl5iXxHEhoyK5Qh','user','ak_16a991c4c6a78429','2023-05-07 10:13:00',NULL);

