-- Host: db-master-8.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=33864;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$QJf.QnEHNU94.dJvcWOhTpi8V2UEnezyhJpMe58eErxo.MzOhJhjq','admin','ak_79a5d8d652c40f46','2023-04-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$SRK0.8jhPml.WLGsPtrgjrIVJrxVxMs1gjzyagHqZKAZDh1jTJjzN','user','ak_a581fb08d2f68265','2023-08-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$cxESGPxCInq7xNao.oAVLJhD97xHpKxakEXq.oR6/94Ub7u7tSazK','admin','ak_f9247fc9202d44c3','2023-02-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$qEArvELiKPm8bGorbx8kMXrI/9NexfSIBzp7I38U3ToqY03aztlxO','admin','ak_e5eb37568c9de28c','2023-10-21 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$FAidFrV4Cmzbmolloawt4uh3Ssbx6fxqgsGBHOISj0WZ817AWxMT8','admin','ak_e3c77a37afde0a88','2023-06-01 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$U7v7W4GjHWutYaJguMeb48uyD4z8x9K01cYDVfz5n18mbxANqsEBW','user','ak_18cd1c29584cbb63','2023-11-14 10:04:00',NULL);

