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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$yYNHUgCrRBXsbhVwvta.1tOhmy5ycOKqnYA.EVIoyyR4xtwJaOA2l','user','ak_a6e722560d14567f','2023-08-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$d379GwT4k2dlX5MMmjeTggJ./TmxoJQ1DAT69uZyc6CCz5p1ZoXHf','user','ak_aa67307932c79198','2023-07-02 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$AHB2dPGmAFH4eyMrhrajEDbwvy4ympJL39GAD2zScZGbE/ReJOIen','admin','ak_d6492e3b19e11f9d','2023-07-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$fCTyHj5t.6Md14OAZBlU.S8ZxlVF/CO8dTCAFTsVhcG2gmnmCOz8T','user','ak_304a524deba80db1','2023-08-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$TYGHE9upLWdRSPzH/hEJjMAXGN2OS6BS9O/d/pcGuBEJDiujf.9FQ','admin','ak_946de7947ae775cd','2023-05-25 10:06:00',NULL);

