-- Host: db-master-6.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=6553;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Vlu90dHE90sMBt05NaYLcthr1bC07y7xwi39YwNZYFNoz4BVjAPXW','admin','ak_dae82f6941abea65','2023-05-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$gQSnHlM8Kr.XNIWqb6xeiICyRl5U5VkLUeRB4Jiip5AQ1TmHcfj0e','user','ak_9d8fe04fed8961cf','2023-09-20 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$1qzWVEWQSxs8/Mwn5AH1M715fZo/uSgZdWtgLGq2IW/y8YOacTX4s','admin','ak_8f1f14365cc84000','2023-03-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$PVNQ5G8aOdLIp06RLW8FQIBmjVR6Za1RkdanvvQz6URrGXWY5ut5m','user','ak_960218260862f404','2023-06-08 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$pX2SLllL0l3Wn9/EFPF0xcFNksRfunpOLhOF0kkRYcnSZ5fMthCvC','admin','ak_d9e72a08c2ee08de','2023-02-07 10:13: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=11908;

--
-- Dumping data for table `sessions`
--


