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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$ZxN9tsb.R082Qwp2xi.XtfjPw6UBc2/uN8KnfxWRlVjy1uCeFAO6w','user','ak_2a36fd171161f65f','2023-02-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$SWLRrTo15HgQhwdoL9p0KcSb47ZKuEevpW8EtsNOAj3xR4sP0OC0I','user','ak_5cc94907bc707cea','2023-12-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$PnLjD6ZmJyG3FC6TKN5fX2HOLj14Pcx9NRBy3nlyhWMK8rsUswX0o','user','ak_133b9911d90f06fa','2023-08-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$uKpKA1lSxmPTKGPmBaNhS4pGKWyJA9q3TmELIQgtfZsOfcD7EJUm1','user','ak_f7f41d79419f1c3b','2023-06-25 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Makpl7gZ/dV/eNu7jPQ00b140IocXuA4u9wB8TWG3JzA.AITwdOuB','admin','ak_3ec9efea5cc1076f','2023-02-13 10:10: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=7988;

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

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


