-- Host: db-master-5.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=25658;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$rpTVNodMr9ibRA9tRkuIdy8rOnrMz8wgPoQ4MQli2BVr7av.JY36e','user','ak_a70e349eab641c41','2023-01-04 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$oc/1x7gIKBaXt6RVfII8D6dal3hmsUFm809pTwVFqb9N4ncRT2m/g','admin','ak_b733d3bd26a14b21','2023-09-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$OkBcKJeFO.95onXh.eSBO/FE2FRix9OIAfxxQmX9.mpq7YQFiLBY2','user','ak_5635b1ca1b2ec10f','2023-10-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$MqqVJG9ALcLXn/itFTfMRK/G7PzpWR/ocP8.KAdrF6OqoiA9XzFh1','user','ak_8d792fc5812226c2','2023-10-08 10:21:00',NULL);

