-- Host: db-master-4.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$XrFVM.HUsK19gsQgnDPwBlJoiVCgbY2sPD8sc0w67E.CS7C36CS7L','admin','ak_0ce92333e50cc375','2023-02-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$bvk2KvlCVVGFei.VsfXr0e20GS80tkl5xn4aweUGruKXXCTczS4OA','user','ak_3b26462bfebd1007','2023-03-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$7e4Xrbwk8XYNq/gKq5sn9LTiFjo4keEynmaNPT5fuNzXlklqTaUN0','admin','ak_bbe18b8896de2f1b','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$T5dAQSkg5a30wQ6au1VfaOZX2OTr2QGQLOVvnQ1TXJTj9t9Z3ig2J','user','ak_6ad1e97013529ee8','2023-07-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$4ag/JCxkM93c5XP9piMJtg6Fhz9KMWJM7Mvgz9znQo0tlEDfb6TfG','admin','ak_1597f9b71dfb5359','2023-07-12 10:23:00',NULL);

