-- Host: db-master-9.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=5491;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$dfGon04.ehmidPa91aPncc0/DQAnfFR/2AnxpLqLaLERdss6wEDo4','user','ak_bf077efb7374b31b','2023-04-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ulhMPF9iyKRtQ4OCdqFLEmifyiMofMwyvHv0H0uk2uVcjF/kmQYqA','user','ak_9d55fd5ea3dccccd','2023-07-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$kshSfQhzxpzsNGZOn/NyoRqHwAeRN/sx13ps6A/2p.VYJ26xmat5E','admin','ak_16180a07f8f7ec94','2023-07-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$jD4mPs3K3rUWvyz5NtNTCh1SbfSTE9ruGRTdBYDBa9Q617a4tXwMU','user','ak_764355ece5341341','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$W9R32iETKOYFRmyhmVwRuM2N1H3a49v/uE7UfVk/WMEgA0h6.fozu','user','ak_fe2ec604bec7a169','2023-12-09 10:21:00',NULL);

