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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$mJjwO5zNn7Gc0KfbaRfrbf6p0DIgzqb2bAiEgANJc6a3XYqtIp5Qj','user','ak_fef40e86c9908b44','2023-04-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$ErBtU2BBd.0S1857jf3/u49LGnrrpdB1/UIRYcsEM5GY.jlImu2q8','user','ak_30463e8bc9ae4ffc','2023-06-28 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$BAqZdT1EY/kwZxAZT4szYCSv2E.UX510E.7Rx6vk8LSEN5kvLbhf9','user','ak_12755668541e60af','2023-09-15 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$4ZtFOp9jFrLsW1HlQdrg50FWNWNp8Buei5jUFQnDl9p8dZzkya9zK','user','ak_ded20de5b15ed456','2023-10-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$B.2NXh7B2orJ8xBqKVxi4ry1gnTQunMewMoqiwoHuxkhE/oDlUnHt','admin','ak_0b774cc854f72919','2023-05-28 10:15: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=48489;

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


