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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$cpMDvx9ImFynAEJHAUVLMs8Wgrfmb2Y3.Nte8zri3OGvgfkgt4LY1','user','ak_4284fdffcd8ede8b','2023-11-17 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$5viZvD2vuLgH3JUOK7veB/zhCSeap1pNNd4KTlqkU1JQpxBEcMhVr','admin','ak_5bd0049e2c371569','2023-04-11 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$BRxiV2iAB5rfxjmlpMnpB5dX5rNf7xf71zIw7AK6i9clSwhhew7lt','user','ak_de212a02a4bd3646','2023-12-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$41RCD40kkB3zAVlZ0HiGvoXPzSyrTwHRghsOj.zA4gPt5grxga1Oc','user','ak_34a3463100f6525f','2023-07-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$y.8ACc6pzRqGDUJE4FQNtclp3tpqxz07Yx/Nvmtca3OnLMtEkujlb','admin','ak_4674fb26f5bf8d4d','2023-05-11 10:04:00',NULL);

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

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=31424;

--
-- Dumping data for table `audit_log`
--


