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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$DyjT6qJ1uu/MvU.w.Aq3V9oM0UahUD6aI99JvE/9Vc5s1.7iiTgTz','user','ak_453cb8fe25a06563','2023-01-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Z3NJbNBUl/5YqpBGtDfE9Cq1VvT.MFkeHkLFkokmEUxRR8i/CrM8n','admin','ak_c226cdd338985680','2023-03-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$mBBJe11fIVDw5WP5/QbnRtdRSSp77MBkrg9FgY1pFcgEsiCYC7nnz','admin','ak_5b70f34442aaa2a1','2023-08-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$BgS4hWO3m3Yfaz/Jz.gbod6cC4yQP6BpYDPXJMvRKG.Dx0BytI/hf','admin','ak_62d3a9d98f68b552','2023-04-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Foyvi9KsuZG.d1Df3tR8ZXI6AqgTizzwMsbyP.P6kTdNeVx1YYTTz','user','ak_4bc3305e281336c5','2023-08-18 10:01:00',NULL);

