-- Host: db-master-7.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$e9z3.URuGmCPEXiWDBRhUewfQvdyAuCeajgrWB3RhBfT0isORFbfr','user','ak_a07136577f22e1e8','2023-09-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$zgdyhP/8qj6vsnNzg33cSse0WvmHII6Fj2Kol9jKENURRbC9SQGxe','user','ak_ed7607a652180191','2023-09-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Xg6DOhjLjTVtHBexkcU.c0Z.q4HG26uoItM.jtt/6FuYbqGrg2s9/','user','ak_f67b4566b8cd7c07','2023-05-20 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$wnQlAYcuBZyknNfv6UV5YSrDIRACGyHhceZ8u8d3a5z7ImrTUrVkb','user','ak_0d8de9b116591a96','2023-11-21 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$CeJ7c/YWj6cO4OnAWGiQANpVbnxhaM7P7z71E2wVLtlqnRFGtGe4H','user','ak_db6be56fd4784c70','2023-01-12 10:08:00',NULL);

