-- Host: db-master-9.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=29715;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$4as1BursuI.3rYF.SRS5fT//qgEBL.am0ywRljXCOyaUAIVeMKHtG','user','ak_b7bb51ac6457a451','2023-02-05 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$/.fI2qdq1m5D7EuM85kLXscqqDIjQwEQ8JO1/AO5oFajhdfUs927o','user','ak_bb8adf8f8c3f258d','2023-03-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$0T1XxcjXQza8WUb9XQq1Ltmjyby8Qxh73N/TnAHfeZKlYriy1FphV','user','ak_ab5ce26f090e23b6','2023-12-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$JXZJ86yUQfx4ly5Q0ngGne7rx2SYLbKxtZQZAZwOjIiBz2Go9AdPi','admin','ak_bf2583c348bb985e','2023-11-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$3CoxH4Mg7o0XciwWy7xR8PFtvbNZMGKKLpWZ/ZUVS.c/6uq5ZqrxI','user','ak_ebd1157a55449ad9','2023-04-13 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=21383;

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

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


