-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$nUo3jOzxi0EVGbQdeNvHlSi.JEF2gknHRkXwV.S43o9hE.o93ieC5','admin','ak_17d82e756b185431','2023-03-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$HRMB6S04xZSBydZ997MGwTIsjGd5PpLGhAGxyt3Sy0YB2oMhjyVnY','user','ak_2969aa3a5db70bfc','2023-12-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$0/x0nCqN9./v8zZMNiaRGbaTT1RQm4B3O4Ig0uZPxzcSew7lrotnL','user','ak_625ac13ae4f534bf','2023-04-26 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$CvhXLnw12WdZbhdN814pDuae.IR7/zdS7UVko4YToRYOCUxxV/pfd','user','ak_b2e501f9f8439dfb','2023-06-03 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$GiT3mXAaNahxpxuW31oVdUy6B2tNhhuQ18JZ7aMBOk6963olW0PTK','admin','ak_996903487e6aa516','2023-04-28 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=44636;

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

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


